Question: Q . 3 . ( 3 0 pts ) You are given an array as given below. You are expocted to create a heap from

Q.3.(30 pts) You are given an array as given below. You are expocted to create a "heap" from scratch in
3.a. and then make a heapsort by using that array in 3.b. You will use "ArrayMaxHeap" as mentioned in the
class which is array implementation of heap. The array is:
Q.3.a-(15 pts) Using the array above and create a heap using the code below. The "heapCreate ()" method
below is the same method that is used anytime. Each step in the loop must be shown graphically, in other words
you will first deploy the initial array into the tree, and then graphically, as the loop iterates, draw the heap
creation progress for each loop. Final heap and its array representation must be shown.
heapRebuild () in heapCreate () works in the same way shown and used throughout all the classes.
You can iterate the loop as needed. Final hean and its array rennesentation must be shown
Q . 3 . ( 3 0 pts ) You are given an array as

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 Accounting Questions!