GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A weighted graph on {0, 1, 2, 3, 4} has edges (0,1,1), (1,2,1), (0,2,1), (2,3,2), (1,3,2), (3,4,1), (2,4,1), (0,4,2), written as (u, v, weight). How many distinct minimum spanning trees does it have?
- A. 1
- B. 2
- C. 3
- D. 6
Correct answer: C. 3
The MST weight is 4. Enumerating all C(8,4) = 70 edge subsets that form spanning trees of that weight gives 3.
More Discrete Mathematics questions
- How many integer solutions does x₁ + x₂ + x₃ + x₄ + x₅ = 30 have with 2 ≤ xᵢ ≤ 10 for every i and x₁ even?
- How many permutations of {1, 2, …, 8} have exactly 3 fixed points and no 2-cycles?
- In how many permutations of 1, 2, …, 8 does NO entry i appear immediately followed by i + 1 (so 1 2, 2 3, …, 7 8 never occur as…
- Five married couples sit at a round table with 10 seats, alternating man, woman, with the five men's seats already fixed. In how many ways…
- How many distinct bracelets of 6 beads use exactly two beads of each of 3 colours (rotations and reflections count as the same)?
- The six faces of a cube are coloured so that each of 3 given colours appears on exactly two faces. How many colourings are distinct up to…