Skip to content

Commit

Permalink
Update RunHybridSorts.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed May 5, 2021
1 parent aba76a2 commit d0303c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/threads/RunHybridSorts.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ final public class RunHybridSorts extends MultipleSortThread {
private Sort PDQBranchlessSort;
private Sort DropMergeSort;
private Sort OptimizedPDMergeSort;
private Sort BinaryPDMergeSort;
private Sort FlanSort;
private Sort BubblescanQuickSort;
private Sort BufferPartitionMergeSort;
private Sort ParallelBlockMergeSort;
private Sort ParallelGrailSort;
private Sort RemiSort;
private Sort StacklessDualPivotQuickSort;
private Sort AdaptiveGrailSort;
private Sort BubbleMergeSort;
private Sort ThreadedPDMergeSort;

public RunHybridSorts(ArrayVisualizer arrayVisualizer) {
super(arrayVisualizer);
Expand Down Expand Up @@ -136,6 +140,10 @@ public RunHybridSorts(ArrayVisualizer arrayVisualizer) {
ParallelGrailSort = new ParallelGrailSort(this.arrayVisualizer);
RemiSort = new RemiSort(this.arrayVisualizer);
StacklessDualPivotQuickSort = new StacklessDualPivotQuickSort(this.arrayVisualizer);
AdaptiveGrailSort = new AdaptiveGrailSort(this.arrayVisualizer);
BinaryPDMergeSort = new BinaryPDMergeSort(this.arrayVisualizer);
BubbleMergeSort = new BubbleMergeSort(this.arrayVisualizer);
ThreadedPDMergeSort = new ThreadedPDMergeSort(this.arrayVisualizer);
}

@Override
Expand All @@ -153,11 +161,15 @@ protected synchronized void executeSortList(int[] array) throws Exception {
RunHybridSorts.this.runIndividualSort(ImprovedWeaveMergeSort, 0, array, 2048, arrayManager.getShuffle() == Shuffles.RANDOM ? 1.65 : 6.5, false);
RunHybridSorts.this.runIndividualSort(TimSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(CocktailMergeSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(BubbleMergeSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(OptimizedPDMergeSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(BinaryPDMergeSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(ThreadedPDMergeSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(LazierSort, 0, array, 1024, 0.4, false);
RunHybridSorts.this.runIndividualSort(LaziestSort, 0, array, 1024, 1, false);
RunHybridSorts.this.runIndividualSort(WikiSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(GrailSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(AdaptiveGrailSort, 0, array, 2048, 1, false);
// RunHybridSorts.this.runIndividualSort(HolyGrailSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(UnstableGrailSort, 0, array, 2048, 1, false);
RunHybridSorts.this.runIndividualSort(SqrtSort, 0, array, 2048, 1, false);
Expand Down

0 comments on commit d0303c1

Please sign in to comment.