Data Structures & AlgorithmsVery hardICPC regional · graph counting

Problem: Which theorem counts the spanning trees of a graph as a determinant of a reduced Laplacian matrix?

  1. A. Hall's marriage theorem
  2. B. Dilworth's theorem
  3. C. Euler's formula
  4. D. Kirchhoff's matrix-tree theorem

Correct answer: D. Kirchhoff's matrix-tree theorem

Deleting one row and column of the Laplacian gives a determinant equal to the number of spanning trees, which is Kirchhoff's matrix-tree theorem.

More Coding Interview Problems questions

Exams that ask this topic