Question: What is the primary advantage of using a binary heap over an unsorted array for implementing a priority queue?
Options:
Correct Answer: Faster deletion
Solution:
A binary heap allows for faster deletion of the maximum (or minimum) element compared to an unsorted array, where deletion would take O(n) time.