Heap Sort

The list that is secretly a tree — watch both views move together.

Ready
–Phase
0Comparisons
0Swaps

READY

Same colour and label (L0, L1 …) = same tree level, in tree and list Compared now ✓ In final place × Broken link · child bigger than parent