Overview

A priority queue is a set that allows efficiently removing a maximum or minimum element. A max priority queue is usually implemented with a max-heap and a min priority queue is usually implemented with a min-heap.

Bibliography