GATE CS 2020 · Question 16 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

What is the worst case time complexity of inserting n² elements into an AVL-tree with n elements initially?

  1. (A) Θ(n⁴)
  2. (B) Θ(n²)
  3. (C) Θ(n² log n)
  4. (D) Θ(n³)
Answer

Answer (C)

Answer from the official GATE CS 2020 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes