Assignment # 4 Selected Solutions

Similar documents
K 4 C 5. Figure 4.5: Some well known family of graphs

8.2 Paths and Cycles

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Problem Set 2 Solutions

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Number Theory and Graph Theory

Section 3.1: Nonseparable Graphs Cut vertex of a connected graph G: A vertex x G such that G x is not connected. Theorem 3.1, p. 57: Every connected

Solutions to In-Class Problems Week 4, Fri

PROBLEM SET 1 SOLUTIONS MAS341: GRAPH THEORY 1. QUESTION 1

Problem Set 2 Solutions

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

Chapter 3: Paths and Cycles

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

COL351: Analysis and Design of Algorithms (CSE, IITD, Semester-I ) Name: Entry number:

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

On Two Short Proofs About List Coloring Graphs

Answers to specimen paper questions. Most of the answers below go into rather more detail than is really needed. Please let me know of any mistakes.

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Discharging and reducible configurations

Bipartite Roots of Graphs

Rigidity, connectivity and graph decompositions

Math 776 Graph Theory Lecture Note 1 Basic concepts

Notes for Recitation 8

DISTRIBUTIVE LATTICES

Graph Connectivity G G G

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Steiner Trees and Forests

11.2 Eulerian Trails

HW Graph Theory SOLUTIONS (hbovik) - Q

An Introduction to Graph Theory

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Solution to Graded Problem Set 4

CIS 121 Data Structures and Algorithms Minimum Spanning Trees

2. CONNECTIVITY Connectivity

Assignment 4 Solutions of graph problems

V10 Metabolic networks - Graph connectivity

Broadcast: Befo re 1

Characterizations of Trees

INTRODUCTION TO GRAPH THEORY. 1. Definitions

by conservation of flow, hence the cancelation. Similarly, we have

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

Excellent graphs Preethi Kuttipulackal Mixed Tree Domination in Graphs Thesis. Department of Mathematics, University of Calicut, 2012

Approximation slides 1. An optimal polynomial algorithm for the Vertex Cover and matching in Bipartite graphs

CSE331 Introduction to Algorithms Lecture 15 Minimum Spanning Trees

Fundamental Properties of Graphs

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

Graph Definitions. In a directed graph the edges have directions (ordered pairs). A weighted graph includes a weight function.

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Solutions for the Exam 6 January 2014

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

The University of Sydney MATH 2009

Professor: Padraic Bartlett. Lecture 9: Trees and Art Galleries. Week 10 UCSB 2015

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

MATH20902: Discrete Maths, Solutions to Problem Set 1. These solutions, as well as the corresponding problems, are available at

14 More Graphs: Euler Tours and Hamilton Cycles

The External Network Problem

Planarity: dual graphs

Math 443/543 Graph Theory Notes 2: Transportation problems

Solutions to In Class Problems Week 5, Wed.

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Graphs and Isomorphisms

Math 485, Graph Theory: Homework #3

Binding Number of Some Special Classes of Trees

Weak Dynamic Coloring of Planar Graphs

Lecture 20 : Trees DRAFT

Math 575 Exam 3. (t). What is the chromatic number of G?

Math 443/543 Graph Theory Notes 11: Graph minors and Kuratowski s Theorem

Math 170- Graph Theory Notes

1 Leaffix Scan, Rootfix Scan, Tree Size, and Depth

1. The following graph is not Eulerian. Make it into an Eulerian graph by adding as few edges as possible.

Recognizing Interval Bigraphs by Forbidden Patterns

Week 11: Minimum Spanning trees

Treewidth and graph minors

Lecture 3: Graphs and flows

Graph Theory. Chapter 4.

CSE 331: Introduction to Algorithm Analysis and Design Graphs

{ 1} Definitions. 10. Extremal graph theory. Problem definition Paths and cycles Complete subgraphs

Ma/CS 6b Class 5: Graph Connectivity

Lecture 4: Trees and Art Galleries

Ma/CS 6b Class 10: Ramsey Theory

Week 9: Planar and non-planar graphs. 7 and 9 November, 2018

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

Ma/CS 6b Class 26: Art Galleries and Politicians

Outline. Computer Science 331. Analysis of Prim's Algorithm

These are not polished as solutions, but ought to give a correct idea of solutions that work. Note that most problems have multiple good solutions.

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

Introduction to Graph Theory

Ma/CS 6b Class 12: Ramsey Theory

W4231: Analysis of Algorithms

A Reduction of Conway s Thrackle Conjecture

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

2. Lecture notes on non-bipartite matching

Graph Algorithms Using Depth First Search

HW Graph Theory SOLUTIONS (hbovik)

CS 561, Lecture 9. Jared Saia University of New Mexico

Transcription:

Assignment # 4 Selected Solutions Problem 2.3.3 Let G be a connected graph which is not a tree (did you notice this is redundant?) and let C be a cycle in G. Prove that the complement of any spanning tree of G contains at least one edge of C. Solution 1 Direct proof We know that and edge of G is a bridge if and only if it is not in any cycle. But since C is a cycle in G, none of its edges is a bridge. Pick one of them, e, then removing any edge e of C does not disconnect G. Then G e still has a spanning tree T. Now by definition of the complement, T contains exactly those edges that are not in T. Hence, e T. Solution 2 Proof by contradiction Let C be a cycle and T a spanning tree such that no edge of C belongs to T. Then by the definition of the complement, all edges of C belong to T. Hence, T cannot be a tree, since a tree is acyclic, a contradiction. 1

2 Problem 2.3.4a Let G be an edge of a connected graph G. bridge if and only if it is in every spanning tree of G. Prove that e is a Solution 1 Proof by contrapositive both ways This is a nice proof, because both directions are proved by contraposition. Hence, we are in fact proving by direct proofs the statement e is not a bridge if and only if there is a spanning tree of G not containing e. So let s prove if e is in every spanning tree of G, then e is a bridge. Assume that e is not a bridge ( q). We want to show p, that is, there is a spanning tree of G not containing e. Because e is not a bridge, removing it from G does not make the graph disconnected. Because G e is connected, it contains a spanning tree T. Apparently, e / T. (What were we proving, a necessary or sufficient condition?) Now the other direction (necessary or sufficient?:) if e is a bridge, then e is in every spanning tree of G. Suppose there is a spanning tree S not containing e. Adding e to S joins two vertices, that were in S connected by a path, thus e now belongs to a cycle in S + e and therefore in G. By Theorem 2.7, it is not a bridge. This can also be rephrased as a proof by contradiction. Now p is e is in every spanning tree of G and q is e is a bridge. We assume p q, that is, e is in every spanning tree of G but e is not a bridge. In fact, this would only be really rephrased contraposition, because we would have (p q) p. Solution 2 Direct proof of the necessary condition Let s finally confirm that if e is a bridge, then e is in every spanning tree of G is the necessary condition. Let e be a bridge of G. Then by definition of a bridge, G e is disconnected. By Theorem 2.12 (H has a spanning tree iff H is connected) G e has no spanning tree. In other words, there is no spanning tree without e and hence e is in every spanning tree. (Notice that if you just state the argument that G e has no spanning tree without citing the theorem, your argument is not supported and therefore not complete.) Or we can say: Let e be a bridge of G. Then by definition of a bridge, G e is disconnected. Hence, every spanning subgraph of G e must be disconnected. Then no spanning subgraph of G e is a spanning tree. Because G was connected and had a spanning tree, more precisely spanning trees S 1,..., S k where k 1, e must be in every S i. Solution 2 Direct proof of the sufficient condition We are proving if e is in every spanning tree of G then e is a bridge. Because e is in every spanning tree, then it is in at least one, and G is connected. Also because it is in every spanning tree, then there is no spanning tree in G e, hence G e is disconnected. So it follows from the definition that e is a bridge.

