Intermediate · 30 minYou are hereRead
Binary heaps
A heap is a complete binary tree stored in an array, with every parent no larger than its children, so the smallest key sits in cell 0 and a priority queue costs O(log n) per operation.
Trees
Members: Free account
Related topics