Question: 4. Given the following data: 76, 50, 40, 45, 10, 30, 39, 42 a) Draw a Heap and check if this Is Max Heap or
4. Given the following data:
76,
50,
40,
45,
10,
30,
39,
42
a) Draw a Heap and check if this Is Max Heap or Min Heap? (5 pts) b) Now illustrate by using array notation (use the table given below) (Must use the table, and not tree) to add V = 69 into this array, and still maintain the property of the data structure. (10 pts) I Algorithm Explanation A[i]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
