Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions