1.

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

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions