






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







DATE AND TIME: WEDNESDAY, JUNE 11, 2003. 4:00 – 6: ROOM: 119 WELLMAN INSTRUCTOR: M. MULASE
Name: (Last) (First)
Student ID Number: − −
Remark.
(1) The exam consists of 10 pages, including the cover sheet. (2) Do not de-staple the sheets. (3) This is a closed-book exam. Do not open the textbook or lecture notes during the exam. (4) You have full two hours. (5) If you are not certain how much you have to prove or explain, ask the proctor before it becomes too late!
Scores:
Page 2: /
Page 3: /
Page 4: /
Page 5: /
Page 6: /
Page 7: /
Page 8: /
Page 9: /
Total: /
Page 10 Optional: /
1
Problem 1 (5 points). Let Γ be a general graph, which may have loops and multiple edges between a pair of vertices. The degree of a vertex x of Γ is the number of edge segments incident to x. Show that the sum of the degrees of all vertices is twice the number of edges of Γ.
Answer: Every edge has two edge segments and thus contributes 2 to the degree count of vertices. Therefore, twice the number of edges is equal to the sum of the degrees of all vertices.
Problem 2 (5 points). A general graph Γ is connected if for every pair of vertices (x, y) of Γ, there is a consecutive sequence of vertices and edges (v 1 , e 1 , v 2 , e 2 ,... , vk, ek, vk+1) such that v 1 = x, vk+1 = y, and that the edge ei is incident to vertices vi and vi+1 for all i = 1, 2 ,... , k. (In short, there is a connected sequence of vertices and edges that starts at x and ends at y.) Let Γ be a connected general graph such that every vertex has an even degree. Now remove an arbitrary edge. Show that the resulting general graph is still connected.
Answer: Let Γ∗^ denote the general graph obtained from Γ by the edge-removal. We prove the connectivity of Γ∗^ by contradiction. If we remove a loop, then this does not affect the connectivity of Γ, and hence Γ∗^ is connected. Suppose that the removed edge was incident to two distinct vertices, say x and y, of Γ. We note that the degrees of x and y in Γ∗^ are odd. If Γ∗^ were disconnected, then x and y should belong to distinct connected components. Note that the connected component containing vertex x is a general graph. But then the sum of all degrees of vertices belonging to this component (general graph) would be odd, because all vertices other than x and y would have maintained the same (even) degrees. This contradicts the fact we proved in Problem 1. Therefore, γ∗^ remains connected.
Remark: Another valid argument, using the existence of an Eulerian trail, goes as follows: The assumption implies that there is a closed Eulerian trail starting from any vertex. Let x be a vertex incident to a removed edge E. Note that there is a closed Eulerian trail starting from x, goes on E, and then comes back to x. This means all edges and vertices other than E are connected to x without E. Thus removal of E does not affect the connectivity of Γ.
The second proof is less desirable than the first one because it uses the heavy theorem of the existence of Eulerian trails.
Problem 4 (5 points). Let Γ be a general graph which may contain loops and multiple edges between any pair of vertices, and let V = { 1 , 2 ,... , n} be the list of all vertices of Γ. The adjacency matrix A = [aij ] of Γ is the n × n symmetric matrix with integer entries such that
(1) aii = the number of loops at the vertex i; (2) aij = aji = the number of edges connecting vertex i with vertex j if i 6 = j.
Describe a graph-theoretic meaning of the ii-entry [A^2 ]ii of A^2. Give your reason.
Answer: [A^2 ]ii is the number of closed walks on Γ of length 2 starting and ending at vertex i. To see this, we remember the formula
[A^2 ]ii =
∑^ n
j=
aij aji = a^2 ii +
j 6 =i
aij aji.
The term a^2 ii indicates the number of walks of length two using loops, starting and ending at i. The second term
j 6 =i aij^ aji^ gives the number of walks that starts at^ i, visits vertex j 6 = i, and comes back to vertex i. Altogether we have counted all possible walks of length 2 starting and ending at i.
Remark: If Γ does not contain any loops or multiple edges, then
[A^2 ]ii =
∑^ n
j=
aij aji =
∑^ n
j=
a^2 ij =
∑^ n
j=
aij = di = degree of vertex i ,
because aij = aji = a^2 ij. Certainly di is the number of walks of length 2 in this case!
Problem 5 (5 points). Let A 1 be the adjacency matrix of a general graph Γ 1 , and A 2 the adjacency matrix of a general graph of Γ 2. Define a new general graph Γ by putting Γ 1 and Γ 2 together, without connecting them. Thus Γ is a disconnected graph consisting of two pieces, Γ 1 and Γ 2. Describe the adjacency matrix A of Γ. Give your reason.
Answer: Let {v 1... , vm} be the vertex set of Γ 1 and {w 1 ,... , wn} that of Γ 2. Using the vertex set {v 1 ,... , vm, w 1 ,... , wn}, the adjacency matrix A of Γ takes the form
A =
which is an m + n by m + n square matrix. Since Γ consists of two parts Γ 1 and Γ 2 without being interconnected, the total adjacency matrix A contains A 1 and A 2 without modification in the block diagonal form. The other block entries are zero because they represent adjacency of vertices of Γ 1 and Γ 2.
Problem 6 (10 points). Let A = [aij ] be the adjacency matrix of a general graph consisting of n vertices { 1 , 2 ,... , n}.
(1) Show that for every i, ∑^ n
j=
aij = di − the number of loops attached to the vertex i ,
where di is the degree of the vertex i. (2) Find a formula for the number of loops of a general graph in terms of its adjacency matrix A and the degree sequence (d 1 , d 2 ,... , dn).
(1) Answer: Recall that the degree di is the number of edge segments incident to vertex i. Thus di is twice the number of loops at i plus the number of edges that connect i and another vertex different from i. Therefore, we have
di = 2aii +
j 6 =i
aij = aii +
∑^ n
j=
aij ,
or (^) n ∑
j=
aij = di − aii.
(2) Answer: The number of loops in a general graph is simply the trace of the adjacency matrix trace(A).
If you like a more complicated formula, then you may give ∑^ n
i=
di −
∑^ n
i=
∑^ n
j=
aij.
Problem 8 (5 points). Show that the maximum number of edges in a disconnected graph of order n without loops or multiple edges is at most
(n− 1 2
. You may use the quadratic inequality x(n − x) − (n − 1) ≥ 0 for 1 ≤ x ≤ n − 1 without proof.
Answer: Let G be a disconnected graph of order n consisting of two components G 1 and G 2 disjoint in G. Suppose k is the order of G 1. Thus 1 ≤ k ≤ n − 1. The maximum number of edges in G 1 does not exceeds the number of edges of the complete graph of order k, which is
(k 2
. Similarly, the maximum number of edges in G 2 is less than or equal to
(n−k 2
. Thus the inequality we wish to establish is ( k 2
n − k 2
n − 1 2
Now, consider the complete graph Kn of order n. In order to change Kn to G, we have to remove at least k(n − k) edges, because none of the k vertices in G 1 are connected to any of the n − k vertices of G 2 in the total graph G. This consideration implies that ( k 2
n − k 2
n 2
− k(n − k).
Using the inequality given in the Problem, we conclude, if 1 ≤ k ≤ n − 1, that ( k 2
n − k 2
n 2
− k(n − k)
n 2
− (n − 1)
n 2
n − 1 1
n − 1 2
. (Pascal’s Formula!!!)
Problem 9 (5 points). Show that if there is a closed Eulerian trail on a general graph Γ, then (1) every vertex has an even degree, and that (2) Γ is connected.
(1) Answer: Let us follow an Eulerian trail to move along Γ. If we come into a vertex x via a non-loop edge e, then we have to leave x via another edge different from e. If a loop is attached at x, then it contributes 2 to the degree of x. Otherwise, every in-coming edge is paired with an out-going edge. Thus the degree of x is even.
(2) Answer: A closed Eulerian trail visits every edge of Γ exactly once, and every vertex possibly many times. Let x and y be any pair of vertices of Γ. Then the Eulerian trail visits both x and y. Hence Γ is connected, by definition.
Problem 10 (5 points). Show by induction on n that a connected graph of order n (without loops or multiple edges) is a tree if and only if it has exactly n − 1 edges.
Answer: Case n = 1. A connected graph of order 1 (consisting of only one vertex) is a tree if and only if it has no edge. Suppose the statement is true for n ≤ k. We wish to show that (1) if there is a tree of order k + 1, then it has exactly k edges, and that (2) if there is a connected graph of order k + 1 with exactly k edges, then it is a tree. (1): Start with a tree T of order k + 1. Let us remove any edge from T. The removal will make two trees of less orders, say i ≥ 1 and j ≥ 1 with i + j = k + 1. (The connected components are trees because any further removal of an edge in each component would have made the original tree disconnected.) Since a tree of order i ≤ k has i − 1 edges and the same is true for j ≤ k by the induction hypothesis, the number of edges in T is
(i − 1) + (j − 1) + 1 = (i + j) − 1 = (k + 1) − 1 = k
as desired. (2): Let G be a connected graph of order k + 1 with k edges. We denote by (d 1 ,... , dk+1) the degree sequence of G, satisfying d 1 ≤ d 2 ≤ · · · ≤ dk+1. Since
d 1 + d 2 + · · · dk+1 = 2k ,
we see that d 1 = 1, because otherwise the equation does not hold. If we remove the unique edge incident to vertex 1 together with vertex 1, then G changes into G∗^ that is a connected graph of order k and with exactly k − 1 edges. Therefore, G∗^ is a tree by the induction hypothesis. Since G is obtained by attaching a vertex and an edge to a tree G∗^ in such a way that removal of this attached edge makes the graph disconnected, G is also a tree, as desired.
WARNING: The problem on this page is optional. The score you obtain from this one will not be counted toward your final exam score. It will rather be added to your midterm scores, giving you a “make-up” opportunity. Try this only when you have plenty of time left, after finishing the other problems!
Problem 12 (10 points, optional). Let Dn denote the number of derangements of n letters. Use the formulas
Dn = n!
n!
e
k=
(−1)k^
k!
to show that if n ≥ 3 , then Dn is the closest integer to n!/e.
Hint: You may prove the following estimate and use it in your solution. ∣ ∣ ∣ ∣(−1)
n+1 1 n + 1
(n + 1)(n + 2)
(n + 1)(n + 2)(n + 3)
n − 1
Answer: Note that 3 ≤ n ≤ n + 1 < n + 2 < n + 3 < · · · implies
1 3
n
n + 1
n + 2
n + 3
Therefore, ∣ ∣ ∣ ∣Dn^ −^
n! e
∣ =^ n!^ ·
∑^ n
k=
(−1)k^
k!
k=
(−1)k^
k!
k=n+
(−1)k^
n! k!
k=n+
n! k!
n + 1
(n + 1)(n + 2)
(n + 1)(n + 2)(n + 3)
n + 1
(n + 1)(n + 1)
(n + 1)(n + 1)(n + 1)
n + 1
1 − (^) n^1 +
n
This (extremely rough) estimate shows that Dn is the closest integer to n!/e. Actually these numbers are very close for a large n.