Question: 3. (20 points) Consider the implicit binary max-heap below. Show the results of performing 4 consecutive Ex- TRACT MAX() operations on it. For each EXTRACT

3. (20 points) Consider the implicit binary max-heap below. Show the results of performing 4 consecutive Ex- TRACT MAX() operations on it. For each EXTRACT MAX() operation, show the item extracted together with the resulting heap. - 25 40 30 22 13 32 / / / 9 5 12 7 20 (Again, just hand-simulate the behavior of the implicit binary max-heap, and draw the resulting heap after every EXTRACT MAX() operation. Draw them in the form of a tree rather than an ar- ray.) (Note: 5 points for each result.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
