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?
- A
\(\Theta (logn)\) for both insertion and deletion
- B
\(\Theta (n)\) for both insertion and deletion
- C
\(\Theta (n)\)for insertion and \(\Theta (logn)\) for deletion
- D
\(\Theta (logn)\) for insertion and \(\Theta (n)\) for deletion
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems
Show the worked solution
Official 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