GATE Computer ScienceModerateGATE CS (PYQ pattern)

For how many pairs (m, n) with 1 ≤ m ≤ n ≤ 8 does the complete bipartite graph K_{m,n} have an Euler trail (open or closed) that uses every edge exactly once?

  1. A. 15
  2. B. 10
  3. C. 6
  4. D. 14

Correct answer: A. 15

Need 0 or 2 odd-degree vertices. Closed: m, n both even: 10 pairs from {2,4,6,8}. Open (exactly 2 odd vertices): m = 2 with n odd (n = 3, 5, 7: the two vertices of degree n), plus (1,1) and (1,2). Total 10 + 3 + 2 = 15.

More Discrete Mathematics questions

Exams that ask this topic