Sorts

I learn best by watching things move. These are interactive, in-browser visualizers for classic computer science algorithms: press play, scrub through the steps, and watch the source highlight line by line as it runs.

Comparing Sort Algorithms
Line every sort up and race them on the same data. Watch who finishes first, how many comparisons it took, and how much scratch memory each one needed.
Bubble Sort
Bubble sort walks the array over and over, swapping neighbors that are out of order until a clean pass means it’s done. Watch it run step by step.

More sorts coming weekly.