FinnSort: Disable printouts

This commit is contained in:
Daniel Langbein 2024-12-17 14:13:20 +00:00
parent 59bfd44f45
commit dbf26421d9
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -15,7 +15,7 @@ public class FinnSort {
int i = 0; int i = 0;
int j = extendRunRight(a, i, c); int j = extendRunRight(a, i, c);
printList(a, c); // printList(a, c);
runs.add(new Run(i, j, 0)); runs.add(new Run(i, j, 0));
@ -63,7 +63,7 @@ public class FinnSort {
System.arraycopy(merge.toArray(), 0, a, min(r1.start, r2.start), merge.size()); System.arraycopy(merge.toArray(), 0, a, min(r1.start, r2.start), merge.size());
Run r = new Run(min(r1.start, r2.start), max(r1.end, r2.end), min(r1.power, r2.power)); Run r = new Run(min(r1.start, r2.start), max(r1.end, r2.end), min(r1.power, r2.power));
runs.add(r); runs.add(r);
printList(a, c); // printList(a, c);
} }
private static <T> int extendRunRight(T[] a, int i, Comparator<? super T> c) { private static <T> int extendRunRight(T[] a, int i, Comparator<? super T> c) {