In
geometry, a hypercube is an
''n''-dimensional analogue of a
square () and a
cube
In geometry, a cube is a three-dimensional solid object bounded by six square faces, facets or sides, with three meeting at each vertex. Viewed from a corner it is a hexagon and its net is usually depicted as a cross.
The cube is the only r ...
(). It is a
closed
Closed may refer to:
Mathematics
* Closure (mathematics), a set, along with operations, for which applying those operations on members always results in a member of the set
* Closed set, a set which contains all its limit points
* Closed interval, ...
,
compact,
convex figure whose 1-
skeleton
A skeleton is the structural frame that supports the body of an animal. There are several types of skeletons, including the exoskeleton, which is the stable outer shell of an organism, the endoskeleton, which forms the support structure inside ...
consists of groups of opposite
parallel line segment
In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. The length of a line segment is given by the Euclidean distance between ...
s aligned in each of the space's
dimensions,
perpendicular to each other and of the same length. A unit hypercube's longest diagonal in ''n'' dimensions is equal to
.
An ''n''-dimensional hypercube is more commonly referred to as an ''n''-cube or sometimes as an ''n''-dimensional cube. The term measure polytope (originally from Elte, 1912) is also used, notably in the work of
H. S. M. Coxeter
Harold Scott MacDonald "Donald" Coxeter, (9 February 1907 – 31 March 2003) was a British and later also Canadian geometer. He is regarded as one of the greatest geometers of the 20th century.
Biography
Coxeter was born in Kensington t ...
who also labels the hypercubes the γ
n polytopes.
The hypercube is the special case of a
hyperrectangle (also called an ''n-orthotope'').
A ''unit hypercube'' is a hypercube whose side has length one
unit. Often, the hypercube whose corners (or ''vertices'') are the 2
''n'' points in R
''n'' with each coordinate equal to 0 or 1 is called ''the'' unit hypercube.
Construction
A hypercube can be defined by increasing the numbers of dimensions of a shape:
:0 – A point is a hypercube of dimension zero.
:1 – If one moves this point one unit length, it will sweep out a line segment, which is a unit hypercube of dimension one.
:2 – If one moves this line segment its length in a
perpendicular direction from itself; it sweeps out a 2-dimensional square.
:3 – If one moves the square one unit length in the direction perpendicular to the plane it lies on, it will generate a 3-dimensional cube.
:4 – If one moves the cube one unit length into the fourth dimension, it generates a 4-dimensional unit hypercube (a unit
tesseract).
This can be generalized to any number of dimensions. This process of sweeping out volumes can be formalized mathematically as a
Minkowski sum: the ''d''-dimensional hypercube is the Minkowski sum of ''d'' mutually perpendicular unit-length line segments, and is therefore an example of a
zonotope.
The 1-
skeleton
A skeleton is the structural frame that supports the body of an animal. There are several types of skeletons, including the exoskeleton, which is the stable outer shell of an organism, the endoskeleton, which forms the support structure inside ...
of a hypercube is a
hypercube graph.
Vertex coordinates
A unit hypercube of dimension
is the
convex hull
In geometry, the convex hull or convex envelope or convex closure of a shape is the smallest convex set that contains it. The convex hull may be defined either as the intersection of all convex sets containing a given subset of a Euclidean space ...
of all the points whose
Cartesian coordinates
A Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, measured in t ...
are each equal to either
or
. This hypercube is also the
cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is
: A\ti ...
of
copies of the unit
interval