GATE Computer ScienceVery hardGATE CSE

An undirected weighted graph on vertices 0..6 has edges, written (u, v, weight): (0,1,2), (0,2,2), (1,2,2), (1,3,3), (2,3,3), (3,4,1), (3,5,4), (4,5,4), (4,6,5), (5,6,5), (2,6,6). How many distinct minimum spanning trees (as edge sets) does it have?

  1. A. 25
  2. B. 23
  3. C. 24
  4. D. 48

Correct answer: C. 24

Enumerating all 6-edge spanning trees, the minimum weight is 17 and exactly 24 trees attain it.

More Algorithms questions

Exams that ask this topic