Question: 1. (10pts) Consider the following array. A[1 to n] = {16, 14, 10, 11, 13, 9, 7, 4, 8, 12, 6), where n-11 It is

 1. (10pts) Consider the following array. A[1 to n] = {16,

1. (10pts) Consider the following array. A[1 to n] = {16, 14, 10, 11, 13, 9, 7, 4, 8, 12, 6), where n-11 It is also a heap satisfying the heap property. Answer the questions by choosing the correct items. (a) What is the left child of 13? (b) What is the parent of 11? (c) Insert 15 to the heap. What is the parent of 14 after it? (d) After the insertion, what is the right child of 15? (e) What is depth of the heap after the insertion? Answer choices: (1) 1, (2) 2, (3) 3, (4) 4, (5) 5, (6) 6, (7) 7, (8) 8, (9) 9, (10) 10 (11) 11, (12) 12, (13) 13, (14) 14, (15) 15, (16) 16, (17) None of the above

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!