Hypercubes - Discrete Mathematics and Probability Theory - Lecture Notes, Study notes of Discrete Structures and Graph Theory

In these lecture notes, the key points according to me are:Hypercubes, Dimensional Hypercube, Edge Between Vertices, Equivalent Recursive Definition, Number of Edges, Bit Positions, Straightforward Induction, Alternative Proof, Remaining Vertices, Induction Step, Induction Hypothesis

Typology: Study notes

2012/2013

Uploaded on 04/27/2013

ascharya
ascharya 🇮🇳

4.6

(21)

166 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Hypercubes
Recall that the set of all n-bit strings is denoted by {0,1}n. The n-dimensional hypercube is a graph whose
vertex set is {0,1}n(i.e. there are exactly 2nvertices, each labeled with a distinct n-bit string), and with
an edge between vertices xand yiff xand ydiffer in exactly one bit position. i.e. if x=x1x2...xnand
y=y1y2...yn, then there is an edge between xand yiff there is an isuch that j6=i,xj=yjand xi6=yi.
There is another equivalent recursive definition of the hypercube:
The n-dimensional hypercube consists oftwo copies of then1-dimensional hypercube (the 0-subcube and
the 1-subcube), and with edges between corresponding vertices in the two subcubes. i.e. there is an edge
between vertex xin the 0-subcube (also denoted as vertex 0x) and vertex xin the 1-subcube.
Claim: The total number of edges in an n-dimensional hypercube is n2n1.
Proof: Each vertex has nedges incident to it, since there are exactly nbit positions that can be toggled to
get an edge. Since each edge is counted twice, once from each endpoint, this yields a grand total of n2n/2.
Alternative Proof: By the second definition, it follows that E(n) = 2E(n1) + 2n, and E(1) = 1. A
straightforward induction shows that E(n) = n2n1.
We will prove that the n-dimensional hypercube is a very robust graph in the following sense: consider how
many edges must be cut to separate a subset Sof vertices from the remaining vertices VS. Assume that S
is the smaller piece; i.e. |S| |VS|.
Theorem: |ES,VS| |S|.
Proof: By induction on n. Base case n=1 is trivial.
For the induction step, let S0be the vertices from the 0-subcube in S, and S1be the vertices in Sfrom the
1-subcube.
Case 1: If |S0| 2n1/2 and |S1| 2n1/2 then applying the induction hypothesis to each of the subcubes
shows that the number of edges between Sand VSeven without taking into consideration edges that cross
between the 0-subcube and the 1-subcube, already exceed |S0|+|S1|=|S|.
Case 2: Suppose |S0|>2n1/2. Then |S1| 2n1/2. But now |ES,VS| 2n1 |S|. This is because by
the induction hypothesis, the number of edges in ES,VSwithin the 0-subcube is at least 2n1 |S0|, and
those within the 1-subcube is at least |S1|. But now there must be at least |S0| |S1edges in ES,VSthat
cross between the two subcubes (since there are edges betwen every pair of corresponding vertices. This is
a grand total of 2n1 |S0|+|S1|+|S0|− |S1|=2n1.
CS 70, Fall 2004, Lecture 11 1
Docsity.com

Partial preview of the text

Download Hypercubes - Discrete Mathematics and Probability Theory - Lecture Notes and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Hypercubes

Recall that the set of all n -bit strings is denoted by { 0 , 1 } n. The n -dimensional hypercube is a graph whose vertex set is { 0 , 1 } n^ (i.e. there are exactly 2 n^ vertices, each labeled with a distinct n -bit string), and with an edge between vertices x and y iff x and y differ in exactly one bit position. i.e. if x = x 1 x 2... xn and y = y 1 y 2... yn , then there is an edge between x and y iff there is an i such that ∀ j 6 = i , x (^) j = y (^) j and xi 6 = yi.

There is another equivalent recursive definition of the hypercube:

The n -dimensional hypercube consists of two copies of the n − 1-dimensional hypercube (the 0-subcube and the 1-subcube), and with edges between corresponding vertices in the two subcubes. i.e. there is an edge between vertex x in the 0-subcube (also denoted as vertex 0 x ) and vertex x in the 1-subcube.

Claim: The total number of edges in an n -dimensional hypercube is n 2 n −^1.

Proof: Each vertex has n edges incident to it, since there are exactly n bit positions that can be toggled to get an edge. Since each edge is counted twice, once from each endpoint, this yields a grand total of n 2 n /2.

Alternative Proof: By the second definition, it follows that E ( n ) = 2 E ( n − 1 ) + 2 n , and E ( 1 ) = 1. A straightforward induction shows that E ( n ) = n 2 n −^1.

We will prove that the n -dimensional hypercube is a very robust graph in the following sense: consider how many edges must be cut to separate a subset S of vertices from the remaining vertices VS. Assume that S is the smaller piece; i.e. | S | ≤ | VS |.

Theorem: | ES , VS | ≥ | S |.

Proof: By induction on n. Base case n = 1 is trivial.

For the induction step, let S 0 be the vertices from the 0-subcube in S , and S 1 be the vertices in S from the 1-subcube.

Case 1: If | S 0 | ≤ 2 n −^1 /2 and | S 1 | ≤ 2 n −^1 /2 then applying the induction hypothesis to each of the subcubes shows that the number of edges between S and VS even without taking into consideration edges that cross between the 0-subcube and the 1-subcube, already exceed | S 0 | + | S 1 | = | S |.

Case 2: Suppose | S 0 | > 2 n −^1 /2. Then | S 1 | ≤ 2 n −^1 /2. But now | ES , VS | ≥ 2 n^ − 1 ≥ | S |. This is because by the induction hypothesis, the number of edges in ES , VS within the 0-subcube is at least 2 n −^1 − | S 0 |, and those within the 1-subcube is at least | S 1 |. But now there must be at least | S 0 | − | S 1 edges in ES , VS that cross between the two subcubes (since there are edges betwen every pair of corresponding vertices. This is a grand total of 2 n −^1 − | S 0 | + | S 1 | + | S 0 | − | S 1 | = 2 n −^1.

CS 70, Fall 2004, Lecture 11 1

Docsity.com