Question: Question 3: (10 marks) Given the following array Arr[G, L, D, I, S, B, F, H, K, O, T, E, C), answer the following set

 Question 3: (10 marks) Given the following array Arr[G, L, D,

Question 3: (10 marks) Given the following array Arr[G, L, D, I, S, B, F, H, K, O, T, E, C), answer the following set of questions: a) Draw the heap presentation of this array (2 marks) b) Find the pre-order traversal of this tree. (2 marks) c) Implement Max-Heapify and show the last presentation (2 marks) d) Explain briefly the algorithm of the Heap-sort in few steps (2 marks) e) Estimate the number of steps (in the worst case) needed to sort this array using Bubble-sort and heap-sort algorithms (2 marks)

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!