GATE CS 2020 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0177

What is the worst case time complexity of inserting \(n^2\) elements into an AVL-tree with n elements initially?
  1. A
    \(\Theta (n^4)\)
  2. B
    \(\Theta (n^2)\)
  3. C
    \(\Theta (n^2 \log n)\)
  4. D
    \(\Theta (n^3)\)

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/333225/gate2020-cs-6

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