Question: - , 7 , 4 , 6 , 2 , 5 , 1 , 3 - , 7 , 6 , 5 , 4 ,

-,7,4,6,2,5,1,3
-,7,6,5,4,3,2,1
Question 11(5 points)
Below are the contents of pq[] that stores the items in a heap for a max priority
queue. (There are currently 10 items in the priority queue, but the array itself is
bigger)
-.43,10,32,8,4,29,20,1,6,3
The items are listed in the order they appear in the array. Remember that slot 0 of
the array is not used.
List out the contents of the heap (the first 12 slots in the pq array, including the - for
slot 0) after inserting 35 into the heap. List out the contents in the same format as
above, a comma separated list of numbers (except for a - in slot 0).
 -,7,4,6,2,5,1,3 -,7,6,5,4,3,2,1 Question 11(5 points) Below are the contents of pq[]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!