+1 vote
in Data Structures & Algorithms I by (110k points)
What is the probability of selecting a tree uniformly at random?

(a) Equal to Catalan Number

(b) Less Than Catalan Number

(c) Greater than Catalan Number

(d) Reciprocal of Catalan Number

My question is based upon Binary Trees topic in division Binary Trees of Data Structures & Algorithms I

I have been asked this question during an interview for a job.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct choice is (d) Reciprocal of Catalan Number

The best I can explain: Catalan number is a sequence of natural number that is used in counting problem. Hence it is found that the selecting off a tree uniformly at random is reciprocal of Catalan number.

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.

Categories

...