PA of Algorithms Q70

0. Consider a complete binary tree where the left and the right subtrees of the root are maxheaps. The lower bound for the number of operations to convert the tree to a heap is

  • Option : A
  • Explanation :
    The subtrees are already Max-heap, so to make it half, we have to heap if the root, which takes Ω(log n) time.
Cancel reply

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


Cancel reply

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