GATE Computer ScienceHardGATE CS (PYQ pattern)

The complete bipartite graph K(2,4) has two vertices on one side and four on the other, with every cross pair joined. How many distinct spanning trees does it have?

  1. A. 16
  2. B. 24
  3. C. 32
  4. D. 48

Correct answer: C. 32

For K(m,n) the number of spanning trees is m^(n−1) · n^(m−1) = 2^3 · 4^1 = 32. Computing it with Kirchhoff's matrix-tree theorem gives the same value.

More Discrete Mathematics questions

Exams that ask this topic