Data Structures and Algorithms ยท Trees

Heaps and priority queues

A tree-shaped structure that always keeps the smallest, or largest, element quick to find.

Also known as: binary heap, min-heap, max-heap, priority queue, heapsort.

Start a lesson on Heaps and priority queues

Learn first

Leads to

Related topics