✦MYSIMULATOR / 2D LAB← All simulations

Interactive science studio · Algorithms

Sorting Algorithms: Bubble, Selection and Insertion

Watch three classic sorting algorithms compare and move values, with live operation counts.

▥  Algorithms
LIVE SIMULATION Canvas engine

What you’re exploring

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.

Model / equation
Sorting goal: a₀ ≤ a₁ ≤ … ≤ aₙ₋₁
Made with 🤖 ChatGPT