Show the worked solutionIn a binary max-heap of \(n\) elements:
insertion places the new key at the end and sifts it up the height of the heap, \(\Theta(\lg n)\) in the worst case;
deletion of the maximum moves the last key to the root and sifts it down, \(\Theta(\lg n)\).\[\text{insert}=\Theta(\lg n),\qquad\text{delete}=\Theta(\lg n).\]None of (A), (B), (C) gives this pair.Answer: D
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com