Author: Stan Eisenstat
Subject: Re: [Cs223] Counting Compares, Adds, and Pushes on Test Case 108
Date: Tuesday, 31 Mar 2020, 17:25:59
> Message Posted By: Unknown > > I am currently working on stable sort and wanted to check the number of > compares/adds/pushes that I had when running this test. I did see that you > put a command to count for compares/adds/pushes, but I couldn't figure out > how to run it on phase1 tests. Each Phase 1 test uses Qsort to sort one or more files, as specified in the command that calls Qsort. If the command is ./Qsort /c/cs223/Hwk4/Tests/r007 /c/cs223/Hwk4/Tests/r057 You can run Hwk4/Tests/Stats.pl on those files with /c/cs223/Hwk4/Tests/Stats.pl /c/cs223/Hwk4/Tests/r007 /c/cs223/Hwk4/Tests/r057 I modified Stats.pl to accept an optional -POS[,lEN] as the first argument to handle cests like #108. However, it only checks whether or not Qsort sorts the files WITHOUT the -POS[,LEN] since the system sort does not accept that option. The original is Stats.pl.V0. --Stan-PREV INDEX NEXT