GATE CS 2015, set 2 · Question 22 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider a complete binary tree where the left and the right subtrees of the root are max-heaps. The lower bound for the number of operations to convert the tree to a heap is
- (A) Ω(log n)
- (B) Ω(n)
- (C) Ω(n log n)
- (D) Ω(n²)
Answer
Answer (A)
Answer from the official GATE CS 2015 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes