4. Combinatorial perspectives on cubes
What is the Euclidean distance between two vertices of the 3-cube joined by an edge? Using the usual distance formula, we see that the edges have length 1. However, it was Richard Hamming (1915-1998) who realized that the more pragmatic description above, of counting the number of positions in which binary sequences differed could be used as a distance, too. This distance is known today as the Hamming distance or Hamming metric. For example. the Hamming distance from 011 to 100 is 3, from 001 to 111 is two, while from 110 to 111 is 1. The only pair of these three that is joined by an edge of the cube is the last. Thus, the distance between the vertices of the 3-cube with these coordinates is 1 in both the Hamming distance and the Euclidean distance! Since the Hamming distance is a distance function like any other, one can talk about the points which have a particular fixed distance from a vertex of a d-cube in the Hamming metric. I will refer to these as spheres. In fact, the observation that the sphere of radius 1 centered at 000 and the sphere of radius 1 centered at 111 have no points in common is the basis for the fact that one can use 000 and 111 as an error correction code with two code words. These code words could be used to code two colors, say black and white. The famous code that Hamming first discovered in his pioneering work on error correction consisted of 15 binary sequences of length 7. These sequences correspond to vertices on the 7-cube whose spheres of radius 1 are disjoint. Thus, they represent a relatively large collection (15 elements) of short strings (length 7) that will correct a single error.
0 ≤ xi ≤ 1
where subscribed variables are used instead of the usual x, y, and z. This view of the cube clearly shows that for the d-cube there are d pairs of hyperplanes (the higher dimensional analogue of planes) which are parallel and which are perpendicular to all the others. It is this last perpendicularity condition that challenges the visual imagination for understanding even the 4-cube. Whereas everyone can visualize the three segments at the corner of a 3-cube as being mutually perpendicular, most people have no way to "see" four segments at the corner of a 4-cube as mutually perpendicular. Is there some way at least of drawing a diagram that helps us think about the 4-cube? Perhaps surprisingly, by converting to a combinatorial viewpoint, drawing 4-cubes, 5-cubes, etc. becomes a snap!
Welcome to the
These web essays are designed for those who have already discovered the joys of mathematics as well as for those who may be uncomfortable with mathematics.
Search Feature Column
Feature Column at a glance