Courses‎ > ‎AP Computer Science‎ > ‎Konstantinovich‎ > ‎notes‎ > ‎

2017-12-21

posted Dec 21, 2017, 9:57 AM by Konstantinovich Samuel   [ updated Dec 21, 2017, 10:16 AM ]
Goal:
Verify your sorts!

Download and use the benchmark on your Sorts.java.
I may have spelled the sort calls differently because I forgot my laptop and am using an old version of Sorts.java.


This requires your sorting algorithms to work.
Run it twice:
java Benchmark 10000
java Benchmark 40000

SAMPLE:

user@host $ java benchmark 10000
Increasing,Decreasing,Random,RandomFewValues
Bubble:
95,193,426,412,
Selection:
91,246,195,194,
Insertion:
1,112,55,42,
Built In:
0,1,4,0,

user@host $

Copy the numbers into The Big Sorting Sheet:

You would add the numbers to the sheet in the same order they appear!
e.g.
95,193,426,412,91,246,195,194,1,112,55,42,0,1,4,0

IF ONE OF YOUR SORTS FAILS : LEAVE THE NUMBERS BLANK!
DO NOT ADD ANY NUMBERS FOR FAILED SORTS





ċ
Benchmark.java
(2k)
Konstantinovich Samuel,
Dec 21, 2017, 9:57 AM
Comments