1.

What is a weight balanced tree?(a) A binary tree that stores the sizes of subtrees in nodes(b) A binary tree with an additional attribute of weight(c) A height balanced binary tree(d) A normal binary treeMy question is based upon Weight Balanced Tree topic in portion Binary Trees of Data Structures & Algorithms IThis question was addressed to me in quiz.

Answer»

Correct ANSWER is (a) A binary TREE that stores the SIZES of subtrees in nodes

The EXPLANATION is: Unlike AVL and redblack TREES which uses height and color as book keeping information, weight balanced trees use the size of subtrees.



Discussion

No Comment Found

Related InterviewSolutions