...
Question 14353 – DSSSB PGT 2018 Female
April 3, 2024
Question 10918 – Match-the-following
April 4, 2024
Question 14353 – DSSSB PGT 2018 Female
April 3, 2024
Question 10918 – Match-the-following
April 4, 2024

Question 8231 – Heap-Tree

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

Correct Answer: A

Question 7 Explanation: 
Since left and right subtree is already a heap. So we can apply Heapify (node) which take log n time.
A
Ω(logn)
B
Ω(n)
C
Ω(nlog n)
D
Ω(n2)
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!