Labs / Computer Science

Sorting Algorithms

Forty bars, four classic ways to sort them. The highlighted pair is the one move the algorithm is making right now — press Play to let it run, or tap the canvas to step through by hand. Every algorithm gets the same shuffled deck until you reshuffle, so the compare and swap counters are a fair race.

compares 0swaps 0

What to try