1.

What is the value for the number of nodes of rank r?(a) N(b) N/2(c) N/2^r(d) N^rThis intriguing question comes from Trees topic in portion Trees of Data Structures & Algorithms IThis question was addressed to me during an online exam.

Answer»

Correct CHOICE is (c) N/2^r

For EXPLANATION: Each NODE of a RANK r is the root of a subtree of at least 2^r. THEREFORE, there are at most N/2^r disjoint subtrees.



Discussion

No Comment Found

Related InterviewSolutions