Introduction to Graph Theory · Problem 2.23
Simple graphs — Darij Grinberg
Mathematics — Graph Theory · hamiltonian-cycles-hypercube-variants
Problem
Let and be two integers such that . Define the simple graph as follows: Its vertices are the bitstrings ; two such bitstrings are adjacent if and only if they differ in exactly bits (in other words: two vertices and are adjacent if and only if the number of satisfying equals ). (Thus, is the -hypercube graph .) (a) Does have a hamc when is even? (Recall that ``hamc'' is short for ``Hamiltonian cycle''.) (b) Does have a hamc when is odd? [Hint: One way to approach part (b) is by identifying the set with the field with two elements. The bitstrings thus become the size- row vectors in the -vector space . Let be the standard basis vectors of (so that has a in its -th position and zeroes everywhere else). Then, two vectors are adjacent in the -hypercube graph (resp. in the graph ) if and only if their difference is one of the standard basis vectors (resp., a sum of distinct standard basis vectors). Try to use this to find a graph isomorphism from to a subgraph of .]Intuitive explanation
The key insight is to use a parity argument combined with a bipartite structure hidden in the graph. Think of each bitstring as a vector in , and notice that moving from one vertex to an adjacent vertex changes the Hamming weight (number of 1's) by exactly . When is even, this preserves parity of the weight; when is odd, it flips parity. A Hamiltonian cycle must visit all vertices, and the parity constraint becomes a topological obstruction that either allows or forbids such a cycle depending on whether is even or odd.
Intuitive explanation
The key insight is to use a parity argument combined with a bipartite structure hidden in the graph. Think of each bitstring as a vector in , and notice that moving from one vertex to an adjacent vertex changes the Hamming weight (number of 1's) by exactly . When is even, this preserves parity of the weight; when is odd, it flips parity. A Hamiltonian cycle must visit all vertices, and the parity constraint becomes a topological obstruction that either allows or forbids such a cycle depending on whether is even or odd.