Bubble sort talks a lot
It compares every neighbor pair, over and over. Long bars take long walks to the right — the most comparisons per element.
Shuffle a bar chart and watch bubble, insertion, or selection sort work through comparisons and swaps, step by step.
The drawing runs entirely in this browser tab. Nothing is uploaded.
It compares every neighbor pair, over and over. Long bars take long walks to the right — the most comparisons per element.
It grows a sorted prefix one card at a time, shifting everything bigger out of the way. Nearly-sorted inputs finish almost instantly.
It scans for the minimum and does one swap per pass. Few swaps, many comparisons — a good teaching contrast.
For tiny arrays all three are fine. Generally insertion beats bubble; both are teaching tools rather than production sorts.
Yellow bars are the pair being compared; red flashes mark a swap happening.
Yes — the speed slider stretches every step out.
Yes — everything runs in this browser tab.
Pick a category to see every tool in it — then open one and discover related tools.