Tools · sorting algorithms, with sound

Sorting visualizer

Watch and hear sorting algorithms run on the same array. Comparison frequency drives the pitch — n² algorithms scream, n log n algorithms sing. Drop in your own array, race two algorithms side-by-side, and feel the Big-O difference in your bones.

Comparisons0
Swaps0
Reads/writes0
Statusidle

Race the algorithms

Same array, all algorithms running at once. The visual gap between O(n²) and O(n log n) is the entire course's thesis — feel it instead of just reading it.

Tips

Try size = 100 and run bubble sort — listen to the descending tones as the largest values sweep to the right. Then race all 7 — quick, merge, heap, and radix finish in a heartbeat while bubble, insertion, and selection are still grinding away. That's the difference between O(n²) and O(n log n).