Priority queue

A priority queue is an abstract data type that stores elements with priorities and retrieves an element according to priority rather than arrival order.

Connect