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 case
Answer:D
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 case
Explanation: In the worst-case scenario, the entire queue must be searched for the highest-priority element. This is going to take a little longer than normal. As a result, removing components isn’t a good idea.