wild-inter.net

Binary heaps  ·  swim, sink, and bottom-up construction

Small screen: the drawing scrolls sideways; switch to the tree drawing for the most compact view. The code and the analysis are below the drawing.
Show
Order
Drawing
Detail
Leave the field empty for a random key. New operations are added right after the one on screen. Click a node to change its key.
— / — Delay 650ms
The heap zoom 100%
What happens
Cost
Returned by delMax()
Java code
Input