Question: If a priority queue is implemented by an array-based sorted list, where (front, end or any position in the middle of the array) do you
If a priority queue is implemented by an array-based sorted list, where (front, end or any position in the middle of the array) do you want to put the element whose priority is the highest, why? Where (front, end or any position in the middle of the array) do you want to put the element whose priority is the highest if the sorted list is implemented based on SinglyLinkedList, why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
