Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5.In the following questions, consider the list of numbers: 62, 31, 70, 91, 25, 11, 9, 61, 73, 6. (A)Show the result of inserting the

5.In the following questions, consider the list of numbers: 62, 31, 70, 91, 25, 11, 9, 61, 73, 6.
(A)Show the result of inserting the numbers in the list in the same order specified above into an initially empty minimum heap. Note that you need to show how the heap looks like after each number is inserted.
(B)Show the result of inserting the numbers in the list in the same order specified above into an initially empty binary search tree. Note that you need to show how the binary search tree looks like after each number is inserted.
(C)Use the binary search tree you created in question 2. What are the two possible binary search trees after 62 is deleted?
(D)Explain how you can utilize a minimum heap to sort the list of numbers in descending order. Let n be the number of elements in the list. What is the time complexity of your sorting algorithm

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

More Books

Students also viewed these Databases questions