Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROBLEM 4: a. (5 points) Consider the following picture of a min-heap holding 13 distinct integers (nodes with the value o are considered empty). Circle

image text in transcribed

PROBLEM 4: a. (5 points) Consider the following picture of a min-heap holding 13 distinct integers (nodes with the value o are considered empty). Circle all nodes (if any) whose values will change as a result of one extractMin() operation. b. (7 points) Consider the following min-heap. i. (2 points) Fill in the array representation of the heap in the boxes below. The 'X' in the array at index 0 marks that position as unused. XIII ii. (3 points) Now fill in the array representation of the heap after inserting the value 15. iii. (2 points) Finally, fill in the array representation of the heap after decreasing the value of the shaded node to 20. Use your answer in part (ii) above as the starting point for this operation

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

1. What would you do if you were Jennifer, and why?

Answered: 1 week ago