Priority Queue
l
A priority queue is a data repository that has two
methods:
l
insert
l
removeMax (or removeMin, depending on the
version)
l
A
heap
is a natural implementation of a priority
queue:
l
Both insertions and deletions are O(log n)