Data Structures & AlgorithmsHardGATE CS · ISRO Scientist

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

  1. A. 2048
  2. B. 58786
  3. C. 208012
  4. D. 646646

Correct answer: B. 58786

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