AVL Tree: GATE CS Previous Year Questions

AVL Tree · Data Structures

7 questions · asked in 6 of 27 years (2000–2026)

MCQ 6 · NAT 11-mark 4 · 2-mark 3

2000Questions per year2026

Questions 1–5 of 7

Q1GATE 20201 markMCQ−0.33 if wrong
What is the worst case time complexity of inserting n2n^2 elements into an AVL-tree with n elements initially?

Q2GATE 20202 marksMCQ−0.67 if wrong
In a balanced binary search tree with n elements, what is the worst case time complexity of reporting all elements in range [a,b]? Assume that the number of reported elements is k.

Q3GATE 2014 (Session 3)2 marksNAT
Suppose we have a balanced binary search tree T holding n numbers. We are given two numbers L and H and wish to sum up all the numbers in T that lie between L and H. Suppose there are m such numbers in T. If the tightest upper bound on the time to compute the sum is O(nalogbn+mclogdn)O(n^{a}log^{b}n+m^{c}log^{d}n), the value of a + 10b + 100c + 1000d is _______.

Q4GATE 20121 markMCQ−0.33 if wrong
The worst case running time to search for an element in a balanced binary search tree with n2nn2^{n} elements is

Q5GATE 20092 marksMCQ−0.67 if wrong
What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single node is 0.

Keep practising

Topics in Data Structures

All CS topics ›