editing sort type strings
This commit is contained in:
@@ -82,7 +82,7 @@ public class AlgorithmTester{
|
||||
int input;
|
||||
boolean ready=false;
|
||||
boolean print=false;
|
||||
String[] sortingAlgoNames = {"bubble","selection","insertion","counting","quick","3-way partitioned quick","merge"};
|
||||
String[] sortingAlgoNames = {"bubble sort","selection sort","insertion sort","counting sort","quick sort","quick sort (3-way partition)","merge sort"};
|
||||
boolean[] sortingAlgoChoices = new boolean[sortingAlgoNames.length];
|
||||
System.out.print("\nPlease enter file name: ");
|
||||
filename = sc.next();
|
||||
@@ -168,8 +168,9 @@ public class AlgorithmTester{
|
||||
for(int i: e.getSortedArray()){
|
||||
System.out.print(i+" ");
|
||||
}
|
||||
System.out.print("\n");
|
||||
}
|
||||
System.out.println("\n"+e.getSortType()+" sort of "+e.getSortCount()+" numbers took:");
|
||||
System.out.println("\n"+e.getSortType()+" of "+e.getSortCount()+" numbers took:");
|
||||
System.out.println(e.getComparisonsUsed()+" comparisons");
|
||||
System.out.println(e.getWritesUsed()+" write operations");
|
||||
System.out.println(e.getTimeUsed()+" milliseconds");
|
||||
|
||||
Reference in New Issue
Block a user