Exercise · ZW-HAMILTONIAN-CYCLE-008 · ★★☆ Intermediate
In the cube \(Q_3\) (vertices: 3-bit strings; edges: strings differing in one bit), which list is a Hamiltonian cycle?
Choose one option.
Show answer
- D. 000, 001, 011, 010, 110, 111, 101, 100
Exercise · ZW-HAMILTONIAN-CYCLE-008 · ★★☆ Intermediate
Choose one option.
Each term must differ from the previous in one bit, with no repeats, and the last from the first. Only the list 000, 001, 011, 010, 110, 111, 101, 100 (a Gray code) does; the others have two-bit jumps or repeat a vertex.
A Hamiltonian cycle of a graph \(G\) with \(n\ge 3\) vertices is a cycle that visits every vertex of \(G\) exactly once.