GATE 2009
March 14, 2025
GATE 2008
March 14, 2025
GATE 2009
March 14, 2025
GATE 2008
March 14, 2025

GATE 2009

Question 37

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.

A
2
B
3
C
4
D
5
Question 37 Explanation: 
The maximum height of any AVL tree with 7 nodes is, [where root is considered as height 0]
2h-1 = 7
∴ h=3
Correct Answer: B
Question 37 Explanation: 
The maximum height of any AVL tree with 7 nodes is, [where root is considered as height 0]
2h-1 = 7
∴ h=3

Leave a Reply

Your email address will not be published. Required fields are marked *