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.

Size: px
Start display at page:

Download "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."

Transcription

1 Tree 1. Trees and their Properties. Spanning trees 3. Minimum Spanning Trees 4. Applications of Minimum Spanning Trees 5. Minimum Spanning Tree Algorithms 1.1 Properties of Trees: 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. Theorem: (Characterizations of trees) Let G = (V, E) be an undirected graph having n vertices and m edges. The following statements are equivalent. 1. G is a tree.. There is a unique path between any two vertices in G. 3. G is connected but G-e is disconnected for every edge e of G. 4. G is connected, and m=n G is acyclic, and m=n G is acyclic but G + xy is cyclic for every x, y V with xy E. Proof: (1) (): Since every tree is connected, there is at least one path between any two vertices in G. Hence, to show that there is a unique path between any two vertices in G, we have to show that there is at most one path between any two vertices in G. We prove this by contradiction. So, assume that there are at least two paths between some pair of vertices, say between x and y. Let P 1 and P be two distinct paths from x to y. By lemma.1, P 1 P contains a cycle. So, G contains a cycle. This contradicts the fact that G is a tree. Hence, there is a unique path between any two vertices in G. () (3): Since, any two vertices in G are connected by a unique path, G is connected. Let xy be any edge in E. Then, P=xy is a path from x to y. So, it must be a unique path from x to y. If we remove xy from G, then there is no path from x to y. Hence, G-xy is disconnected. Since, xy is a arbitrary edge of G, G-e is disconnected for every edge e of G. Hence, G is connected but G-e is disconnected for every edge e of G. (3) (4): By assumption, G is connected. So we need only to show that m=n-1. We prove this by induction. A connected graph with n=1 or n= vertices has n-1 edges. Assume that every graph with fewer than n vertices satisfying (3) also satisfy (4). Suppose that G has n 3 vertices and G satisfies (3), i.e. G is connected but G-e is 1

2 disconnected for every edge e of G. Let e=xy be any edge of G. Now, G-e is disconnected. Now, by lemma 3, G-e has exactly two connected components. Let G 1 and G be the connected components of G. Let n i. and m i, 1 i, be the number of vertices and edges in G i, 1 i. Now, each component satisfies (3), or else G would not satisfy (3). Since, n i < n, i=1,, by induction hypothesis, m i = n i -1, 1 i. So, m = m 1 + m + 1 = (n 1-1) + (n -1) +1 = n-1. So, by induction principle, G has exactly n-1 edges. (4) (5): We have to show that every connected graph G with n vertices and n-1 edges are acyclic. We prove this by induction. For n=1, and 3, it can be easily checked that all connected graph with n vertices and n-1 edges are acyclic. Assume that every connected graph with fewer than n vertices satisfying (4) is acyclic. Let G be a connected graph having n vertices and n-1 edges. Since, G is connected and has n-1 edges, G has a vertex of degree 1. Let x be a vertex of degree 1 in G. Let G =G-x. Now, G is connected and has n-1 vertices and n- edges. So, by induction hypothesis, G is acyclic. Since, x is a degree 1 vertex, x can not be in any cycle of G. Since G =G-x is acyclic, G must be acyclic. So, by induction, every connected graph with n vertices and n-1 edges is acyclic. (5) (6): Suppose that G is acyclic and that m=n-1. Let G i, 1 i k be the connected components of G. Since G is acyclic, G i is acyclic for 1 i k. Hence, each G i, 1 i k is a tree. Let n i and m i, 1 i k, be the number of vertices and edges in G i, 1 i k, k m i i 1 respectively. Since (1) implies (5), m = k = ( n i 1) =n-k. So, k=1. So, G must be a tree. Since (1) implies (), any two vertices in G are connected by a unique path. Thus, adding any edge to G creates a cycle. (6) (1): Suppose that G is acyclic but G +xy is cyclic for every x,y in V with xy E. We must show that G is connected. Let u and v be arbitrary vertices in G. If u and v are not already adjacent, adding the edge uv creates a cycle in which all edges but uv belong to G. Thus, there is a path from u to v and since u and v were chosen arbitrarily, G is connected. Exercises If the maximum degree in a tree T is k, then prove that T has at least k pendant vertices (vertices of degree 1). Is the converse true?. Let T 1 and T be two spanning trees of a connected graph G. If edge e is in T 1 but not in T, prove that there exists another edge f in T but not in T 1 such that (T 1 -e) f and (T -f) e are also spanning trees of G. 3. Prove that in a tree every vertex of degree greater than one is a cut vertex. 4. Prove that a pendant edge in a connected graph G is contained in every spanning tree of G. 5. Prove that an edge e of a connected graph G is a cut edge if and only if e belongs to every spanning tree. 6. Let T be a tree of order m, and let G be a graph with (G) = m-1.then prove that T is isomorphic to some sub graph of G. i 1

3 7. Suppose T is a tree of order n that contains only vertices of degree 1 and 3. Prove that T contains (n-)/ vertices of degree Prove or disprove: if d 1, d, d n is the degree sequence of a tree, then 1, d 1 +1, d, d 3,.d n is the degree sequence of a tree. 9. Let G be a connected weighted graph whose edges have distinct weights. Show that G has a unique minimum spanning tree. 10. Let T be a tree of order n and size m having n i vertices of degree i (i=1, ).show that n 1 = n 3 +n 4 +3n 5 +4n Prove or disprove: if n i denotes the number of vertices of degree i in a tree T, then i n i depend only on the number of vertices in T. 1. Let T be an n vertex tree having one vertex of each degree i, i k; the remaining n-k+1 vertices are leaves. Determine n in terms of k. 13. Draw a weighted connected graph G on 11 vertices having 10 different MSTs. 14. Let e be a minimum cost edge of a weighted connected graph G. Show that e belongs to some MST of G. 15. If e be the only minimum cost edge of G, then e belongs to every MST of G. 16. Describe five applications of MST. 17. Design algorithms for a Tree for each of the following: 1. To find a maximum independent set.. To -color all the vertices of G. 3. To find a path from x to y. 18. Suppose n and d 1, d,,d n,dn+1 are n+1 positive integers such that their sum equals n. Use the pigeon principle to prove that there exists an index i such that d i = 1 and there is an index j such that d j > Use Q18. and Mathematical induction to show that in n is an integer and d 1, n d i i 1 d,,d n are positive integers such that =n-, then there is a tree T n with n vertices whose degrees are d 1, d,, and d n. 0. Characterize all connected graphs with same number of vertices and edges. 3

4 1.: Spanning Tree: Definition : A subgraph T= (V 1, E 1 ) of a graph G = (V,E) is a spanning tree if (i) (ii) T is a tree, and V 1 =V. Theorem 3.1: A graph admits a spanning tree if and only if G is connected. Proof: Necessity: Suppose G admits a spanning tree, say T. We will show that G is connected. Let u, v be any two arbitrary vertices of G. Since, T is a spanning subgraph of G, u and v are vertices of T as well. Since, T is connected, there is a path P(u,v) from u to v in T. As T is a subgraph of G, P(u,v) is also a path in G. Since, u and v are arbitrary vertices of G, there is a path between any two vertices of G. Hence G is connected. Sufficiency: Let G be a connected graph with n vertices and m edges. We construct a spanning tree T of G. Let k=m-n+1. Define G i, 0 i k, recursively, as follows: G if i 0, G i = Gi 1 ei where ei is an edge in some cycle of Gi 1 if 1 i k. Since, G i has exactly n-1+k-i edges, G i is cyclic for each i, 0 i k-1. So, each G i, 0 i k-1, has a cycle. If G i-1 is connected, then G i is also connected, as e i belongs to some cycle of G i-1, 0 i k-1. Hence, Gk is connected and has exactly n-1 edges. So, Gk is a tree. Let T=Gk. Now T is a spanning tree of G. Let (G) denotes the number of distinct spanning trees of a graph. So, by theorem 3.1, (G) 1 for a connected graph. The following graph has exactly three spanning trees. The following theorem gives the number of distinct spanning trees of a complete graph. Theorem 3.: (K n ) = n n- for all n 1. Proof: Since each of K1 and K has exactly one spanning tree (K n ) = n n- for n=1 and. So assume that n 3. Assume that V (K n ) = {1,,n}. Let X be the set of all spanning trees of K n and Y be the set of all sequences a 1,a,,a n- of length n- such that a i {1,,,n}. Note that Y has n n- sequences as each a i, 1 i n- can be selected in n different ways. So, to show that there are n n- spanning trees of K n, it is enough to produce a function f: X Y which is a bijection. Let T be any spanning tree of Kn. Define f(t)= a 1,a,,a n-,a unique sequence of length n- such that a i {1,,,n} for each i, 1 i n-, in the following way. Among all the vertices of degree one, let s 1 be the vertex such s 1 4

5 as an integer is minimum. Let t 1 be the vertex adjacent to s 1 in T. Assign t 1 to s 1. Then, delete the vertex s1 from T. Next, among all the vertices of degree one in T-{s 1 }, let s be the vertex such s as an integer is minimum. Let t be the vertex adjacent to s in T-s 1. Assign t to a. Then, delete the vertex s from T-{s 1 }. Repeat this process until a n- has been defined and a tree with just two vertices remains; the tree T in figure 1, for instance, gives rise to the sequence 6,,,, T 4 3 To show that f is a bijection, we have to prove that (i) no sequence is produced by two different spanning trees of K n and (ii) every sequence of Y is produced by some spanning tree of Kn. We shall achieve both (i) and (ii) by showing that f has an inverse, i.e. we can construct a spanning tree of K n from a sequence a 1,a,, a n- of Y by reversing the process described above of obtaining a sequence of length n- from a spanning tree of K n. Let T be any spanning tree of K n, and let f(t)= a 1,a,,a n-. Then, d(k), the degree of vertex k in T, is equal to the number of times k appears in the sequence a 1,a,,a n-, plus 1. This follows from the observation that when each, but the last, of the edges incident on k is deleted, k appears in the sequence; the last edge may never be deleted, if k is one of the two vertices remaining in the tree, or if it is deleted, k is now the removed leaf, and the adjacent vertex, not k, is included later in the sequence. Thus, if k appears in the sequence then the degree of k in T must be as stated. For example, if f(t) =6,,,,6 is the sequence obtained from a tree T, then d(6)=3, d() = 4, while d(1)=d(3)=d(4)=d(5)=1. So, let f(t)= a 1,a,,a n-. We reconstruct T as follows. Let s 1 be the vertex such that s1 is the least integer in {1,,,n} that does not appear in the sequence a 1,a,,a n-. Join s1 to a1. Then, let s be the vertex such that s is the least integer in {1,,, n}-{s 1 } that does not appear in the sequence a,,a n-. Join s to a. Follow this procedure until s n- is obtained from the sequence a n-. Join s n- to a n-. The tree T is obtained by adding the edge joining the two remaining vertices of N-{s 1, s,,s n- }. For example, the tree T for which f(t)=6,,,,6 is given in figure 1. Thus, we have now established the required one-one correspondence. Hence, the number of distinct spanning tree of K n is n n-. 5

6 1. Minimum Spanning Tree; Let G=(V,E) be a connected weighted graph and C be the cost matrix of G. Let T=(V,E) be a spanning tree of G. The cost of T, denoted C(T), is defined as follows: Definition 3: The cost of a spanning tree T=(V, E ) of a weighted graph G=(V,E) with cost matrix C is defined by C ( e). C(T)= e E Definition 4: A spanning tree T of a weighted connected graph is called a minimum spanning tree if C(T) C(T ) for any other spanning tree T of G. Note that there many be more than one minimum spanning tree of a graph. For example, the graph G in the following figure has exactly two minimum spanning trees G 1 T 1 T 3 A graph G having two minimum spanning trees. 1.4 Minimum Spanning Tree Algorithms In this section, we will discuss two popular algorithms to construct a minimum spanning tree of a weighted connected graph. 6

