top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the minimum number of queues needed when implementing a priority queue?

+4 votes
495 views
What is the minimum number of queues needed when implementing a priority queue?
posted Apr 21, 2015 by Jalal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

The minimum number of queues needed in this case is two. One queue is intended for sorting priorities while the other queue is intended for actual storage of data.

answer Apr 22, 2015 by Mohammed Hussain
Similar Questions
+1 vote

Which is the most efficient implementations of a priority queue using binary trees, please provide the algorithm along with sample code.

+3 votes

What is the average number of comparisons needed in a sequential search to determine that the element is not there, if the elements are completely unordered?

0 votes

An element with high priority is appears before low priority element, can someone help me to write the Priority Queue Implementation?

Thanks in advance?

...