Data structures · Heaps and priority queues

The heap property

A heap keeps the smallest item on top with far less order than a sorted list, and two rules say exactly how much.