1.

Which of the following is not an advantage of a priority queue?(a) Easy to implement(b) Processes with different priority can be efficiently handled(c) Applications with differing requirements(d) Easy to delete elements in any caseThis is a very interesting question from Priority Queue topic in chapter Abstract Data Types of Data Structures & Algorithms II got this question in examination.

Answer»

The correct answer is (d) EASY to DELETE elements in any case

For explanation: In worst case, the entire QUEUE has to be searched for the element having the HIGHEST priority. This will take more time than usual. So deletion of elements is not an ADVANTAGE.



Discussion

No Comment Found

Related InterviewSolutions