GATE Computer ScienceHardGATE CS (PYQ pattern)

The 3 × 3 grid graph (9 vertices, 12 edges) has 192 spanning trees. In how many of them is the centre vertex a leaf?

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

Correct answer: B. 32

If the centre has degree 1, removing it leaves a spanning tree of the other 8 vertices, which together with their edges form an 8-cycle: 8 choices (drop one ring edge). The centre then attaches to any of its 4 neighbours: 8 · 4 = 32.

More Discrete Mathematics questions

Exams that ask this topic