INTERVIEW QUESTIONS
DATABASE
DATA STRUCTURE
DETAILS
Question: What is a priority queue?
Answer: Waiting queue may not operate on a strictly first in first out basis, but on some complex priority scheme based on such factors as what compiler is being used, the execution time required, number of print lines, etc. The resulting queue is called a priority queue.
|
Question:
What is a priority queue?
Answer:
Waiting queue may not operate on a strictly first in first out basis, but on some complex priority scheme based on such factors as what compiler is being used, the execution time required, number of print lines, etc. The resulting queue is called a priority queue. Source: CoolInterview.com
A priority queue is an abstract data type in computer programming that supports the following three operations:
* InsertWithPriority: add an element to the queue with an associated priority * GetNext: remove the element from the queue that has the highest priority, and return it (also known as "PopElement(Off)", or "GetMinimum") * PeekAtNext (optional): look at the element with highest priority without removing it Source: CoolInterview.com
Answered by: Sidharth Mohapatra | Date: 3/11/2010
| Contact Sidharth Mohapatra
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|