Hypercube — Definition, Formula & Examples
A hypercube is the generalization of a square and a cube to any number of dimensions. Just as a cube is a 3D version of a square, a hypercube (often called a tesseract in 4D) extends the same pattern into four or more dimensions.
An -dimensional hypercube (or -cube) is the set of all points in satisfying for each . It has vertices, edges, and its -dimensional faces number .
Key Formula
Where:
- = Number of dimensions of the hypercube
- = Number of vertices
- = Number of edges
How It Works
Start with a point (0D). Move it along a new perpendicular axis to sweep out a line segment (1D). Slide that segment perpendicular to itself to form a square (2D). Push the square perpendicular to its plane to create a cube (3D). Repeating this process one more time produces a 4D hypercube, or tesseract. Each time you add a dimension, every existing vertex spawns a new edge along the new axis, doubling the vertex count.
Worked Example
Problem: Find the number of vertices, edges, and square faces of a 4-dimensional hypercube (tesseract).
Vertices: Apply the vertex formula with n = 4.
Edges: Apply the edge formula with n = 4.
Square faces (2D faces): Use the general face formula with k = 2.
Answer: A tesseract has 16 vertices, 32 edges, and 24 square faces.
Why It Matters
Hypercubes appear in computer science as the structure of binary strings (each vertex of an -cube corresponds to an -bit binary number). They also arise in data science and linear programming, where feasible regions in variables often form hypercube-like shapes.
Common Mistakes
Mistake: Assuming a hypercube is only the 4D case (tesseract).
Correction: "Hypercube" refers to any -dimensional cube. A line segment is a 1-cube, a square is a 2-cube, an ordinary cube is a 3-cube, and a tesseract is a 4-cube.
