1.

Which of the following are used as an internal operation in Top tree?(a) Merge(b) Cut(c) Expose(d) LinkThe query is from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms IThis question was addressed to me in a national level competition.

Answer»

The correct answer is (a) Merge

The best EXPLANATION: Link returns a single tree having DIFFERENT vertices from top trees. Cut removes the EDGE from the top tree. Expose is USED to implement queries on top trees. While merge is an internal operation used to merge two clusters and return as a parent cluster.



Discussion

No Comment Found

Related InterviewSolutions