In a priority queue, elements are retrieved based on their _______ rather than their order of insertion.

  • Position
  • Priority
  • Size
  • Value
In a priority queue, elements are retrieved based on their priority rather than their order of insertion. Elements with higher priority are processed before those with lower priority, allowing for flexible ordering based on specific criteria.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *