Answers

Question and Answer:

  Home  Stack And Queue

⟩ Tell me what are priority queues?

A priority queue is essentially a list of items in which each item has associated with it a priority

Items are inserted into a priority queue in any, arbitrary order. However, items are withdrawn from a priority queue in order of their priorities starting with the highest priority item first.

Priority queues are often used in the implementation of algorithms

 189 views

More Questions for you: