What are the applications of weight balanced tree?

Category: QuestionsWhat are the applications of weight balanced tree?
Editor">Editor Staff asked 5 months ago

What are the applications of weight balanced tree?
 
(a) dynamic sets, dictionaries, sequences, maps
 
(b) heaps
 
(c) sorting
 
(d) storing strings
 
This intriguing question originated from Weight Balanced Tree in chapter Binary Trees of Data Structures & Algorithms I
 
This question was posed to me in semester exam.

1 Answers
Editor">Editor Staff answered 5 months ago

Right answer is (a) dynamic sets, dictionaries, sequences, maps
 
Explanation: They are a type of self balancing trees which are mostly used in storing key-value pairs, which is mostly used in functional programming languages. they are very useful to maintain big set of ordered objects.


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