Question: P 2 ) Suppose you are given an array A of sorted integers from 1 to 1 0 0 0 . ( 6 0 points

P2) Suppose you are given an array A of sorted integers from1 to 1000.(60 points)
[123..dots..9991000]2
A:
(a) Do you think this array represents a heap (max or min)?
Max
(b) If it is a heap, what is its height? (use the maximum, minimum number of keys in a h height heap.
(c) Then, what number will be the parent of 35?
(d) What number will be the right child of 50?
 P2) Suppose you are given an array A of sorted integers

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!