Question: data structure course 26 78 | 12 79199 | 18 30 60 75 38 88 81 86 4 37 95 a. What is the heap

 data structure course 26 78 | 12 79199 | 18 3060 75 38 88 81 86 4 37 95 a. What is

data structure course

26 78 | 12 79199 | 18 30 60 75 38 88 81 86 4 37 95 a. What is the heap of the unsorted array? (2 Marks) (2 Marks) 9 10 11 12 13 14 0- 1 2 3 4 5- 6- 7- 8- 9- 10- 11- 12- 13- 14- 15 b. Re-draw the heap after deleting the largest number (2 Marks) 0 1- 2 7- 8- 9- 10- 11- 12- 13- 14- 3 4 5- c. Write the function to create a heap. (3Marks) d. Distribute the unsorted numbers in the binary search tree below (3 Marks) e. For the BST above, write a function to print the nodes with one child only

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!