1.

An AVL tree is a self – balancing binary search tree, in which the heights of the two child sub trees of any node differ by _________(a) At least one(b) At most one(c) Two(d) At most twoMy question comes from Binary Trees in chapter Binary Trees of Data Structures & Algorithms IThe question was posed to me in a national level competition.

Answer»

Correct CHOICE is (b) At most one

Easiest EXPLANATION - In an AVL tree, the difference between HEIGHTS of the two child sub trees of any node is at most one. If the height DIFFERS by more than one, AVL tree PERFORMS rotations to balance the tree.



Discussion

No Comment Found

Related InterviewSolutions