-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
203 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import io.github.arrayv.prompts.SortPrompt | ||
|
||
SortPrompt.setSortThreadForCategory('Distribution Sorts', 18) { | ||
run CountingSort with 2048.numbers and 1.5.speed | ||
run PigeonholeSort with 2048.numbers and 1.5.speed | ||
run GravitySort with 1024.numbers and 0.5.speed | ||
run ClassicGravitySort with 1024.numbers run() | ||
run StaticSort with 2048.numbers run() | ||
run IndexSort with 2048.numbers run() | ||
run AmericanFlagSort with 2048.numbers, 128.buckets and 0.75.speed | ||
run StacklessAmericanFlagSort with 2048.numbers, 128.buckets and 0.75.speed | ||
run LSDRadixSort with 2048.numbers, 4.buckets and 1.5.speed | ||
run CountingSort go 2048.numbers, 1.5.speed | ||
run PigeonholeSort go 2048.numbers, 1.5.speed | ||
run GravitySort go 1024.numbers, 0.5.speed | ||
run ClassicGravitySort go 1024.numbers | ||
run StaticSort go 2048.numbers | ||
run IndexSort go 2048.numbers | ||
run AmericanFlagSort go 2048.numbers, 128.buckets, 0.75.speed | ||
run StacklessAmericanFlagSort go 2048.numbers, 128.buckets, 0.75.speed | ||
run LSDRadixSort go 2048.numbers, 4.buckets, 1.5.speed | ||
|
||
def oldSofterSounds = arrayv.sounds.softerSounds | ||
arrayv.sounds.softerSounds = true | ||
run InPlaceLSDRadixSort with 2048.numbers and 10.buckets | ||
run InPlaceLSDRadixSort go 2048.numbers, 10.buckets | ||
arrayv.sounds.softerSounds = oldSofterSounds | ||
|
||
run MSDRadixSort with 2048.numbers, 4.buckets and 1.25.speed | ||
run FlashSort with 2048.numbers run() | ||
run BinaryQuickSortIterative with 2048.numbers run() | ||
run BinaryQuickSortRecursive with 2048.numbers run() | ||
run StacklessBinaryQuickSort with 2048.numbers run() | ||
run ShatterSort with 2048.numbers, 128.buckets run() | ||
run SimpleShatterSort with 2048.numbers and 128.buckets | ||
run TimeSort with 512.numbers, 10.buckets and 0.05.speed | ||
run MSDRadixSort go 2048.numbers, 4.buckets, 1.25.speed | ||
run FlashSort go 2048.numbers | ||
run BinaryQuickSortIterative go 2048.numbers | ||
run BinaryQuickSortRecursive go 2048.numbers | ||
run StacklessBinaryQuickSort go 2048.numbers | ||
run ShatterSort go 2048.numbers, 128.buckets | ||
run SimpleShatterSort go 2048.numbers, 128.buckets | ||
run TimeSort go 512.numbers, 10.buckets, 0.05.speed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
import io.github.arrayv.prompts.SortPrompt | ||
|
||
SortPrompt.setSortThreadForCategory('Impractical Sorts', 32) { | ||
run BadSort with 64.numbers and 0.0075.speed | ||
run StoogeSort with 64.numbers and 0.005.speed | ||
run QuadStoogeSort with 64.numbers and 0.005.speed | ||
run SillySort with 64.numbers and 0.5.speed | ||
run SlowSort with 64.numbers and 0.5.speed | ||
run SnuffleSort with 64.numbers and 0.25.speed | ||
run HanoiSort with 8.numbers and 0.025.speed | ||
run BadSort go 64.numbers, 0.0075.speed | ||
run StoogeSort go 64.numbers, 0.005.speed | ||
run QuadStoogeSort go 64.numbers, 0.005.speed | ||
run SillySort go 64.numbers, 0.5.speed | ||
run SlowSort go 64.numbers, 0.5.speed | ||
run SnuffleSort go 64.numbers, 0.25.speed | ||
run HanoiSort go 8.numbers, 0.025.speed | ||
|
||
// Bogosorts | ||
def oldSofterSounds = arrayv.sounds.softerSounds | ||
arrayv.sounds.softerSounds = true | ||
// The not-bad ones | ||
run SelectionBogoSort with 64.numbers and 1e-9.speed | ||
run BubbleBogoSort with 40.numbers and 1e-9.speed | ||
run CocktailBogoSort with 40.numbers and 1e-9.speed | ||
run LessBogoSort with 32.numbers and 1e-9.speed | ||
run ExchangeBogoSort with 28.numbers and 1e-9.speed | ||
run SelectionBogoSort go 64.numbers, 1e-9.speed | ||
run BubbleBogoSort go 40.numbers, 1e-9.speed | ||
run CocktailBogoSort go 40.numbers, 1e-9.speed | ||
run LessBogoSort go 32.numbers, 1e-9.speed | ||
run ExchangeBogoSort go 28.numbers, 1e-9.speed | ||
// The meh ones | ||
run MedianQuickBogoSort with 12.numbers and 1e-9.speed | ||
run QuickBogoSort with 9.numbers and 1e-9.speed | ||
run MergeBogoSort with 9.numbers and 1e-9.speed | ||
run SmartGuessSort with 8.numbers and 1e-9.speed | ||
run MedianQuickBogoSort go 12.numbers, 1e-9.speed | ||
run QuickBogoSort go 9.numbers, 1e-9.speed | ||
run MergeBogoSort go 9.numbers, 1e-9.speed | ||
run SmartGuessSort go 8.numbers, 1e-9.speed | ||
// The scary ones | ||
run BozoSort with 7.numbers and 1e-9.speed | ||
run DeterministicBogoSort with 7.numbers and 1e-9.speed | ||
run SmartBogoBogoSort with 6.numbers and 1e-9.speed | ||
run BogoSort with 6.numbers and 1e-9.speed | ||
run OptimizedGuessSort with 5.numbers and 1e-9.speed | ||
run RandomGuessSort with 5.numbers and 1e-9.speed | ||
run GuessSort with 4.numbers and 1e-9.speed | ||
run BozoSort go 7.numbers, 1e-9.speed | ||
run DeterministicBogoSort go 7.numbers, 1e-9.speed | ||
run SmartBogoBogoSort go 6.numbers, 1e-9.speed | ||
run BogoSort go 6.numbers, 1e-9.speed | ||
run OptimizedGuessSort go 5.numbers, 1e-9.speed | ||
run RandomGuessSort go 5.numbers, 1e-9.speed | ||
run GuessSort go 4.numbers, 1e-9.speed | ||
// aaaaaa | ||
run BogoBogoSort with 4.numbers and 1e-9.speed | ||
run BogoBogoSort go 4.numbers, 1e-9.speed | ||
arrayv.sounds.softerSounds = oldSofterSounds | ||
} |
Oops, something went wrong.