7 1.4.1 Kruskal s Algorithm As we have seen in the previous section that an acyclic graph with n vertices and n-1 edges is a tree. The first algorithm, known as Kruskal s Algorithm, uses this fact to construct an MST of a connected weighted graph G. We first describe the algorithm informally. First, the algorithm arranges the edges of the graph G in the non-decreasing order of their costs. It starts with the graph T=(V,E ), where E = initially. It then examines each edge for inclusion into the T. If the current edge e under examination does not form a cycle with the so far selected edges, then the edge e is included in T. If e forms a cycle with the so far selected edges, then e is rejected. After the decision of selecting or rejecting the current edge e, the next edge in the list becomes current edge. The algorithm terminates once n-1 edges have been selected or there is no edge left for consideration. The algorithm, thus, maintains acyclicity at each stage of inclusion of edge to T. If the algorithm is successful in adding n-1 edges to T, then T becomes a spanning tree of G. Since the edges are examined for inclusion in the non-decreasing order of their costs, T turns out to be an MST. We, next describe the Kruskal s Algorithm formally. Kruskal s Algorithm Input: A connected Graph G=(V,E) and the cost matrix C of G. Output: A Minimum spanning tree T=(V,E ) of G. Method: Step 1: Sort the edges of G in the non-decreasing order of their costs. Let the sorted list edges be e 1, e,., e m. Step : T=(V, E ), where E =. i=1; count=0; while ( count < n-1 and i < m) { if ( T=(V, E { e i }) is acyclic) { E = E { e i }; count= count+1;} i=i+1; } Next, we prove that the graph T=(V,E ) obtained by Kruskal s algorithm is in fact a minimum spanning tree. Theorem 1.4.1: Kruskal s Algorithm produces a minimum spanning tree in a connected weighted graph. 7

8 Proof: Let G = (V,E) be a connected weighted graph and let T=(V,E ) be the subgraph produced by Kruskal s algorithm for G. Each edge is added to T by Kruskal s algorithm if it does not form a cycle with the already added edges. Hence, T must be acyclic. Next we show that T is connected. If possible T is disconnected and let G 1 = (V 1, E 1 ) be a connected component of T. Let V =V-V 1. Let f 1,f,,f k be the edges of T such that cost(f i ) cost (f i+1 ). Since T is disconnected, k < n-1. Let E =(xy E x V 1 and y V }. Since, G is connected, E is non empty. Let e E be the least cost edge among all edges of E. Let f 1, f,,f i be the edges that have already been selected by Kruskal s Algorithm when the edge e was examined. Since T +e is acyclic, e does not for a cycle with the edges f 1,f,,f i. So, Kruskal s algorithm would have selected the edge e after selecting the edge f i. This is a contradiction to the fact that T is the graph produced by Kruskal s algorithm. Hence, T must be connected. Hence, T is a spanning tree. Next, we show that T has least cost among all spanning trees of G. We prove this by contradiction. Suppose, to the contrary, that T is not a minimum spanning tree. Let E(T)={ f 1,f,,f n-1 } such that w(f i ) w (f i+1 ), 1 i n-. Note that G may have more than one minimum spanning tree. Let T 1 be a minimum spanning tree of G having maximum number of edges in common with T. Let i be the smallest index, 1 i n-1 such that f i is not an edge in T. Such an index exists since T and T 1 are two distinct trees of G. Let T = T 1 +f i. Now, T has a unique cycle C containing f i. Note that C contains at least one edge e 0 such that e 0 is not an edge of T. Let T 3 =T -e 0. Now T 3 is a spanning tree of G and W(T 3 )= W(T 1 )+W(f i )-W(e 0 ). Since, W(T 1 ) W(T 3 ), we have w(e 0 ) w(f i ). By Kruskal s algorithm, fi is an edge of minimum cost such that G[{f 1, f,,f i-1 } {f i }] is acyclic. However, G[{f 1, f,,f i-1 } {e 0 }] is a subgraph of T 1, and hence acyclic. So, w(e 0 )=w(f i ), otherwise Kruskal s algorithm would have chosen e 0 instead of f i. Thus, W(T 3 )=W(T 1 ). Hence, T 3 is a minimum spanning tree. But, T 3 has more edges in common with T than T 1 has with T. This contradicts the fact that T 1 has maximum number of edges in common with T than any other spanning tree of G. Hence, T must a minimum cost spanning tree. We, next, consider another popular algorithm for finding a minimum spanning tree in a connected weighted graph Prim s Algorithm As we have seen above, Kruskal s algorithm starts with the vertex set V and empty edge set and keeps on adding edges maintaining acyclicity throughout. Once n-1 edges are added, it becomes a tree because of the fact that an acyclic graph with n vertices and n-1 edges is a tree. Prim s algorithm adopts a different strategy. It uses the fact that a connected graph with n vertices and n-1 edges is a tree. It starts with vertex set V = {v} where v is any arbitrary vertex of G and E, where E =. It then selects a least cost edge e= xy with x V and y V- V from V to V- V and updates E = E {e} and V = V {y}. It stops when V =V. Thus, it maintains throughout that G =(V, E ) is connected. Once V =V, G becomes a spanning tree of G. We next describe the algorithm formally. 8

9 Prim s Algorithm Input: A connected Graph G=(V,E) and the cost matrix C of G. Output: A Minimum spanning tree T=(V,E ) of G. Method: { Step 1: Let u be any arbitrary vertex of G. T=(V,E ), where V = {u} and E =. Step : while ( V V) { Choose a least cost edge from V to V-V. Let e=xy be a least cost edge such that x V and y V-V. V = V {x}; E = E { e }; } } Next, we show that Prim s algorithm produces a minimum spanning tree of a connected weighted graph. Theorem.3.: Prim s Algorithm produces a minimum spanning tree in a connected weighted graph. Proof: Let G be a connected weighted graph and let T be the subgraph produced by Prim s algorithm. Since, G is connected, T is a spanning tree of G. Next, we show that T is a minimum spanning tree of G. We prove this by method contradiction. Suppose, to the contrary, that T is not a minimum spanning tree of G. Let E(T)={ f 1,f,,f n-1 } such that w(f i ) w (f i+1 ), 1 i n-. Note that G may have more than one minimum spanning tree. Let T 1 be a minimum spanning tree of G having maximum number of edges in common with T. Let i be the smallest index, 1 i n-1 such that f i is not an edge in T. Such an index exists since T and T 1 are two distinct trees of G. For i=1, let U={u}, where u is the first vertex added to V by the Prim s algorithm. If i, then let U be the vertex set of the subgraph induced by the edges f 1,f,,f i-1. Now, f i joins a vertex of U to a vertex of V-U. Let T = T 1 +f i. Now, T has a unique cycle C containing f i. The cycle C contains an edge e 0 that joins a vertex of U to a vertex of V-U. Let T 3 = T 1 +f i e 0. Then, T 3 is a spanning tree of G. Since f i and e 0 are both edges from U to V-U and f i is selected by Prim s algorithm, w(f i ) w(e 0 ). Therefore, w (T 3 ) w (T 1 ). Since, T 1 is a minimum spanning tree, T 3 is also a minimum spanning tree of G. But, T 3 has more edges in common with T than T 1 has with T. This contradicts the choice of T 1. Hence, T must be a minimum spanning Tree. Exercise 1. Let G be a connected weighted graph whose edges have distinct weights. Show that both Prims algorithm as well as Kruskal s algorithm produces the same tree.. Show, for every integer n, there a connected weighted graph having exactly n minimum spanning trees. 9

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

