Interactive science studio · Algorithms
Watch three classic sorting algorithms compare and move values, with live operation counts.
Bubble sort swaps adjacent out-of-order values. Selection sort places the smallest remaining value. Insertion sort grows a sorted prefix by inserting each new value in the correct position.