GATE Computer ScienceHardGATE CS (PYQ pattern)

How many Hamiltonian paths of the cube graph Q₃ start at a fixed vertex v (paths are counted as sequences beginning at v)?

  1. A. 6
  2. B. 18
  3. C. 12
  4. D. 144

Correct answer: B. 18

Fix the start v = 000. The first step has 3 choices and the second 2, all equivalent under automorphisms fixing v. Continuing from 000 → 100 → 110, the remaining vertices can be completed in exactly 3 ways (010-011-001-101-111, 010-011-111-101-001, 111-101-001-011-010). So 3 · 2 · 3 = 18. Q₃ has only 6 Hamiltonian cycles; paths need not close up.

More Discrete Mathematics questions

Exams that ask this topic