Data Structures & AlgorithmsModerateGATE CS · ISRO Scientist

How many labelled unrooted trees on n vertices are there for n = 5?

  1. A. 625
  2. B. 125
  3. C. 14
  4. D. 60

Correct answer: B. 125

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