GATE CS 2015 · Set-1 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0188

What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
  1. A
    \(\Theta (logn)\) for both insertion and deletion
  2. B
    \(\Theta (n)\) for both insertion and deletion
  3. C
    \(\Theta (n)\)for insertion and \(\Theta (logn)\) for deletion
  4. D
    \(\Theta (logn)\) for insertion and \(\Theta (n)\) for deletion

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/8221/gate2015-1-25

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com