∿mysimulator← All experiments
Interactive lab / Computer Science / Experiment 04 of 20

Sorting Studio: Bubble, Insertion, Selection and Quick

See the exact comparison and swap operations used by four sorting algorithms.

Running live model
Interactive • Canvas 2D
LIVE SIMULATION / 04
Real comparisons and swaps · Four algorithms
The science behind it

How it works

The animation replays actual comparison and swap operations generated by each sorting algorithm. Change the initial order or array length to see why Bubble and Selection often scale quadratically, while Quick Sort typically takes O(n log n) comparisons.

Made with 🤖 ChatGPT