Hold space to randomize 1 - Bubble Sort 2 - Selection Sort 3 - Insertion Sort 4 - Bogo Sort (@sashimiricedev made me do it) 5 - Shaker Sort 6 - Quick Sort 7 - Group(Us3RnaMe) Sort 8 - Heap Sort (work in progress) m - YOU (Controls are left/right arrows to move. down arrow to place action. up arrow to place spawn. enter to switch action and current. ; to go to spawn)
yes, there are sounds On 128 sample: Bubble: ~8247 ticks, ~4257 switches Selection: ~4512 ticks, 128 switches Insertion: ~3982 ticks, ~3855 switches Bogo: ~385,620,482,362,580,421,735,677,065,923,463,640,617,493,109,590,223,590,278,828,403,276,373,402,575,165,543,560,686,168,588,507,361,534,030,051,833,058,916,347,592,172,932,262,498,857,766,114,955,245,039,357,760,034,644,709,279,247,692,495,585,280,000,000,000,000,000,000,000,000,000,000 ticks, ~49,359,421,742,410,293,982,166,664,438,203,345,999,039,118,027,548,619,555,690,035,619,375,795,529,621,189,575,767,829,579,328,942,276,355,846,634,631,541,292,491,798,135,329,599,853,794,062,714,271,365,037,793,284,434,522,787,743,704,639,434,915,840,000,000,000,000,000,000,000,000,000,000 switches (this is a calculation, not a test. I don't know who would sit through that many ticks.) Shaker: ~5368 ticks, ~3929 switches Quick: 1573 ticks, 351 switches Group(Us3RnaMe): ~1624 ticks, ~955 switches