3 Problem 2.3.5 Prove that if G has exactly one spanning tree, then G is a tree. Solution 1 Proof by contraposition Suppose that G is not a tree. Then it is either not connected, or contains a cycle. In the former case, it has no spanning tree. In the latter case, if it is connected, it contains a cycle C. No edge of C can be a bridge, so removing any edge e of C still keeps the graph G e connected. Find a spanning tree T of G e. Now the graph H = T + e contains a cycle C. Remove from H any edge of C other than e, say f. Resulting graph H f is still connected, since f belonged to C and hence was not a bridge. Now T = H f is a tree (why? can you prove it?) containing all vertices of G. We know that T T and hence we have more than one spanning tree. In both cases, we have p. Solution 2 Proof by contradiction Suppose that G has exactly one spanning tree and is not a tree itself. Then it contains cycle(s). You cannot use the argument from Solution 1 here yet! If you remove e from a cycle C, you cannot argue that if you start by removing another edge f from C, you eventually obtain different spanning tree. You do not know whether after removing e you will not have to remove f later to get rid of another cycle C. Keep removing edges and always check whether you got a tree. If yes, then call it T and put back the last removed edge e. This creates a cycle that contains another edge f. Remove f to obtain T. Apparently, T T, which we wanted to show.

4 Problem 2.6.1 Prove that a vertex v of a tree T is a cut vertex iff deg(v) > 1. Solution 1 Proof by contrapositive both ways First we prove that if a vertex v of a tree T is a cut vertex then deg(v) > 1. If deg(v) = 0, then T = K 1 and there is no cut-vertex at all. So suppose that deg(v) = 1 and call its only neighbor u. Because T is connected, then there is a (unique) (u, w)-path for any vertex w u in T. Moreover, if w v, then the path does not contain edge uv, since v is of degree one. Now if we remove v, there is still the same (u, w)-path in T v as before, and hence T v is still connected and v is not a cut-vertex. Now we prove that if v is a vertex of a tree T and deg(v) > 2, then v is a cut-vertex. Hence we assume that v is not a cut-vertex, which means that T v is connected. We want to show that the statement v is a vertex of a tree T and deg(v) > 2 is not true. To show that, it is enough to show that either deg(v) 1 or T is not a tree. If deg(v) 1, we are done. Hence we suppose that v is of degree at least two in T. Then v has at least two neighbors, say u and w. We supposed that T v is connected, and therefore there is a (u, w)-path in T v. But this path together with the edges uv and wv creates a cycle, hence T is not a tree. Solution 2 Proof by a counting argument both ways First we prove that if a vertex v of a tree T is a cut vertex then deg(v) > 1. Suppose T has n vertices. Because v is a cut vertex, then T v has k components, M 1, M 2,..., M k, where k 2. We proved in the previous assignment that this graph has (n 1) k edges (because we now have only n 1 vertices in T v), and we know that k 2 and hence (n 1) k n 3. At the same time, there were exactly n 1 edges in T. Therefore, by removing v we must have removed at least 2 edges and deg(v) 2. Or even simpler, we have a tree T with n vertices and n 1 edges, and a vertex v such that deg(v) > 1. Removing v from T, we remove at least two edges, so our new graph T = T v is still acyclic, has n 1 vertices, and at most (n 1) 2 = n 3 < n 2 edges. Having n 1 vertices and less than n 2 edges, T cannot be a tree, so v is a cut vertex. Now we use a contraposition and prove that if v is a vertex of a tree T and deg(v) = 1, then v is not a cut-vertex. Suppose T has n vertices. Remove v from T to obtain a graph T. By removing v, we have removed exactly one edge, as deg(v) = 1. Because by removing a vertex we do not create a new cycle, T is still acyclic. T had n vertices and n 1 edges and T has n = n 1 vertices and n 2 = n 1 edges. Because it is acyclic, has n vertices and n 1 edges, by a Theorem in the book it is a tree and hence connected. Thus, v was not a cut-vertex.

Solution 3 Proof of sufficient condition by contradiction Let T have n vertices and deg(v) 2. Suppose that T v is still connected. Since T v has n 1 edges and is still acyclic, it is again a tree and has n 2 edges. But T had n 1 edges and we have removed at least 2 of them, hence can have at most n 3 edges, which is a contradiction. 5