The nodes are placed with respect to the Gray code.
A hypercube of dimension will be constructed by
the appropriate union of two hypercubes with dimension .
Neighboring nodes in the hypercube differ in exactly one bit of their
binary presentation. The position of that bit defines
uniquely the number of the link connecting these nodes,
e.g., nodes and are connected via link
in a 3-dimensional hypercube.
All links with the same link number (= bit position) subdivide
the -dimensional hypercube in 2 -dimensional hypercubes.
Depending on the fact whether the bit is set or not,
all nodes are mapped to one of the two subcubes, e.g.
in Fig. 2.6, link 2 divides the 3-dimensional hypercube
into the subcubes
and
.
Figure 2.6:
Hypercube
links per node.
Diameter:
The shortest path in a hypercube between nodes and
can be calculated by XOR(,) , wherein the
not-cleared bits determine the links used in that path.
Ex.:
,
XOR(,)
The path in the example is contained in a 2-dimensional subcube.
Hardware: nCube
The hypercube contains also the topologies ring, toris and
optimal tree (2.2.2 - 2.2.5).
A ring consisting of nodes can be defined recursively
and can be embedded in the hypercube :
Figure 2.7:
Embedding of a ring in a 3d hypercube
Exercise 1:
Map a
torus into a
()-dimensional hypercube.
Exercise 2:
Visualize by means of a 3d hypercube that the optimal tree
(Sec. 2.2.5) with node as root is embedded therein.
How many mappings are possible ?
Exercise 3:
Determine an embedding of an optimal tree with root
onto a 3d hypercube.
Exercise 4:
Find a simple function which maps the node numbers from E2.2 onto
those of E2.3.