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?

  1. A. 1
  2. B. 2
  3. C. 3
  4. 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

Exams that ask this topic