Question: Solve for questions 1 - 4 Question q , ( 1 8 points ) ( 5 pts ) Insert the following elements into a MaxHeap:
Solve for questions Question points
pts Insert the following elements into a MaxHeap: Use the space on the right to figure out the insertions and then fill in the left tree with the final state of the heap.
pts Fill in the final contents of the heap in the list below:
table
pts Show the state of the heap after you remove its max element: temp Which element immediately replaces the max element?
Use the space on the right to figure out the operations and then neatly fill in the left tree with the final state of the heap.
pts The BigO for the insertion and deletion into a heap is not the same.
True or False? Briefly explain your answer and clearly state the BigO for these operations.
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
