GATE Computer ScienceHardGATE CS (PYQ pattern)
How many labelled forests on the vertex set {1, 2, 3, 4, 5} have exactly 2 connected components (trees, isolated vertices allowed)?
- A. 110
- B. 125
- C. 100
- D. 45
Correct answer: A. 110
Component sizes are 4 + 1 or 3 + 2. A 4-vertex tree plus an isolated vertex: 5 · 4² = 80. A 3-vertex tree plus an edge: C(5,3) · 3 · 1 = 30. Total 110.
More Discrete Mathematics questions
- The triangular prism C₃ × K₂ (two triangles joined by 3 rungs) is 3-regular with 9 edges. How many proper 3-edge-colourings (colours…
- A maximal planar simple graph (a triangulation of the sphere) has 15 vertices. What is the sum of its number of edges and number of faces?
- In K₃,₅ every edge has length 1. What is the length of a shortest closed walk that traverses every edge at least once (Chinese postman…
- A Dyck path of semilength 6 has 6 up-steps and 6 down-steps and never goes below the axis. How many such paths have no peak at height 1?
- In how many ways can 15 be written as a sum of exactly 4 DISTINCT positive integers (order does not matter)?
- Binary strings of length 10 are written around a circle, and two are considered the same if one is a rotation of the other. How many such…