Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 Binomial Heap Operations [3484848 = 27 marks] In this problem, we review binomial heap operations for heaps of the figure below. In case

image text in transcribed

Problem 3 Binomial Heap Operations [3484848 = 27 marks] In this problem, we review binomial heap operations for heaps of the figure below. In case of merging trees in the following operations, in case there were three binomial trees of the same order, merge the two 'older trees (keep the new tree which is the product of previous merge) a) Consider the heap H Indicate which nodes are probed in get-Max operation on Hi b) Apply the operation merge on heaps H and H2. Show intermediate steps. c) Apply operation ertract-maz on heap H3. Show intermediate steps. d) Apply operation insert on heap H4. Assume you insert value 30 to the heap Show intermediate steps 23 10 68 15 13 40 30 25 20 20 1s 19 15 H4 Figure 2: Heaps of Problem 2 Problem 3 Binomial Heap Operations [3484848 = 27 marks] In this problem, we review binomial heap operations for heaps of the figure below. In case of merging trees in the following operations, in case there were three binomial trees of the same order, merge the two 'older trees (keep the new tree which is the product of previous merge) a) Consider the heap H Indicate which nodes are probed in get-Max operation on Hi b) Apply the operation merge on heaps H and H2. Show intermediate steps. c) Apply operation ertract-maz on heap H3. Show intermediate steps. d) Apply operation insert on heap H4. Assume you insert value 30 to the heap Show intermediate steps 23 10 68 15 13 40 30 25 20 20 1s 19 15 H4 Figure 2: Heaps of Problem 2

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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions