Question: What is the primary advantage of using a priority queue over a regular queue?
Options:
Correct Answer: Elements are processed in the order of their priority
Solution:
The primary advantage of a priority queue is that elements are processed based on their priority rather than their order of arrival.