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

Explanation

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.

Study Discrete mathematics in ZWMath →

Review the concept: Hamiltonian cycle

A Hamiltonian cycle of a graph \(G\) with \(n\ge 3\) vertices is a cycle that visits every vertex of \(G\) exactly once.

\[\deg(v)\ge \tfrac n2\ \forall v\ \Longrightarrow\ \text{Hamiltonian cycle exists}\]

More practice problems: hamiltonian cycle

← ZW-HAMILTONIAN-CYCLE-007 ZW-HAMILTONIAN-CYCLE-009 →