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 6–7 of 7

Q6GATE 20041 markMCQ−0.33 if wrong
A program takes as input a balanced binary search tree with n leaf nodes and computes the value of a function g(x) for each node x. If the cost of computing g(x) is min{no. of leaf-nodes in left-subtree of x, no. of leaf-nodes in right-subtree of x} then the worst-case time complexity of the program is

Q7GATE 20021 markMCQ−0.33 if wrong
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the furthest leaf) of such a tree on n nodes is best described by which of the following ?

Keep practising

Topics in Data Structures

All CS topics ›