What is a weight balanced tree?

Category: QuestionsWhat is a weight balanced tree?
Editor">Editor Staff asked 4 weeks ago

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 tree
 
My question is based upon Weight Balanced Tree topic in portion Binary Trees of Data Structures & Algorithms I
 
This question was addressed to me in quiz.

1 Answers
Editor">Editor Staff answered 4 weeks ago

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.