Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 344 Bytes

File metadata and controls

5 lines (3 loc) · 344 Bytes

Define Priority Queue

A priority queue is a special type of queue in which each element is associated with a priority value. And, elements are served on the basis of their priority. That is, higher priority elements are served first.

However, if elements with the same priority occur, they are served according to their order in the queue.