1.

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 NumberMy question is based upon Binary Trees topic in division Binary Trees of Data Structures & Algorithms II have been asked this question during an interview for a job.

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.



Discussion

No Comment Found

Related InterviewSolutions