Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 912 Bytes

File metadata and controls

25 lines (16 loc) · 912 Bytes

Priority Queue

According to Wikipedia:

In computer science, a priority queue is an abstract data type which is like a regular queue or stack data structure, but where additionally each element has a "priority" associated with it. In a priority queue, an element with high priority is served before an element with low priority. If two elements have the same priority, they are served according to their order in the queue.

Complexity

Average

Operation Complexity
Access O(n)
Search O(n)
Insertion O(1)
Deletion O(n)

Simple representation of a priority queue

Priority Queue

References