Question: Problem 1 Show the array implementation of the following heap: Problem 2 Consider the array implementation of a heap as follows. 0 1 2 3

Problem 1
Show the array implementation of the following heap:
Problem 2
Consider the array implementation of a heap as follows.
01234567
4027321514202511
Without drawing the heap tree, answer the following questions.
a) Show the left and right children of 32 in the heap.
b) Show the parent of 14 in the heap.
Problem 3
Create a heap using the data entered in the following order:
15,24,6,12,35,60,88,67,72,100
a) Show intermediate binary trees during of the process of building and the resulting heap
tree. (You do not have to show the array content for storing the tree nodes.)
b) Then insert 95 into the heap, and show the resulting heap tree after the insertion.
c) Finally, do a remove operation on the heap, and show the resulting heap tree after the
deletion.

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