
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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 V − S. Assume that S is the smaller piece; i.e. | S | ≤ | V − S |.
Theorem: | ES , V − S | ≥ | 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 V − S 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 , V − S | ≥ 2 n^ − 1 ≥ | S |. This is because by the induction hypothesis, the number of edges in ES , V − S 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 , V − S 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