K 4 C 5. Figure 4.5: Some well known family of graphs 08 CHAPTER. TOPICS IN CLASSICAL GRAPH THEORY K, K K K, K K, K K, K C C C C 6 6 P P P P P. Graph Operations Figure.: Some well known family of graphs A graph Y = (V,E ) is said to be a subgraph of a graph

More information

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

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department CS473-Algorithms I Lecture 3-A Graphs Graphs A directed graph (or digraph) G is a pair (V, E), where V is a finite set, and E is a binary relation on V The set V: Vertex set of G The set E: Edge set of

More information

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

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points MC 0 GRAPH THEORY 0// Solutions to HW # 0 points + XC points ) [CH] p.,..7. This problem introduces an important class of graphs called the hypercubes or k-cubes, Q, Q, Q, etc. I suggest that before you

More information

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

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G. MAD 3105 Spring 2006 Solutions for Review for Test 2 1. Define a graph G with V (G) = {a, b, c, d, e}, E(G) = {r, s, t, u, v, w, x, y, z} and γ, the function defining the edges, is given by the table ɛ

More information

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE Professor Kindred Math 104, Graph Theory Homework 3 Solutions February 14, 2013 Introduction to Graph Theory, West Section 2.1: 37, 62 Section 2.2: 6, 7, 15 Section 2.3: 7, 10, 14 DO NOT RE-DISTRIBUTE

More information

Chapter 3 Trees. Theorem A graph T is a tree if, and only if, every two distinct vertices of T are joined by a unique path.

Chapter 3 Trees. Theorem A graph T is a tree if, and only if, every two distinct vertices of T are joined by a unique path. Chapter 3 Trees Section 3. Fundamental Properties of Trees Suppose your city is planning to construct a rapid rail system. They want to construct the most economical system possible that will meet the

More information

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

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 fundamentals Bipartite graph characterization Lemma. If a graph contains an odd closed walk, then it contains an odd cycle. Proof strategy: Consider a shortest closed odd walk W. If W is not a cycle,

More information

Number Theory and Graph Theory

Number Theory and Graph Theory 1 Number Theory and Graph Theory Chapter 6 Basic concepts and definitions of graph theory By A. Satyanarayana Reddy Department of Mathematics Shiv Nadar University Uttar Pradesh, India E-mail: satya8118@gmail.com

More information

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

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60 CPS 102: Discrete Mathematics Instructor: Bruce Maggs Quiz 3 Date: Wednesday November 30, 2011 NAME: Prob # Score Max Score 1 10 2 10 3 10 4 10 5 10 6 10 Total 60 1 Problem 1 [10 points] Find a minimum-cost

More information

Module 11. Directed Graphs. Contents

Module 11. Directed Graphs. Contents Module 11 Directed Graphs Contents 11.1 Basic concepts......................... 256 Underlying graph of a digraph................ 257 Out-degrees and in-degrees.................. 258 Isomorphism..........................

More information

Chapter 23. Minimum Spanning Trees

Chapter 23. Minimum Spanning Trees Chapter 23. Minimum Spanning Trees We are given a connected, weighted, undirected graph G = (V,E;w), where each edge (u,v) E has a non-negative weight (often called length) w(u,v). The Minimum Spanning

More information

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

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 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 graph G with at least 2 vertices contains at least 2

More information

Math 485, Graph Theory: Homework #3

Math 485, Graph Theory: Homework #3 Math 485, Graph Theory: Homework #3 Stephen G Simpson Due Monday, October 26, 2009 The assignment consists of Exercises 2129, 2135, 2137, 2218, 238, 2310, 2313, 2314, 2315 in the West textbook, plus the

More information

Problem Set 2 Solutions

Problem Set 2 Solutions Problem Set 2 Solutions Graph Theory 2016 EPFL Frank de Zeeuw & Claudiu Valculescu 1. Prove that the following statements about a graph G are equivalent. - G is a tree; - G is minimally connected (it is

More information

Solutions to In-Class Problems Week 4, Fri

Solutions to In-Class Problems Week 4, Fri Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr. Radhika Nagpal Solutions to In-Class Problems Week 4, Fri Definition: The

More information

Discrete mathematics

Discrete mathematics Discrete mathematics Petr Kovář petr.kovar@vsb.cz VŠB Technical University of Ostrava DiM 470-2301/02, Winter term 2018/2019 About this file This file is meant to be a guideline for the lecturer. Many

More information

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.

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. 1 Graph Basics What is a graph? Graph: a graph G consists of a set of vertices, denoted V (G), a set of edges, denoted E(G), and a relation called incidence so that each edge is incident with either one

More information

7.3 Spanning trees Spanning trees [ ] 61

7.3 Spanning trees Spanning trees [ ] 61 7.3. Spanning trees [161211-1348 ] 61 7.3 Spanning trees We know that trees are connected graphs with the minimal number of edges. Hence trees become very useful in applications where our goal is to connect

More information

Characterizations of Trees

Characterizations of Trees Characterizations of Trees Lemma Every tree with at least two vertices has at least two leaves. Proof. 1. A connected graph with at least two vertices has an edge. 2. In an acyclic graph, an end point

More information

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

Module 7. Independent sets, coverings. and matchings. Contents Module 7 Independent sets, coverings Contents and matchings 7.1 Introduction.......................... 152 7.2 Independent sets and coverings: basic equations..... 152 7.3 Matchings in bipartite graphs................

More information

4 Basics of Trees. Petr Hliněný, FI MU Brno 1 FI: MA010: Trees and Forests

4 Basics of Trees. Petr Hliněný, FI MU Brno 1 FI: MA010: Trees and Forests 4 Basics of Trees Trees, actually acyclic connected simple graphs, are among the simplest graph classes. Despite their simplicity, they still have rich structure and many useful application, such as in

More information

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE Professor Kindred Math 104, Graph Theory Homework 2 Solutions February 7, 2013 Introduction to Graph Theory, West Section 1.2: 26, 38, 42 Section 1.3: 14, 18 Section 2.1: 26, 29, 30 DO NOT RE-DISTRIBUTE

More information

8.2 Paths and Cycles

8.2 Paths and Cycles 8.2 Paths and Cycles Degree a b c d e f Definition The degree of a vertex is the number of edges incident to it. A loop contributes 2 to the degree of the vertex. (G) is the maximum degree of G. δ(g) is

More information

1 Minimum Spanning Trees (MST) b 2 3 a. 10 e h. j m

1 Minimum Spanning Trees (MST) b 2 3 a. 10 e h. j m Minimum Spanning Trees (MST) 8 0 e 7 b 3 a 5 d 9 h i g c 8 7 6 3 f j 9 6 k l 5 m A graph H(U,F) is a subgraph of G(V,E) if U V and F E. A subgraph H(U,F) is called spanning if U = V. Let G be a graph with

More information

The minimum spanning tree problem

The minimum spanning tree problem The minimum spanning tree problem MST is a minimum cost connection problem on graphs The graph can model the connection in a (hydraulic, electric, telecommunication) network: the nodes are the points that

More information

2. CONNECTIVITY Connectivity

2. CONNECTIVITY Connectivity 2. CONNECTIVITY 70 2. Connectivity 2.1. Connectivity. Definition 2.1.1. (1) A path in a graph G = (V, E) is a sequence of vertices v 0, v 1, v 2,..., v n such that {v i 1, v i } is an edge of G for i =

More information

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS PAUL BALISTER Abstract It has been shown [Balister, 2001] that if n is odd and m 1,, m t are integers with m i 3 and t i=1 m i = E(K n) then K n can be decomposed

More information

Minimum Spanning Trees My T. UF

Minimum Spanning Trees My T. UF Introduction to Algorithms Minimum Spanning Trees @ UF Problem Find a low cost network connecting a set of locations Any pair of locations are connected There is no cycle Some applications: Communication

More information

CSE331 Introduction to Algorithms Lecture 15 Minimum Spanning Trees

CSE331 Introduction to Algorithms Lecture 15 Minimum Spanning Trees CSE1 Introduction to Algorithms Lecture 1 Minimum Spanning Trees Antoine Vigneron antoine@unist.ac.kr Ulsan National Institute of Science and Technology July 11, 201 Antoine Vigneron (UNIST) CSE1 Lecture

More information

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.

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. CSE 591 HW Sketch Sample Solutions 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. Problem 1 (a) Any

More information

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck Theory of Computing Lecture 10 MAS 714 Hartmut Klauck Seven Bridges of Königsberg Can one take a walk that crosses each bridge exactly once? Seven Bridges of Königsberg Model as a graph Is there a path

More information

Minimum Spanning Trees

Minimum Spanning Trees CS124 Lecture 5 Spring 2011 Minimum Spanning Trees A tree is an undirected graph which is connected and acyclic. It is easy to show that if graph G(V,E) that satisfies any two of the following properties

More information

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

Discrete mathematics , Fall Instructor: prof. János Pach Discrete mathematics 2016-2017, Fall Instructor: prof. János Pach - covered material - Lecture 1. Counting problems To read: [Lov]: 1.2. Sets, 1.3. Number of subsets, 1.5. Sequences, 1.6. Permutations,

More information

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

11.9 Connectivity Connected Components. mcs 2015/5/18 1:43 page 419 #427 mcs 2015/5/18 1:43 page 419 #427 11.9 Connectivity Definition 11.9.1. Two vertices are connected in a graph when there is a path that begins at one and ends at the other. By convention, every vertex is

More information

Minimum-Spanning-Tree problem. Minimum Spanning Trees (Forests) Minimum-Spanning-Tree problem

Minimum-Spanning-Tree problem. Minimum Spanning Trees (Forests) Minimum-Spanning-Tree problem Minimum Spanning Trees (Forests) Given an undirected graph G=(V,E) with each edge e having a weight w(e) : Find a subgraph T of G of minimum total weight s.t. every pair of vertices connected in G are

More information

Assignment # 4 Selected Solutions

Assignment # 4 Selected Solutions 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

More information

Trees Rooted Trees Spanning trees and Shortest Paths. 12. Graphs and Trees 2. Aaron Tan November 2017

Trees Rooted Trees Spanning trees and Shortest Paths. 12. Graphs and Trees 2. Aaron Tan November 2017 12. Graphs and Trees 2 Aaron Tan 6 10 November 2017 1 10.5 Trees 2 Definition Definition Definition: Tree A graph is said to be circuit-free if, and only if, it has no circuits. A graph is called a tree

More information

CIS 121 Data Structures and Algorithms Minimum Spanning Trees

CIS 121 Data Structures and Algorithms Minimum Spanning Trees CIS 121 Data Structures and Algorithms Minimum Spanning Trees March 19, 2019 Introduction and Background Consider a very natural problem: we are given a set of locations V = {v 1, v 2,..., v n }. We want

More information

Elements of Graph Theory

Elements of Graph Theory Elements of Graph Theory Quick review of Chapters 9.1 9.5, 9.7 (studied in Mt1348/2008) = all basic concepts must be known New topics we will mostly skip shortest paths (Chapter 9.6), as that was covered

More information

Trees. 3. (Minimally Connected) G is connected and deleting any of its edges gives rise to a disconnected graph.

Trees. 3. (Minimally Connected) G is connected and deleting any of its edges gives rise to a disconnected graph. Trees 1 Introduction Trees are very special kind of (undirected) graphs. Formally speaking, a tree is a connected graph that is acyclic. 1 This definition has some drawbacks: given a graph it is not trivial

More information

Advanced algorithms. topological ordering, minimum spanning tree, Union-Find problem. Jiří Vyskočil, Radek Mařík 2012

Advanced algorithms. topological ordering, minimum spanning tree, Union-Find problem. Jiří Vyskočil, Radek Mařík 2012 topological ordering, minimum spanning tree, Union-Find problem Jiří Vyskočil, Radek Mařík 2012 Subgraph subgraph A graph H is a subgraph of a graph G, if the following two inclusions are satisfied: 2

More information

HW Graph Theory SOLUTIONS (hbovik)

HW Graph Theory SOLUTIONS (hbovik) Diestel 1.3: Let G be a graph containing a cycle C, and assume that G contains a path P of length at least k between two vertices of C. Show that G contains a cycle of length at least k. If C has length

More information

Notes 4 : Approximating Maximum Parsimony

Notes 4 : Approximating Maximum Parsimony Notes 4 : Approximating Maximum Parsimony MATH 833 - Fall 2012 Lecturer: Sebastien Roch References: [SS03, Chapters 2, 5], [DPV06, Chapters 5, 9] 1 Coping with NP-completeness Local search heuristics.

More information

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur Lecture : Graphs Rajat Mittal IIT Kanpur Combinatorial graphs provide a natural way to model connections between different objects. They are very useful in depicting communication networks, social networks

More information

Introduction to Graph Theory

Introduction to Graph Theory Introduction to Graph Theory Tandy Warnow January 20, 2017 Graphs Tandy Warnow Graphs A graph G = (V, E) is an object that contains a vertex set V and an edge set E. We also write V (G) to denote the vertex

More information

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

Graph Definitions. In a directed graph the edges have directions (ordered pairs). A weighted graph includes a weight function. Graph Definitions Definition 1. (V,E) where An undirected graph G is a pair V is the set of vertices, E V 2 is the set of edges (unordered pairs) E = {(u, v) u, v V }. In a directed graph the edges have

More information

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

{ 1} Definitions. 10. Extremal graph theory. Problem definition Paths and cycles Complete subgraphs Problem definition Paths and cycles Complete subgraphs 10. Extremal graph theory 10.1. Definitions Let us examine the following forbidden subgraph problems: At most how many edges are in a graph of order

More information

Advanced Algorithms Class Notes for Monday, October 23, 2012 Min Ye, Mingfu Shao, and Bernard Moret

Advanced Algorithms Class Notes for Monday, October 23, 2012 Min Ye, Mingfu Shao, and Bernard Moret Advanced Algorithms Class Notes for Monday, October 23, 2012 Min Ye, Mingfu Shao, and Bernard Moret Greedy Algorithms (continued) The best known application where the greedy algorithm is optimal is surely

More information

Math 170- Graph Theory Notes

Math 170- Graph Theory Notes 1 Math 170- Graph Theory Notes Michael Levet December 3, 2018 Notation: Let n be a positive integer. Denote [n] to be the set {1, 2,..., n}. So for example, [3] = {1, 2, 3}. To quote Bud Brown, Graph theory

More information

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4) S-72.2420/T-79.5203 Basic Concepts 1 S-72.2420/T-79.5203 Basic Concepts 3 Characterizing Graphs (1) Characterizing Graphs (3) Characterizing a class G by a condition P means proving the equivalence G G

More information

CS 6783 (Applied Algorithms) Lecture 5

CS 6783 (Applied Algorithms) Lecture 5 CS 6783 (Applied Algorithms) Lecture 5 Antonina Kolokolova January 19, 2012 1 Minimum Spanning Trees An undirected graph G is a pair (V, E); V is a set (of vertices or nodes); E is a set of (undirected)

More information

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.

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. 18.433 Combinatorial Optimization Matching Algorithms September 9,14,16 Lecturer: Santosh Vempala Given a graph G = (V, E), a matching M is a set of edges with the property that no two of the edges have

More information

Distributed minimum spanning tree problem

Distributed minimum spanning tree problem Distributed minimum spanning tree problem Juho-Kustaa Kangas 24th November 2012 Abstract Given a connected weighted undirected graph, the minimum spanning tree problem asks for a spanning subtree with

More information

Chapter 4. Triangular Sum Labeling

Chapter 4. Triangular Sum Labeling Chapter 4 Triangular Sum Labeling 32 Chapter 4. Triangular Sum Graphs 33 4.1 Introduction This chapter is focused on triangular sum labeling of graphs. As every graph is not a triangular sum graph it is

More information

Lecture 20 : Trees DRAFT

Lecture 20 : Trees DRAFT CS/Math 240: Introduction to Discrete Mathematics 4/12/2011 Lecture 20 : Trees Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we discussed graphs. Today we continue this discussion,

More information

Math 776 Graph Theory Lecture Note 1 Basic concepts

Math 776 Graph Theory Lecture Note 1 Basic concepts Math 776 Graph Theory Lecture Note 1 Basic concepts Lectured by Lincoln Lu Transcribed by Lincoln Lu Graph theory was founded by the great Swiss mathematician Leonhard Euler (1707-178) after he solved

More information

Notes for Recitation 8

Notes for Recitation 8 6.04/8.06J Mathematics for Computer Science October 5, 00 Tom Leighton and Marten van Dijk Notes for Recitation 8 Build-up error Recall a graph is connected iff there is a path between every pair of its

More information

5 MST and Greedy Algorithms

