Data Structures & AlgorithmsVery hardGATE CS · ISRO Scientist

How many full binary trees (every node has 0 or 2 children) with n internal nodes are there for n = 6?

  1. A. 64
  2. B. 792
  3. C. 132
  4. D. 429

Correct answer: C. 132

Use the closed-form count for this family: it follows from the standard counting argument (Cayley's formula, the Catalan recurrence, or Kirchhoff's matrix-tree theorem). Each distractor is a different formula that looks similar.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic