Invariant Lab
Sorting inspection, one checkpoint at a time
Algorithm
Insertion sort
Selection sort
Bubble sort
Merge sort
Heap sort
Example data
Duplicate-key example
Three equal keys
Negative and duplicate keys
Already sorted
Reverse sorted
↺ Reset
← Back
Next →
▶ Play
Final ↗
Speed
Slow
Normal
Fast
Reset view
Rendered sorting state
Duplicate-key example
Input
Invariant region
Remaining region
× badge = repeated key
Drag to orbit · wheel to zoom