implemented counting sort
This commit is contained in:
@@ -145,9 +145,9 @@ public class AlgorithmTester{
|
||||
results.add(qSorter.measuredSort());
|
||||
}
|
||||
for(SortResult e: results){
|
||||
//for(int i: e.getSortedArray()){
|
||||
// System.out.print(i+" ");
|
||||
//}
|
||||
for(int i: e.getSortedArray()){
|
||||
System.out.print(i+" ");
|
||||
}
|
||||
System.out.println("");
|
||||
System.out.println(e.getSortType()+" sort took:");
|
||||
System.out.println(e.getComparisonsUsed()+" comparisons");
|
||||
|
||||
Reference in New Issue
Block a user