Sail E0 Webinar
Question
Time taken in decreasing the node value in a binomial heap is
Options:
A .  O(n)
B .  O(1)
C .  O(logn)
D .  O(nlogn)
Answer: Option C


Decreasing a node value may result in violating the min property. As a result be there would be exchange in the value of parent and child which at max goes up to height of the heap.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers