Solution to Graded Problem Set 4

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

1. Chapter 1, # 1: Prove that for all sets A, B, C, the formula

HW Graph Theory SOLUTIONS (hbovik) - Q

Problem Set 2 Solutions

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

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

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.

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

1 Some Solution of Homework

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

Math 485, Graph Theory: Homework #3

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

Module 7. Independent sets, coverings. and matchings. Contents

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

GRAPH THEORY: AN INTRODUCTION

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

Assignment # 4 Selected Solutions

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

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

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

Math 776 Graph Theory Lecture Note 1 Basic concepts

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.

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

Ma/CS 6b Class 5: Graph Connectivity

Discrete mathematics , Fall Instructor: prof. János Pach

Recursion and Structural Induction

Copyright 2000, Kevin Wayne 1

An Improved Upper Bound for the Sum-free Subset Constant

Discrete Wiskunde II. Lecture 6: Planar Graphs

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

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

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

CPCS Discrete Structures 1

Solutions to In Class Problems Week 5, Wed.

Graph Theory Day Four

Extremal Graph Theory: Turán s Theorem

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.

Number Theory and Graph Theory

Ma/CS 6b Class 4: Matchings in General Graphs

Graphs and networks Mixed exercise

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

Coloring planar graphs

Assignment 4 Solutions of graph problems

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

Discharging and reducible configurations

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

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

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

Math 15 - Spring Homework 2.6 Solutions 1. (2.6 # 20) The following graph has 45 vertices. In Sagemath, we can define it like so:

Induction Review. Graphs. EECS 310: Discrete Math Lecture 5 Graph Theory, Matching. Common Graphs. a set of edges or collection of two-elt subsets

MAT 145: PROBLEM SET 6

Graph theory - solutions to problem set 1

Independence Number and Cut-Vertices

THE PRINCIPLE OF INDUCTION. MARK FLANAGAN School of Electrical, Electronic and Communications Engineering University College Dublin

11.9 Connectivity Connected Components. mcs 2015/5/18 1:43 page 419 #427

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.

Bipartite Roots of Graphs

CME 305: Discrete Mathematics and Algorithms Instructor: Reza Zadeh HW#3 Due at the beginning of class Thursday 02/26/15

Kruskal s MST Algorithm

Matching Theory. Figure 1: Is this graph bipartite?

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

Counting the number of spanning tree. Pied Piper Department of Computer Science and Engineering Shanghai Jiao Tong University

Lecture 20 : Trees DRAFT

Number Theory and Graph Theory

Lecture 2 : Counting X-trees

CS525 Winter 2012 \ Class Assignment #2 Preparation

Lecture 22 Tuesday, April 10

Trees. Arash Rafiey. 20 October, 2015

Advanced Combinatorial Optimization September 17, Lecture 3. Sketch some results regarding ear-decompositions and factor-critical graphs.

Rainbow game domination subdivision number of a graph

8.2 Paths and Cycles

14 More Graphs: Euler Tours and Hamilton Cycles

Solutions to In-Class Problems Week 4, Fri

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Lecture 4: September 11, 2003

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

2 Approximation Algorithms for Metric TSP

Exercise set 2 Solutions

Ma/CS 6b Class 13: Counting Spanning Trees

Progress Towards the Total Domination Game 3 4 -Conjecture

Greedy Algorithms 1. For large values of d, brute force search is not feasible because there are 2 d

Math 170- Graph Theory Notes

Approximation Algorithms

Undirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11

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.

Discrete Mathematics, Spring 2004 Homework 8 Sample Solutions

Properties of red-black trees

Math236 Discrete Maths with Applications

Name: Lirong TAN 1. (15 pts) (a) Define what is a shortest s-t path in a weighted, connected graph G.

Fundamental Properties of Graphs

Assignment 1 Introduction to Graph Theory CO342

GRAPH DECOMPOSITION BASED ON DEGREE CONSTRAINTS. March 3, 2016

2. Lecture notes on non-bipartite matching

5 Graphs

HMMT February 2018 February 10, 2018

5. Consider the tree solution for a minimum cost network flow problem shown in Figure 5.

A Reduction of Conway s Thrackle Conjecture

PAIRED-DOMINATION. S. Fitzpatrick. Dalhousie University, Halifax, Canada, B3H 3J5. and B. Hartnell. Saint Mary s University, Halifax, Canada, B3H 3C3

Transcription:

Graph Theory Applications EPFL, Spring 2014 Solution to Graded Problem Set 4 Date: 13.03.2014 Due by 18:00 20.03.2014 Problem 1. Let V be the set of vertices, x be the number of leaves in the tree and y the number of all other vertices. Let e be the number of edges, then e = x + y 1. Also, v V deg(v) x + 3y since every non-leaf vertex has degree 3. Using these two observations we have: 2(x + y 1) = 2e = deg(v) x + 3y x + 3y 2, v V from which y x follows. Problem 2. If G is not a tree then it contains a cycle. There is least one edge (u, v) of this cycle which is not in G. Obviously, for these vertices d G (u, v) = 1, while in G they are not neighbors, thus d G (u, v) > 1. Problem 3. The only if direction is easy. Let T = (V, E) be a tree with n vertices. Since a tree has exactly n 1 edges n i=1 d i = 2e = 2(n 1). For the if direction, we will give a construction which given a degree sequence satisfying the given condition will produce a tree with that degree sequence. Suppose that d 1 d 2... d n is the given degree sequence. We proceed by induction on the length of the sequence. Base step: n = 2. We have 2 nodes connected by an edge: this is a tree. Induction step. Assume that the claim holds for all degree sequences of length less than n. Now for a degree sequence of length n, since d 1 is the lowest degree, d 1 = 1. Indeed, if d 1 2, then n i=1 d i 2n, which results in a contradiction. Also, since d n is the highest degree, d n 2. Indeed, if d n 1, then n i=1 d i n, which results in a contradiction. Consider the degree sequence d 2, d 3,..., d n 1. These are n 1 numbers summing to 2(n 2). By the induction hypothesis, we have a tree T corresponding to it. Now, construct a new tree T with n vertices by gluing a single vertex to the vertex of degree d n 1 in T. This completes the proof. Problem 4. Suppose that G is connected. If not, all his connected components have vertices with degree 3 and we consider one of those. Let k be the number of edges and n the number of nodes. The proof is by contradiction, namely, we suppose that there is no cycle of even length. Let us denote by N c the number of cycles, which are all of odd length. First of all, let us show that N c k 3. If two cycles share an edge, then we can build a cycle with even length and we are done. Hence, all the cycles are disjoint and since their length is at least 3, their number cannot be > k/3. Then, let us show that N c k (n 1). Each connected graph has a spanning tree. Start from the spanning tree which has n 1 edges. Every time we add an edge, we create at least one new cycle. Hence, there are at least k (n 1) cycles. Now, let us conclude. Since k (n 1) N c k 3, we have that k 3 k (n 1), from which we get that k 3 2 (n 1). However, k 3 2n, because each vertex has degree at least 3. So, we have found a contradiction and the proof is complete. Problem 5. In G(n, p) every edge exists independently and with the same probability p. Hence, the 1

probability of drawing a graph with m edges is (( n ) 2) p m (1 p) (n2) m, m which gives a binomial distribution. The mean value is given by ( ) n p. 2 As concerns the last point, what you should observe is the following behavior. Suppose that n is large enough and let c = pn. If c < 1, then a graph in G(n, p) will almost surely have no connected components of size larger than O(log(n)). This behavior is exemplified by the graph in Figure 1 which is obtained taking n = 10000 and c = 0.7. If c = 1, then a graph in G(n, p) will almost surely have a largest component whose size is of order n 2/3. If c > 1, then a graph in G(n, p) will almost surely have a unique giant component containing a positive fraction of the vertices. No other component will contain more than O(log(n)) vertices. It is possible to show that the fraction of the vertices contained in the giant component is given by the non-zero solution to the equation x + e cx = 1. (1) This situation is schematized in Figure 2, which is obtained taking n = 10000 and c = 1.1. If you compute the size of the largest connected component divided by the total number of nodes as a function of c = p/n, you should observe a behavior similar to that obtained in Figure 3. 2

Figure 1: Random graph G(n, p) with n = 10000 and p = 0.7. As p < 1/n, there is no giant connected component. 3

Figure 2: Random graph G(n, p) with n = 10000 and p = 1.1. As p > 1/n, the giant component appears. 4

1 0.8 Solution of Eq. (1) Experimental data 0.6 0.4 0.2 0 0 0.5 1 1.5 2 c Figure 3: Normalized size of the largest connected component as a function of c with n = 10000. If c < 1, there is no giant component. If c > 1, the giant component contains a fraction of the nodes of the graph which is given by the solution to (1). 5