1.

In a two-dimensional search tree, the root is arbitrarily chosen to be?(a) even(b) odd(c) depends on subtrees(d) 1My question is based upon Trees in division Trees of Data Structures & Algorithms II got this question in an international level competition.

Answer»

Correct answer is (b) odd

For explanation: In a TWO- dimensional k-d TREE (i.e.) 2-d tree, the root is arbitrarily CHOSEN to be an odd level and it APPLIES to all 2-d TREES.



Discussion

No Comment Found

Related InterviewSolutions