Ann-dimensional hypercube is more commonly referred to as ann-cube or sometimes as ann-dimensional cube.[1][2] The termmeasure polytope (originally from Elte, 1912)[3] is also used, notably in the work ofH. S. M. Coxeter who also labels the hypercubes the γn polytopes.[4]
The hypercube is the special case of ahyperrectangle (also called ann-orthotope).
Aunit hypercube is a hypercube whose side has length oneunit. Often, the hypercube whose corners (orvertices) are the 2n points inRn with each coordinate equal to 0 or 1 is calledthe unit hypercube.
An animation showing how to create a tesseract from a point.
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 aperpendicular 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 unittesseract).
This can be generalized to any number of dimensions. This process of sweeping out volumes can be formalized mathematically as aMinkowski sum: thed-dimensional hypercube is the Minkowski sum ofd mutually perpendicular unit-length line segments, and is therefore an example of azonotope.
A unit hypercube of dimension is theconvex hull of all the points whoseCartesian coordinates are each equal to either or. These points are itsvertices. The hypercube with these coordinates is also thecartesian product of copies of the unitinterval. Another unit hypercube, centered at the origin of the ambient space, can be obtained from this one by atranslation. It is the convex hull of the points whose vectors of Cartesian coordinates are
Here the symbol means that each coordinate is either equal to or to. This unit hypercube is also the cartesian product. Any unit hypercube has an edge length of and an-dimensional volume of.
The-dimensional hypercube obtained as the convex hull of the points with coordinates or, equivalently as the Cartesian product is also often considered due to the simpler form of its vertex coordinates. Its edge length is, and its-dimensional volume is.
Every hypercube admits, as its faces, hypercubes of a lower dimension contained in its boundary. A hypercube of dimension admits facets, or faces of dimension: a (-dimensional) line segment has endpoints; a (-dimensional) square has sides or edges; a-dimensional cube has square faces; a (-dimensional) tesseract has three-dimensional cubes as its facets. The number of vertices of a hypercube of dimension is (a usual,-dimensional cube has vertices, for instance).[5]
The number of the-dimensional hypercubes (just referred to as-cubes from here on) contained in the boundary of an-cube is
For example, the boundary of a-cube () contains cubes (-cubes), squares (-cubes), line segments (-cubes) and vertices (-cubes). This identity can be proven by a simple combinatorial argument: for each of the vertices of the hypercube, there are ways to choose a collection of edges incident to that vertex. Each of these collections defines one of the-dimensional faces incident to the considered vertex. Doing this for all the vertices of the hypercube, each of the-dimensional faces of the hypercube is counted times since it has that many vertices, and we need to divide by this number.
The number of facets of the hypercube can be used to compute the-dimensional volume of its boundary: that volume is times the volume of a-dimensional hypercube; that is, where is the length of the edges of the hypercube.
For example, extending a square via its 4 vertices adds one extra line segment (edge) per vertex. Adding the opposite square to form a cube provides line segments.
The extendedf-vector for ann-cube can also be computed by expanding (concisely, (2,1)n), and reading off the coefficients of the resultingpolynomial. For example, the elements of a tesseract is (2,1)4 = (4,4,1)2 = (16,32,24,8,1).
Number of-dimensional faces of a-dimensional hypercube (sequenceA038207 in theOEIS)
Another related family of semiregular anduniform polytopes is thedemihypercubes, which are constructed from hypercubes with alternate vertices deleted andsimplex facets added in the gaps, labeled ashγn.
n-cubes can be combined with their duals (thecross-polytopes) to form compound polytopes:
In two dimensions, we obtain theoctagrammic star figure {8/2},
The graph of then-hypercube's edges isisomorphic to theHasse diagram of the (n−1)-simplex'sface lattice. This can be seen by orienting then-hypercube so that two opposite vertices lie vertically, corresponding to the (n−1)-simplex itself and the null polytope, respectively. Each vertex connected to the top vertex then uniquely maps to one of the (n−1)-simplex's facets (n−2 faces), and each vertex connected to those vertices maps to one of the simplex'sn−3 faces, and so forth, and the vertices connected to the bottom vertex map to the simplex's vertices.
This relation may be used to generate the face lattice of an (n−1)-simplex efficiently, since face lattice enumeration algorithms applicable to general polytopes are more computationally expensive.
Regularcomplex polytopes can be defined incomplexHilbert space calledgeneralized hypercubes, γp n =p{4}2{3}...2{3}2, or... Real solutions exist withp = 2, i.e. γ2 n = γn =2{4}2{3}...2{3}2 = {4,3,..,3}. Forp > 2, they exist in. The facets are generalized (n−1)-cube and thevertex figure are regularsimplexes.
Theregular polygon perimeter seen in these orthogonal projections is called aPetrie polygon. The generalized squares (n = 2) are shown with edges outlined as red and blue alternating colorp-edges, while the highern-cubes are drawn with black outlinedp-edges.
The number ofm-face elements in ap-generalizedn-cube are:. This ispn vertices andpn facets.[9]
Any positive integer raised to another positive integer power will yield a third integer, with this third integer being a specific type offigurate number corresponding to ann-cube with a number of dimensions corresponding to the exponential. For example, the exponent 2 will yield asquare number or "perfect square", which can be arranged into a square shape with a side length corresponding to that of the base. Similarly, the exponent 3 will yielda perfect cube, an integer which can be arranged into a cube shape with a side length of the base. As a result, the act of raising a number to 2 or 3 is more commonly referred to as "squaring" and "cubing", respectively. However, the names of higher-order hypercubes do not appear to be in common use for higher powers.
^Elte, E. L. (1912). "IV, Five dimensional semiregular polytope".The Semiregular Polytopes of the Hyperspaces. Netherlands:University of Groningen.ISBN141817968X.{{cite book}}:ISBN / Date incompatibility (help)
^Coxeter 1973, pp. 122–123, §7.2 see illustration Fig 7.2C.
^Miroslav Vořechovský; Jan Mašek; Jan Eliáš (November 2019). "Distance-based optimal sampling in a hypercube: Analogies to N-body systems".Advances in Engineering Software.137 102709.doi:10.1016/j.advengsoft.2019.102709.ISSN0965-9978.
Hill, Frederick J.; Gerald R. Peterson (1974).Introduction to Switching Theory and Logical Design: Second Edition. New York:John Wiley & Sons.ISBN0-471-39882-9. Cf Chapter 7.1 "Cubical Representation of Boolean Functions" wherein the notion of "hypercube" is introduced as a means of demonstrating a distance-1 code (Gray code) as the vertices of a hypercube, and then the hypercube with its vertices so labelled is squashed into two dimensions to form either aVeitch diagram orKarnaugh map.