UGC-NET Jun 2012 · Trees

MCQ · 2 marks · Problem PROG-DSTR-0049

Number of binary trees formed with 5 nodes are
  1. A
    32
  2. B
    36
  3. C
    120
  4. D
    42

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solution\[\boxed{b_n=\frac{1}{n+1}\binom{2n}{n}}\]The number of distinct binary tree shapes with \(n\) nodes is the Catalan number:\[b_5=\frac16\binom{10}{5}=\frac{252}{6}=42.\]Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com