GATE Computer ScienceHardGATE CSE

How many labelled trees on the vertex set {1, …, 6} have exactly 2 leaves (that is, are paths)?

  1. A. 300
  2. B. 360
  3. C. 420
  4. D. 240

Correct answer: B. 360

A tree with exactly 2 leaves is a path; the number of labelled paths is 6!/2 = 360 (the Prüfer sequences with 4 distinct entries give the same count).

More Discrete Mathematics questions

Exams that ask this topic