# What is order of resultant heap after merging two tree of order k?

Category: QuestionsWhat is order of resultant heap after merging two tree of order k?
Editor">Editor Staff asked 5 months ago

What is order of resultant heap after merging two tree of order k?

(a) 2*k

(b) k+1

(c) k*k

(d) k+logk

Asked question is from Binomial and Fibonacci Heap in section Heap of Data Structures & Algorithms I

This question was addressed to me in an online quiz.

Editor">Editor Staff answered 5 months ago

Right option is (b) k+1

Easiest explanation – This could be easily verified by looking at the structure of a binomial heap.

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701