Question: Lab Exercise 2 - 2 7 - 2 0 2 4 Heaps Part A - MaxHeap: table [ [ 5 0 , 1 1
Lab Exercise
Heaps
Part A MaxHeap:
table
Using the arraylist of integers above, create a MaxHeap.
Insert numbers & respectively into the MaxHeap, and showcase the updated version of the heap after it's heapified.
Remove the maximum node or root from the Maxheap, and showcase the updated version of the heap after it's heapified.
Part B MinHeap:
table
Using the arraylist of integers above, create a MinHeap.
Insert numbers & respectively into the MinHeap, and showcase the updated version of the heap after it's heapified.
Remove the minimum node or root from the Minheap, and showcase the updated version of the heap after it's heapified.
Part C Binominal Heap:
table
Using the arraylist of integers above, create a Binomial Heap it is your choice to create this heap as a MaxHeap or MinHeap
Insert numbers & respectively into the Binomial Heap, and showcase the updated version of the heap.
Based on your selection of using a MaxHeap or MinHeap to create your Binomial Heap, extract the max or min node from the heap and showcase the updated version of the heap. Meaning if you created a MaxHeap, then you need to extract the maximum value or root Likewise, if you created a MinHeap, then you need to extract the minimum value or root
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
