Data Structures

Identify the correct definition of Priority queue.

Correct answer

B. An abstract data structure where each element has a priority, and elements are served according to that priority rather than arrival order.

Explanation

Priority queue refers to an abstract data structure where each element has a priority, and elements are served according to that priority rather than arrival order.