Skip to content

Commit

Permalink
[skip ci] Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Nov 1, 2021
1 parent e37a49c commit b1bb69c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ else if(grailBufferType == 2) {
}

if(grailSort) {
System.out.println("\n* Grailsort " + grailType + ", " + grailStrategy + " \n* start = " + start + ", length = " + length + ", unique items = " + keyCount);
System.out.println("\n* Holy Grail Sort " + grailType + ", " + grailStrategy + " \n* start = " + start + ", length = " + length + ", unique items = " + keyCount);
}
else {
System.out.println("\n* Arrays.sort (Timsort) \n* start = " + start + ", length = " + length + ", unique items = " + keyCount);
System.out.println("\n* Arrays.sort (Tim Sort) \n* start = " + start + ", length = " + length + ", unique items = " + keyCount);
}

long begin;
Expand All @@ -153,12 +153,12 @@ else if(grailBufferType == 2) {
GrailPair[] buffer = null;
int bufferLen = 0;

// Grailsort with static buffer
// Holy Grail Sort with static buffer
if(grailBufferType == 1) {
buffer = (GrailPair[]) Array.newInstance(this.keyArray.getClass().getComponentType(), HolyGrailSort.STATIC_EXT_BUFFER_LEN);
bufferLen = HolyGrailSort.STATIC_EXT_BUFFER_LEN;
}
// Grailsort with dynamic buffer
// Holy Grail Sort with dynamic buffer
else if(grailBufferType == 2) {
bufferLen = 1;
while((bufferLen * bufferLen) < length) {
Expand Down Expand Up @@ -231,7 +231,7 @@ public static void main(String[] args) {
}
}

System.out.println("\n*** Testing Grailsort against Timsort ***");
System.out.println("\n*** Testing Holy Grail Sort against Tim Sort ***");

testClass.checkBoth( 0, 15, 4, "Opti.Gnome", testCompare);
testClass.checkBoth( 0, 15, 8, "Opti.Gnome", testCompare);
Expand Down

0 comments on commit b1bb69c

Please sign in to comment.