Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started