Docsity

Homework 8 Solutions - Combinatorics | MAT 145, Assignments of Mathematics

Toggle sidebar
bg1
MAT 145: Homework Solutions #8
Prepared by Maya Ahmed and Motohico Mulase
June 16, 2003
1. Brualdi 11.12
Determine which pairs of the multi-graphs in Figure 11.40 are isomorphic and if iso-
morphic, find an isomorphism.
Figure 1: Problem 11.12 Figure 11.40
(i) (ii)
(iii)
Answer:
Figure 2: Problem 11.12 Check for degree differences. Note that the degree sequences of
vertices in all the graphs are same.
(i) (ii)
(iii)
(3)
(3)(3)
(3)
(3)(3)
(3)(3)
(3)
(3)
(3) (3)(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3) (3)
(3)
(3)
(3)
(3)
Graph (i) and (ii) are isomorphic. A relabelling of vertices that shows the isomorphism
is shown in the figure below. The graph (iii) is not isomorphic since it contains a 4-cycle
a-b-c-d, and the graphs (i) and (ii) have no 4-cycles.
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Homework 8 Solutions - Combinatorics | MAT 145 and more Assignments Mathematics in PDF only on Docsity!

MAT 145: Homework Solutions

Prepared by Maya Ahmed and Motohico Mulase

June 16, 2003

  1. Brualdi 11. Determine which pairs of the multi-graphs in Figure 11.40 are isomorphic and if iso- morphic, find an isomorphism.

Figure 1: Problem 11.12 Figure 11.

(i) (^) (ii)

(iii)

Answer:

Figure 2: Problem 11.12 Check for degree differences. Note that the degree sequences of vertices in all the graphs are same.

(i) (^) (ii)

(iii)

(3)

(3) (3) (3) (3) (3) (3) (3)

(3) (3)

(3) (3) (3)

(3) (3)

(3)

(3)

(3)

(3)

(3) (3)

(3)

(3)

(3)

(3) (^) (3)

(3)

(3) (3)

(3)

Graph (i) and (ii) are isomorphic. A relabelling of vertices that shows the isomorphism is shown in the figure below. The graph (iii) is not isomorphic since it contains a 4-cycle a-b-c-d, and the graphs (i) and (ii) have no 4-cycles.

Figure 3: Problem 11.12 Isomorphism of graphs

(i) (^) (ii)

(iii)

1

2

4 3

5 6 7 9 8

10

1 6

9 8

5 2

4 3

(^710)

a

b

c d

  1. Brualdi 11.

Prove that a graph of order n with at least

(n − 1)(n − 2) 2

