Labs / Computer Science

Binary Heap Builder

A heap is a tree that lives inside a plain array. Insert a value and watch it bubble up until the ordering rule holds again; extract the root and watch the last element sink back down. Every comparison and swap is highlighted at the same time in the tree and in the array beneath it.

size 0i parent children compares 0swaps 0

What to try