Computer Science EngineeringHardISRO SC (CS)

The number of distinct spanning trees of the graph with vertices 1..5 and edges 1-2, 2-3, 3-1, 2-4, 3-4, 4-5 is:

  1. A. 11
  2. B. 6
  3. C. 8
  4. D. 16

Correct answer: C. 8

Kirchhoff's matrix-tree theorem: delete one row and column of the Laplacian and take the determinant = 8.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic