Question: Question 1 2 ( 5 points ) Below are the contents of p q array that stores the items in a heap for a max
Question points
Below are the contents of array that stores the items in a heap for a max priority
queue. There are currently items in the priority queue, but the array itself is
bigger
The items are listed in the order they appear in the array. Remember that slot of
the array is not used.
List out the contents of the heap the first slots in the pq array, including the for
slot after deleteMax is called. List out the contents in the same format as above, a
comma separated list of numbers except for a in slot
A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