5 MST and Greedy Algorithms 5 MST and Greedy Algorithms One of the traditional and practically motivated problems of discrete optimization asks for a minimal interconnection of a given set of terminals (meaning that every pair will

More information

22 Elementary Graph Algorithms. There are two standard ways to represent a

22 Elementary Graph Algorithms. There are two standard ways to represent a VI Graph Algorithms Elementary Graph Algorithms Minimum Spanning Trees Single-Source Shortest Paths All-Pairs Shortest Paths 22 Elementary Graph Algorithms There are two standard ways to represent a graph

More information

CS 341: Algorithms. Douglas R. Stinson. David R. Cheriton School of Computer Science University of Waterloo. February 26, 2019

CS 341: Algorithms. Douglas R. Stinson. David R. Cheriton School of Computer Science University of Waterloo. February 26, 2019 CS 341: Algorithms Douglas R. Stinson David R. Cheriton School of Computer Science University of Waterloo February 26, 2019 D.R. Stinson (SCS) CS 341 February 26, 2019 1 / 296 1 Course Information 2 Introduction

More information

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 8 Lecturer: David Wagner February 20, Notes 8 for CS 170

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 8 Lecturer: David Wagner February 20, Notes 8 for CS 170 UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 8 Lecturer: David Wagner February 20, 2003 Notes 8 for CS 170 1 Minimum Spanning Trees A tree is an undirected graph that is connected

More information

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

Counting the number of spanning tree. Pied Piper Department of Computer Science and Engineering Shanghai Jiao Tong University Counting the number of spanning tree Pied Piper Department of Computer Science and Engineering Shanghai Jiao Tong University 目录 Contents 1 Complete Graph 2 Proof of the Lemma 3 Arbitrary Graph 4 Proof

More information

Fundamental Properties of Graphs

Fundamental Properties of Graphs Chapter three In many real-life situations we need to know how robust a graph that represents a certain network is, how edges or vertices can be removed without completely destroying the overall connectivity,

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Graph theory G. Guérard Department of Nouvelles Energies Ecole Supérieur d Ingénieurs Léonard de Vinci Lecture 1 GG A.I. 1/37 Outline 1 Graph theory Undirected and directed graphs

More information

5 MST and Greedy Algorithms

5 MST and Greedy Algorithms 5 MST and Greedy Algorithms One of the traditional and practically motivated problems of discrete optimization asks for a minimal interconnection of a given set of terminals (meaning that every pair will

More information

Decreasing a key FIB-HEAP-DECREASE-KEY(,, ) 3.. NIL. 2. error new key is greater than current key 6. CASCADING-CUT(, )

Decreasing a key FIB-HEAP-DECREASE-KEY(,, ) 3.. NIL. 2. error new key is greater than current key 6. CASCADING-CUT(, ) Decreasing a key FIB-HEAP-DECREASE-KEY(,, ) 1. if >. 2. error new key is greater than current key 3.. 4.. 5. if NIL and.

More information

Representations of Weighted Graphs (as Matrices) Algorithms and Data Structures: Minimum Spanning Trees. Weighted Graphs

Representations of Weighted Graphs (as Matrices) Algorithms and Data Structures: Minimum Spanning Trees. Weighted Graphs Representations of Weighted Graphs (as Matrices) A B Algorithms and Data Structures: Minimum Spanning Trees 9.0 F 1.0 6.0 5.0 6.0 G 5.0 I H 3.0 1.0 C 5.0 E 1.0 D 28th Oct, 1st & 4th Nov, 2011 ADS: lects

More information

Greedy algorithms is another useful way for solving optimization problems.

Greedy algorithms is another useful way for solving optimization problems. Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. These

More information

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

Math 778S Spectral Graph Theory Handout #2: Basic graph theory Math 778S Spectral Graph Theory Handout #: Basic graph theory Graph theory was founded by the great Swiss mathematician Leonhard Euler (1707-178) after he solved the Königsberg Bridge problem: Is it possible

More information

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

v V Question: How many edges are there in a graph with 10 vertices each of degree 6? ECS20 Handout Graphs and Trees March 4, 2015 (updated 3/9) Notion of a graph 1. A graph G = (V,E) consists of V, a nonempty set of vertices (or nodes) and E, a set of pairs of elements of V called edges.

More information

Week 11: Minimum Spanning trees

Week 11: Minimum Spanning trees Week 11: Minimum Spanning trees Agenda: Minimum Spanning Trees Prim s Algorithm Reading: Textbook : 61-7 1 Week 11: Minimum Spanning trees Minimum spanning tree (MST) problem: Input: edge-weighted (simple,

More information

CIS 121 Data Structures and Algorithms Midterm 3 Review Solution Sketches Fall 2018

CIS 121 Data Structures and Algorithms Midterm 3 Review Solution Sketches Fall 2018 CIS 121 Data Structures and Algorithms Midterm 3 Review Solution Sketches Fall 2018 Q1: Prove or disprove: You are given a connected undirected graph G = (V, E) with a weight function w defined over its

More information

Randomized Graph Algorithms

Randomized Graph Algorithms Randomized Graph Algorithms Vasileios-Orestis Papadigenopoulos School of Electrical and Computer Engineering - NTUA papadigenopoulos orestis@yahoocom July 22, 2014 Vasileios-Orestis Papadigenopoulos (NTUA)

More information

22 Elementary Graph Algorithms. There are two standard ways to represent a

22 Elementary Graph Algorithms. There are two standard ways to represent a VI Graph Algorithms Elementary Graph Algorithms Minimum Spanning Trees Single-Source Shortest Paths All-Pairs Shortest Paths 22 Elementary Graph Algorithms There are two standard ways to represent a graph

More information

arxiv:submit/ [math.co] 9 May 2011

arxiv:submit/ [math.co] 9 May 2011 arxiv:submit/0243374 [math.co] 9 May 2011 Connectivity and tree structure in finite graphs J. Carmesin R. Diestel F. Hundertmark M. Stein 6 May, 2011 Abstract We prove that, for every integer k 0, every

More information

6.1 Minimum Spanning Trees

6.1 Minimum Spanning Trees CS124 Lecture 6 Fall 2018 6.1 Minimum Spanning Trees A tree is an undirected graph which is connected and acyclic. It is easy to show that if graph G(V,E) that satisfies any two of the following properties

More information

HW Graph Theory SOLUTIONS (hbovik) - Q

HW Graph Theory SOLUTIONS (hbovik) - Q 1, Diestel 9.3: An arithmetic progression is an increasing sequence of numbers of the form a, a+d, a+ d, a + 3d.... Van der Waerden s theorem says that no matter how we partition the natural numbers into

More information

Exercise set 2 Solutions

Exercise set 2 Solutions Exercise set 2 Solutions Let H and H be the two components of T e and let F E(T ) consist of the edges of T with one endpoint in V (H), the other in V (H ) Since T is connected, F Furthermore, since T

More information

Graph Algorithms Using Depth First Search

Graph Algorithms Using Depth First Search Graph Algorithms Using Depth First Search Analysis of Algorithms Week 8, Lecture 1 Prepared by John Reif, Ph.D. Distinguished Professor of Computer Science Duke University Graph Algorithms Using Depth

More information

What is a minimal spanning tree (MST) and how to find one

What is a minimal spanning tree (MST) and how to find one What is a minimal spanning tree (MST) and how to find one A tree contains a root, the top node. Each node has: One parent Any number of children A spanning tree of a graph is a subgraph that contains all

More information

11.2 Eulerian Trails

11.2 Eulerian Trails 11.2 Eulerian Trails K.. onigsberg, 1736 Graph Representation A B C D Do You Remember... Definition A u v trail is a u v walk where no edge is repeated. Do You Remember... Definition A u v trail is a u

More information

Problem Set 2 Solutions

Problem Set 2 Solutions Design and Analysis of Algorithms February, 01 Massachusetts Institute of Technology 6.046J/18.410J Profs. Dana Moshkovitz and Bruce Tidor Handout 8 Problem Set Solutions This problem set is due at 9:00pm

More information

Assignment 4 Solutions of graph problems

Assignment 4 Solutions of graph problems Assignment 4 Solutions of graph problems 1. Let us assume that G is not a cycle. Consider the maximal path in the graph. Let the end points of the path be denoted as v 1, v k respectively. If either of

More information

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

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism CHAPTER 2 Graphs 1. Introduction to Graphs and Graph Isomorphism 1.1. The Graph Menagerie. Definition 1.1.1. A simple graph G = (V, E) consists of a set V of vertices and a set E of edges, represented

More information

Number Theory and Graph Theory

Number Theory and Graph Theory 1 Number Theory and Graph Theory Chapter 7 Graph properties By A. Satyanarayana Reddy Department of Mathematics Shiv Nadar University Uttar Pradesh, India E-mail: satya8118@gmail.com 2 Module-2: Eulerian

More information

1 Digraphs. Definition 1

1 Digraphs. Definition 1 1 Digraphs Definition 1 Adigraphordirected graphgisatriplecomprisedofavertex set V(G), edge set E(G), and a function assigning each edge an ordered pair of vertices (tail, head); these vertices together

More information

Lecture Notes on Graph Theory

Lecture Notes on Graph Theory Lecture Notes on Graph Theory Vadim Lozin 1 Introductory concepts A graph G = (V, E) consists of two finite sets V and E. The elements of V are called the vertices and the elements of E the edges of G.

More information

Graphs and networks Mixed exercise

Graphs and networks Mixed exercise Graphs and networks Mixed exercise E.g. 2 a, e and h are isomorphic. b and i are isomorphic. c and g are isomorphic. d and f are isomorphic. 3 a b i ii iii Pearson Education Ltd 208. Copying permitted

More information

CMSC 380. Graph Terminology and Representation

CMSC 380. Graph Terminology and Representation CMSC 380 Graph Terminology and Representation GRAPH BASICS 2 Basic Graph Definitions n A graph G = (V,E) consists of a finite set of vertices, V, and a finite set of edges, E. n Each edge is a pair (v,w)

More information

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

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class. CIS 160 - Spring 2018 (instructor Val Tannen) Lecture 19 Thursday, March 29 GRAPH THEORY Graph isomorphism Definition 19.1 Two graphs G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) are isomorphic, write G 1 G

More information

Topic 10 Part 2 [474 marks]

Topic 10 Part 2 [474 marks] Topic Part 2 [474 marks] The complete graph H has the following cost adjacency matrix Consider the travelling salesman problem for H a By first finding a minimum spanning tree on the subgraph of H formed

More information

Reference Sheet for CO142.2 Discrete Mathematics II

Reference Sheet for CO142.2 Discrete Mathematics II Reference Sheet for CO14. Discrete Mathematics II Spring 017 1 Graphs Defintions 1. Graph: set of N nodes and A arcs such that each a A is associated with an unordered pair of nodes.. Simple graph: no

More information

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring Math 443/543 Graph Theory Notes 5: Planar graphs and coloring David Glickenstein October 10, 2014 1 Planar graphs The Three Houses and Three Utilities Problem: Given three houses and three utilities, can

More information

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

by conservation of flow, hence the cancelation. Similarly, we have Chapter 13: Network Flows and Applications Network: directed graph with source S and target T. Non-negative edge weights represent capacities. Assume no edges into S or out of T. (If necessary, we can

More information

The Matrix-Tree Theorem and Its Applications to Complete and Complete Bipartite Graphs

The Matrix-Tree Theorem and Its Applications to Complete and Complete Bipartite Graphs The Matrix-Tree Theorem and Its Applications to Complete and Complete Bipartite Graphs Frankie Smith Nebraska Wesleyan University fsmith@nebrwesleyan.edu May 11, 2015 Abstract We will look at how to represent

More information

Chapter 2. Splitting Operation and n-connected Matroids. 2.1 Introduction

Chapter 2. Splitting Operation and n-connected Matroids. 2.1 Introduction Chapter 2 Splitting Operation and n-connected Matroids The splitting operation on an n-connected binary matroid may not yield an n-connected binary matroid. In this chapter, we provide a necessary and

More information

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

CS 561, Lecture 9. Jared Saia University of New Mexico CS 561, Lecture 9 Jared Saia University of New Mexico Today s Outline Minimum Spanning Trees Safe Edge Theorem Kruskal and Prim s algorithms Graph Representation 1 Graph Definition A graph is a pair of

More information

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings On the Relationships between Zero Forcing Numbers and Certain Graph Coverings Fatemeh Alinaghipour Taklimi, Shaun Fallat 1,, Karen Meagher 2 Department of Mathematics and Statistics, University of Regina,

More information

Chapter 4. square sum graphs. 4.1 Introduction

Chapter 4. square sum graphs. 4.1 Introduction Chapter 4 square sum graphs In this Chapter we introduce a new type of labeling of graphs which is closely related to the Diophantine Equation x 2 + y 2 = n and report results of our preliminary investigations

More information

CONNECTIVITY AND NETWORKS

CONNECTIVITY AND NETWORKS CONNECTIVITY AND NETWORKS We begin with the definition of a few symbols, two of which can cause great confusion, especially when hand-written. Consider a graph G. (G) the degree of the vertex with smallest

More information