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?
- A. 0
- B. 183
- C. 60
- 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
- How many automorphisms does the pentagonal prism C₅ × K₂ (two 5-cycles joined by 5 rungs) have?
- A weighted graph on {0, 1, 2, 3, 4} has edges (0,1,1), (1,2,1), (0,2,1), (2,3,2), (1,3,2), (3,4,1), (2,4,1), (0,4,2), written as (u, v…
- How many integer solutions does x₁ + x₂ + x₃ + x₄ + x₅ = 30 have with 2 ≤ xᵢ ≤ 10 for every i and x₁ even?
- How many permutations of {1, 2, …, 8} have exactly 3 fixed points and no 2-cycles?
- In how many permutations of 1, 2, …, 8 does NO entry i appear immediately followed by i + 1 (so 1 2, 2 3, …, 7 8 never occur as…
- Five married couples sit at a round table with 10 seats, alternating man, woman, with the five men's seats already fixed. In how many ways…