Time taken in decreasing the node value in a binomial heap is

Daniel William

New member
Time taken in decreasing the node value in a binomial heap is
A. O(n)
B. O(1)
C. O(logn)
D. O(nlogn)
 
Answer: C
Explanation: 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.
 

Tìm kiếm

Back
Top