1.

Which of the following is not true about the 2-3 tree?(a) all leaves are at the same level(b) it is perfectly balanced(c) postorder traversal yields elements in sorted order(d) it is B-tree of order 3My question comes from B-Trees in section B-Trees of Data Structures & Algorithms II have been asked this question in class test.

Answer»

Right CHOICE is (c) postorder traversal yields elements in sorted order

Explanation: In a 2-3 tree, LEAVES are at the same LEVEL. And 2-3 trees are perfectly balanced as every path from root node to the NULL link is of EQUAL length. In 2-3 tree in-order traversal yields elements in sorted order.



Discussion

No Comment Found

Related InterviewSolutions