AlgoScope

Incremental Algorithms

ParadigmintermediateParadigms

Grow the sorted prefix by one element at a time, repairing the order as each arrives.

Decision · step 3 of 27Insertion Sort: Seven values
sorted 0-0105✓14223843576ji5 > 1

5 is larger than 1, so 1 slides left.

Open in the player →or start at step 3

What you will see

Insertion sort and incremental convex hull: each new element is placed and the structure is fixed up.

How insertion sort works →

Cost

SpaceO(1)

How you work with it here

play it through, step one change at a time, compare two runs.

Screen readers: Each paradigm lesson is narrated as the characteristic loop it performs; the comparison view is available as a table.

Reduced motion: Side-by-side panes update in place.

Before this

Taught by the same lesson

Insertion Sort covers these too, in the same run.