Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Data Structures | Heap | Question 12

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Which of the following Binary Min Heap operation has the highest time complexity?
(A) Inserting an item under the assumption that the heap has capacity to accommodate one more item
(B) Merging with another heap under the assumption that the heap has capacity to accommodate items of other heap
(C) Deleting an item from heap
(D) Decreasing value of a key


Answer: (B)

Explanation: The merge operation takes O(n) time, all other operations given in question take O(Logn) time.

The Binomial and Fibonacci Heaps do merge in better time complexity.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads
Related Tutorials