building-a-max-heap

← ~/visualizations

building-a-max-heap #

Blocky complete binary tree visualization of max-heap construction. Starts from an unordered array and applies bottom-up heapify with animated sift-down operations.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

9-element array displayed as complete binary tree. Animates bottom-up heapify: compares parent with children, swaps when child is larger, sifts down until heap property holds.

← bubble-sortset-operations →