GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many labelled trees on the vertex set {1, 2, …, 8} have exactly 3 leaves?

  1. A. 100800
  2. B. 56000
  3. C. 201600
  4. D. 16800

Correct answer: A. 100800

A vertex is a leaf iff it is absent from the Prüfer sequence (length 6). Exactly 3 leaves ⇔ the sequence uses exactly 5 distinct labels: C(8, 5) · S(6, 5) · 5! = 56 · 15 · 120 = 100800.

More Discrete Mathematics questions

Exams that ask this topic