GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many labelled trees on the vertex set {1, 2, …, 8} have exactly 3 leaves?
- A. 100800
- B. 56000
- C. 201600
- 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
- Seven workers w₀…w₆ can do the jobs j₀…j₅: w₀ ∈ {j₀, j₁}, w₁ ∈ {j₀, j₁}, w₂ ∈ {j₀, j₁, j₂}, w₃ ∈ {j₂, j₃}, w₄ ∈ {j₃, j₄}, w₅ ∈ {j₃, j₄}…
- How many independent sets (including the empty set) does the 4×4 grid graph have?
- How many independent sets (including the empty set) does the wheel W₈ have? (W₈ is a hub joined to every vertex of an 8-cycle.)
- Each of the 15 edges of K₆ is coloured red or blue. What is the minimum possible number of monochromatic triangles over all colourings?
- How many closed walks of length 4 (counted with starting vertex and direction) does the Petersen graph have in total?
- Let Ḡ be the complement of the Petersen graph. With α, ω and χ denoting the independence number, clique number and chromatic number of Ḡ…