edges must be connected. Give an example of a disconnected graph of order n with one fewer edge. Answer: [By M. Mulase] We note that the complete graph has the largest number of edges among the graphs with the same order. A graph of order n (i.e., a graph that has n vertices) is discon- nected if it has two subgraphs of orders k and n − k that are not connected, here k is some integer in the range 1 ≤ k ≤ n − 1. Among all such graphs, the largest number of edges is achieved if we have the complete graph of order k and the complete graph of order n − k. If you add just one more edge to this situation, then the added edge should connect the two disjoint components to make a connected graph of order n. Thus we have to establish an inequality that ( k 2

n − k 2

(n − 1)(n − 2) 2

for every 1 ≤ k ≤ n − 1. [Note: It is a very common mistake that you prove this inequality only for k = 1 and think you are done. Of course that is not the right answer!] The proof goes as follows. First we notice that the inequality we want to establish is equivalent to (^) ( k 2

n − k 2

(n − 1)(n − 2) 2

  1. Brualdi 11.

Let G be a general graph with exactly two vertices x and y of odd degree. Let G∗^ be the general graph obtained by putting a new edge {x, y} joining x and y. Prove that G is connected if and only if G∗^ is connected. Answer: [by M. Mulase] Clearly if G is connected, then G∗^ is connected. Conversely, assume that G∗^ is connected. We note that every vertex of G∗^ has an even degree. Notice that G is obtained by removing an edge connecting x and y. Now suppose G is disconnected. Then the vertices x and y should belong to different connected components of G. Since all other vertices have even degrees, the total degree of each connected component becomes odd. But the total degree (i.e., the sum of the degrees of all vertices) is always even for any general graph. Thus it is impossible for x and y to belong to different connected components. Which means removing an edge from a connected general graph with even degree vertices everywhere does not affect the connectivity. Therefore, G is connected.  Remark: The above argument is used when you prove the criterion for the existence of an Eulerian trail by induction on the number of edges, instead of the way the book does. I strongly recommend you try the proof!!!

  1. Brualdi 11.

Determine the adjacency matrices of the first and second multi-graphs in Figure 11.40. Answer: Label the graphs as shown in Figure 6. Since the two graphs are isomorphic, they have the same adjacency matrix                 0 1 0 0 1 1 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 0 1 1 0 0

  1. Brualdi 11.

Let A and B be two n × n matrices of numbers whose entries are denoted by aij and bij , (1 ≤ i, j ≤ n), respectively. Define the product A × B to be the n × n matrix C

Figure 6: Problem 11.

(i) (^) (ii)

1

2

4 3

5 6 7 9 8

10

1 6

9 8

5 2

4 3

(^710)

whose entry cij in row i and column j is given by

cij =

∑^ n

p=

aipbpj (1 ≤ i, j ≤ n).

If k is a positive integer define

Ak^ = A × A × A × · · · × A(kA′s).

Now let A denote the adjacency matrix of a general graph of order n with vertices a 1 , a 2 ,... , an. Prove that the entry in row i, column j of Ak^ equals the number of walks of length k in G joining vertices ai and aj.

Answer: Proof by induction:

Since A is an adjacency graph, Aij denotes the number of edges joining vertices ai and aj. Thus Aij is the number of walks of length 1 joining vertices ai and aj.

Assume that the entry in row i, column j of Ak^ equals the number of walks of length k in G joining vertices ai and aj. We need to show that the result holds for n = k + 1. Since Ak+1^ = AkA, we have

Ak ij+1 =

∑^ n

p=

AkipApj (1 ≤ i, j ≤ n).

Consider a term in the summand, AkipApj. By the induction hypothesis, Akip denotes the number of walks of length k between the vertices ai and ap and Apj denotes the number of edges between vertices ap and aj. Thus we get, AkipApj walks of length k + 1 between the vertices ai and aj by extending the walks of length k between vertices ai and ap by the edges between vertices ap and aj. Since every walk of length k + 1 from ai to aj goes through a vertex, say ap, after k steps, the summation above counts all distinct walks of length k + 1.

The result follows by induction.

  1. Brualdi 11.

Prove that a bipartite multi-graph with an odd number of vertices does not have a Hamilton cycle. Answer: [by M. Mulase] Suppose a bipartite multigraph B has a Hamiltonian cycle h. We align all vertices in two columns such that every edge connects a vertex in the left column with a vertex in the right column. Label all vertices of the bipartite graph B following the Hamiltonian cycle h: namely, call the first vertex 1, then follow the cycle h to label the second vertex 2, etc, up to n, and finally comes back to 1. Let us choose the first vertex on the left column. Then every vertix on the left column is labeled with an odd number and every vertix on the right column is labeled with an even number (see Figure 8). Since n is on the right column because it is the last vertex before coming back to 1, it must be an even number. Therefore, the Hamiltonian cycle we are dealing with must have even number of vertices. This proves that a bipartite multigraph with an odd number of vertices cannot have a Hamilton cycle.

1

2

6

4

8

n

7 5 9 3

Figure 8: A Hamiltonian cycle on a bipartite graph.

  1. Brualdi 11.56 Grow all the non-isomorphic trees of order 7.

Answer: Growing trees is indeed a difficult task! Here is the correct list. The previous one had an error, pointed out by our Reader.

Figure 9: Trees of order 7.

  1. Brualdi 11.

Let (d 1 , d 2 ,... , dn) be a sequence of integers. (a) Prove that there is a tree of order n with this degree sequence iff d 1 , d 2 ,... , dn are positive integers with sum d 1 + d 2 + · · · + dn = 2(n − 1). Answer: [by M. Mulase] First we have to understand the statement of the claim. Let e be the number of edges of any general graph of order n (order = number of vertices). Then we have

d 1 + d 2 + · · · + dn = 2e. (1)

Therefore, the formula we are given is simply saying that e = n − 1. Thus the claim we have to prove is that a connected general graph of order n is a tree if and only if its number of edges is equal to n − 1. We refer the proof to Chapter 11.5 of the book. (b) Write an algorithm, which starting with a sequence (d 1 , d 2 ,... , dn) of positive integers, either constructs a tree with this degree sequence or concludes that none is possible. Answer: [by M. Mulase] First we check if d 1 + d 2 + · · · + dn = 2(n − 1). If yes, proceed. If not, then there is no tree of the degree sequence (d 1 , d 2 ,... , dn). Now we have a sequence satisfying the condition

d 1 + d 2 + · · · + dn = 2(n − 1), d 1 ≤ d 2 ≤ · · · ≤ dn.

If n = 1, then the tree consists of a single vertex with no edge. So we assume n ≥ 2. We start with the n-th vertex, the vertex with the largest degree. For simplicity of presentation, we assume that exactly first i terms of the degree sequence is 1:

1 = d 1 = d 2 = · · · = di < di+1 ≤ di+2 ≤ · · · dn.

Step 1. Attach dn − 1 edges to the vertex n and also dn − 1 vertices to the end of these attached edges. Step 2. Attach dn− 1 − 2 edges to the vertex n − 1 with degree 1 vertex at the end. Then connect the vertex n − 1 to the vertex n with an edge. (See Figure 10.)

n − (^1) n

Figure 10: Constructing a tree of a prescribed degree sequence.