In a Priority Queue, elements are processed based on ______.
2023
In a Priority Queue, elements are processed based on ______.
- A.
Arrival time of the element
- B.
Priority of the element
- C.
Size of the element
- D.
None of the above
Attempted by 335 students.
Show answer & explanation
Correct answer: B
In a Priority Queue, elements are processed based on their priority. The element with the highest priority is dequeued before the elements with lower priority.