Hypercube

This article is about the dimensional polytope hypercube; for the communication pattern, see hypercube (communication pattern).

Hypercubes or dimensional polytopes are n-dimensional analogues of the square ( n=2) and the cube ( n=3). Here n can be any natural number. The four-dimensional hypercube is also called a tesseract. The symmetry group of a hypercube is the hyperoctahedral group.

Projection of a tesseract (four-dimensional hypercube) into the 2nd dimensionZoom
Projection of a tesseract (four-dimensional hypercube) into the 2nd dimension

Regular cube construction

Regular cubes of edge length a\neq 0 can be generated as follows:

  • If a point is amoved in a straight line by the distance a , the result is a one-dimensional line, mathematically a one-dimensional hypercube.
  • If this distance is ashifted perpendicular to its dimension by the distance , the result is a two-dimensional square, a surface, mathematically a two-dimensional hypercube.
  • If this square is ashifted perpendicular to its two dimensions by the distance , the result is a three-dimensional cube, mathematically equivalent to a three-dimensional hypercube.
  • General: Thus, if an n-dimensional cube is ashifted perpendicular to its dimensions nby distance , a (n+1)-dimensional hypercube is formed.

Boundary Elements

In a hypercube of dimension n there are exactly nedges at each vertex. Accordingly, a hypercube is an undirected multigraph (see also: graph theory).

The n -dimensional cube is bounded by zero-dimensional, one-dimensional, ..., {\displaystyle (n\!-\!1)}-dimensional elements. By example:

The 3-dimensional cube is bounded by nodes (points), edges (lines) and faces, i.e. by elements of the dimensions 0,1 and 2.

The number of individual boundary elements can be derived from the following consideration: Let be {\displaystyle n\!+\!1}given a hypercube of dimension The k-dimensional boundary elements of this cube ( k_{{n+1}}) can be generated from the boundary elements of an n-dimensional hypercube as follows: the k-dimensional boundary elements ( k_{{n}}) double and all {\displaystyle k\!-\!1}dimensional elements {\displaystyle (k\!-\!1)_{n}}are expanded to k-dimensional ones. Thus, the sum gives a number of k_{{n+1}}=2k_{{n}}+(k-1)_{{n}}.

Example

  • The 2-dimensional hypercube is bounded by 1 face (k_{{n}}=2), 4 edges (k_{{n}}=1)and 4 nodes (k_{{n}}=0).
  • The 3-dimensional cube is bounded by 2+4=6faces (k_{{n+1}}=2), bounded by 8+4=12edges (k_{{n+1}}=1)and 4+4=8Nodes (k_{{n+1}}=0).

Another way to think about it is: If one places an n -dimensional hypercube in a Cartesian coordinate system centered about the origin and aligned along the coordinate axes, there are to a k-dimensional boundary element there are kcoordinate axes that are parallel to that boundary element. On the other hand, for each choice of kcoordinate axes, there is not only one k-dimensional boundary element, but {\displaystyle 2^{n-k},}because by each of the n-k axes perpendicular to the boundary elements, one doubles the number of boundary elements (there are the same boundary elements again parallel-shifted on the other side of the axis). Thus, the number of boundary elements is the product of the number of ways kaxes to select from the naxes with the number of boundary elements for each selection, and is thus {\displaystyle {\binom {n}{k}}\cdot 2^{n-k}}(with the binomial coefficient {\binom {n}{k}}).

 

Schläfli symbol

Number of boundary elements

0-dim.

1-dim.

2-dim.

3-dim.

4-dim.

\ldots

{\displaystyle (n\!-\!1)}-dim.

n-dim.

Item

()

1

Route

\{\}

2

1

Square

{\displaystyle \{4\}}

4

4

1

3-dim. cube

{\displaystyle \{4,3\}}

8

12

6

1

4-dim. cube

{\displaystyle \{4,3,3\}}

16

32

24

8

1

\vdots

n-dim.
cube

{\displaystyle \{4,3^{n-2}\}}

2^{n}

n2^{{n-1}}

{\displaystyle {\binom {n}{2}}2^{n-2}}

{\displaystyle {\binom {n}{3}}2^{n-3}}

\ldots

\ldots

{\displaystyle {\binom {n}{n-1}}2^{1}=2n}

{\displaystyle {\binom {n}{n}}2^{0}=1}

Each k-dimensional boundary element of an n-dimensional cube of edge length ais, for {\displaystyle 0<k\leq n}, a k-dimensional cube of the same edge length a. Thus a 4-hypercube has 16 vertices, an edge mesh of length {\displaystyle 32a}, is bounded by a surface mesh of total area {\displaystyle 24a^{2}} and by cells with total 3 volume (the 3-dimensional hypersurface) of {\displaystyle 8a^{3}}and has a 4 volume of {\displaystyle a^{4}}.

The way to the hypercubeZoom
The way to the hypercube

The 0- to 5-dimensional cubes in parallel projectionZoom
The 0- to 5-dimensional cubes in parallel projection

Questions and Answers

Q: What is a hypercube?


A: A hypercube is an n-dimensional analogue of a square (n = 2) and a cube (n = 3). It is a closed, compact, convex figure whose 1-skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions, perpendicular to each other and of the same length.

Q: What is the longest diagonal in an n-dimensional hypercube?


A: The longest diagonal in an n-dimensional hypercube is equal to n {\displaystyle {\sqrt {n}}}.

Q: Is there another term for an n-dimensional hypercube?


A: An n-dimensional hypercube is also called an n-cube or an n-dimensional cube. The term "measure polytope" was also used but it has now been superseded.

Q: What does "unit hypercube" mean?


A: A unit hypercube is a hypercube whose side has length one unit. Often, the unit hypercube refers to the specific case where all corners have coordinates equal to 0 or 1.

Q: How can we define a "hyperrectangle"?


A: A hyperrectangle (also called an n-orthotope) is defined as the general case of a hypercube.

AlegsaOnline.com - 2020 / 2023 - License CC3