Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q3. (10+20+[5+5]=40 pts) Consider a binomial max-heap BH with k=2 +27 -14 nodes where n>>m. a) Which binomial trees is BH composed of? b) The
Q3. (10+20+[5+5]=40 pts) Consider a binomial max-heap BH with k=2" +27 -14 nodes where n>>m. a) Which binomial trees is BH composed of? b) The minimum key in BH is in the most crowded depth level of its largest binomial tree. In terms of k, what is the exact number of nodes you may have to look for the minimum key? (Hint: figure out where the min. key may only exist in a max-heap?) c) A binomial heap BHres results from merging BH above with BH, with 20+...+2m-2 +3 elements after two delete-max operations at BH where the maximum key is at the root of B, and the second maximum at the root of Bm-1 (i.e., first the two delete-maxs then the merging). How many nodes does BH res have? ii. What binomial trees is BH res composed of? Q3. (10+20+[5+5]=40 pts) Consider a binomial max-heap BH with k=2" +27 -14 nodes where n>>m. a) Which binomial trees is BH composed of? b) The minimum key in BH is in the most crowded depth level of its largest binomial tree. In terms of k, what is the exact number of nodes you may have to look for the minimum key? (Hint: figure out where the min. key may only exist in a max-heap?) c) A binomial heap BHres results from merging BH above with BH, with 20+...+2m-2 +3 elements after two delete-max operations at BH where the maximum key is at the root of B, and the second maximum at the root of Bm-1 (i.e., first the two delete-maxs then the merging). How many nodes does BH res have? ii. What binomial trees is BH res composed of
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