LIVE MODEL
CANVAS · REAL-TIME
Explore · Adjust · Observe
Compare sorting strategies as they rearrange a live array of values into ascending order.
Sorting algorithms compare values and move them into order using different strategies. Bubble sort repeatedly swaps neighbours, insertion sort grows a sorted prefix, and selection sort repeatedly selects the smallest remaining value. The visualiser counts comparisons and swaps so you can compare their behaviour.