06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 514 — #522<br />

514<br />

Chapter 12<br />

Simple Graphs<br />

Problem 12.61.<br />

In this problem you will prove:<br />

Theorem. A graph G is 2-colorable iff it contains no odd length closed walk.<br />

As usual with “iff” assertions, the proof splits into two proofs: part (a) asks you<br />

to prove that the left side of the “iff” implies the right side. The other problem parts<br />

prove that the right side implies the left.<br />

(a) Assume the left side and prove the right side. Three to five sentences should<br />

suffice.<br />

(b) Now assume the right side. As a first step toward proving the left side, explain<br />

why we can focus on a single connected component H within G.<br />

(c) As a second step, explain how to 2-color any tree.<br />

(d) Choose any 2-coloring of a spanning tree T of H . Prove that H is 2-colorable<br />

by showing that any edge not in T must also connect different-colored vertices.<br />

Homework Problems<br />

Problem 12.62.<br />

Suppose D D .d 1 ; d 2 ; : : : ; d n / is a list of the vertex degrees of some n-vertex tree<br />

T <strong>for</strong> n 2. That is, we assume the vertices of T are numbered, and d i > 0 is the<br />

degree of the ith vertex of T .<br />

(a) Explain why<br />

nX<br />

d i D 2.n 1/: (12.6)<br />

iD1<br />

(b) Prove conversely that if D is a sequence of positive integers satisfying equation<br />

(12.6), then D is a list of the degrees of the vertices of some n-vertex tree.<br />

Hint: Induction.<br />

(c) Assume that D satisfies equation (12.6). Show that it is possible to partition<br />

D into two sets S 1 ; S 2 such that the sum of the elements in each set is the same.<br />

Hint: Trees are bipartite.<br />

Problem 12.63.<br />

Prove Corollary 12.9.12: If all edges in a finite weighted graph have distinct weights,<br />

then the graph has a unique MST.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!