GATE Computer ScienceVery hardGATE CS (PYQ pattern)

In the cube graph Q₃ let u and v be antipodal vertices (distance 3). How many walks of length 5 go from u to v?

  1. A. 0
  2. B. 183
  3. C. 60
  4. D. 36

Correct answer: C. 60

Use Fourier/eigenvectors on {0,1}³: walks(u→v, ℓ) = (1/8) Σ_{S} (3 − 2|S|)^ℓ (−1)^{|S|} = (1/8)[3⁵ − 3·1⁵ + 3·(−1)⁵ − (−3)⁵] = (243 − 3 − 3 + 243)/8 = 60. (Length 6 would give 0 by bipartite parity.)

More Discrete Mathematics questions

Exams that ask this topic