+1 vote
in Data Structures & Algorithms I by (110k points)
What is the value for the number of nodes of rank r?

(a) N

(b) N/2

(c) N/2^r

(d) N^r

This intriguing question comes from Trees topic in portion Trees of Data Structures & Algorithms I

This question was addressed to me during an online exam.

1 Answer

+1 vote
by (672k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.