Skip to content

Commit d49dfdc

Browse files
committed
...
2 parents 6a48510 + 8b312e2 commit d49dfdc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/com/github/coderodde/util/ParallelRadixSort.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ private static void radixSortImpl(int[] source,
229229
bucketSizeMap[bucketIndex]++;
230230
}
231231

232+
//
232233
// Compute starting indices for buckets in the target array. This is
233234
// actually just an accumulated array of bucketSizeMap, such that
234235
// startIndexMap[0] = 0, startIndexMap[1] = bucketSizeMap[0], ...,

src/test/java/com/github/coderodde/util/ParallelRadixSortTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public final class ParallelRadixSortTest {
1111

1212
@BeforeClass
1313
public static void setupBeforeClass() {
14-
ParallelRadixSort.setInsertionSortThreshold(-1);
15-
ParallelRadixSort.setMergesortThreshold(-1);
14+
// ParallelRadixSort.setInsertionSortThreshold(-1);
15+
// ParallelRadixSort.setMergesortThreshold(-1);
1616
}
1717

1818
@Test
@@ -56,7 +56,9 @@ public void testMergesort() {
5656
@Test
5757
public void testSerialRadixSort() {
5858
Random random = new Random(26);
59-
final int SIZE = 500;
59+
60+
final int SIZE = 50_000;
61+
6062
int[] array1 = Utils.createRandomIntArray(
6163
SIZE,
6264
Integer.MAX_VALUE - 1,

0 commit comments

Comments
 (0)