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?
- A. 16
- B. 24
- C. 32
- 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
- The wheel graph W5 consists of a hub joined to every vertex of a 5-cycle. In how many ways can its 6 vertices be properly coloured using 4…
- How many binary strings of length 8 contain no three consecutive 0s?
- The divisors of 360 are ordered by divisibility and drawn as a Hasse diagram. How many edges does the diagram have?
- A sequence of 82 distinct real numbers is given. Which is the largest L such that EVERY such sequence is guaranteed to contain an…
- A permutation of {1, 2, …, 10} is chosen uniformly at random. What is the expected number of cycles in its cycle decomposition (fixed…
- How many perfect matchings does the 4-dimensional hypercube graph Q₄ (16 vertices, two vertices adjacent when their 4-bit labels differ in…