What is a weight balanced tree?

Category: QuestionsWhat is a weight balanced tree?
Editor">Editor Staff asked 5 months 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.

Editor">Editor Staff answered 5 months 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.

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701