GATE CS 2013 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0193

Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?
  1. A
    O(1)
  2. B
    O( log n)
  3. C
    O(n)
  4. D
    O(n log n)

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1416/gate2013-7

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