← cronus
Sorting
Order from comparison. Every sorting algorithm answers the same question — put these elements in order — but their strategies produce wildly different performance profiles and visual signatures.
Algorithm
Bubble Sort
Selection Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Shell Sort
Radix Sort (LSD)
Parameters
Elements
128
Speed
20
Initial Order
Random
Nearly Sorted
Reversed
Few Unique
Display
Bars
Dots
Color Gradient
Statistics
Comparisons:
0
Swaps:
0
Array accesses:
0
Start
Shuffle
Space: start/pause · R: shuffle
1–8: algorithms
Related
Maze
Elementary Ca
Prisoners Dilemma
Bubble Sort · 128 elements