8.2 Paths and Cycles
|
|
- Adelia Chandler
- 5 years ago
- Views:
Transcription
1 8.2 Paths and Cycles
2 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 the minimum degree of G.
3 Degree Sum Theorem Let G be an (n, m) graph with vertex set {v 1, v 2,... v n }. Then n deg(v i ) = 2m i=1
4 Degree Sum Theorem Let G be an (n, m) graph with vertex set {v 1, v 2,... v n }. Then Proof. n deg(v i ) = 2m i=1 Consider vertex v i. deg(v i ) gives the number of edges incident to v i. But, each of these edges is incident to some other vertex. Since every edge is incident to exactly two vertices, each of the vertices is counted when we count the m edges.
5 Parity of Vertices Theorem For any graph, there must be an even number of odd vertices.
6 Parity of Vertices Theorem For any graph, there must be an even number of odd vertices. Proof We have previously shown that the degree sum of any graph is even. We can partition the vertices of the graph into even and odd vertices, say V e and V o. Consider deg(vi ) = deg(v i ) + deg(v i ) v i V e v i V o
7 Proof (cont.) Proof. We know the left-hand side is even, so the right hand side must be even as well. Since v i V e deg(v i ) is the sum of even integers, it must be so that v i V o deg(v i ) must be even as well. But, since this is the sum of all odd integers, it can only be even if there is an even number of such integers.
8 Degree Sequence Definition The degree sequence of a graph is a list of degrees of each vertex. There will be n numbers listed if the order of G is n. a b c d e f Definition In a regular graph, all vertices have the same degree.
9 Graphical Sequence Is {6, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1} the degree sequence of a graph? Theorem A sequence S : d 1, d 2,..., d n of nonnegative integers with d 1 d 2... d n, n 2, d 1 1 is graphical iff the sequence S 1 : d 2 1, d 3 1,..., d d1 +1 1, d d1 +2,..., d n is graphical.
10 Examples Determine if the following sequences are graphical. 1 {8, 7, 7, 7, 7, 6, 5, 5} 2 {5, 5, 5, 5, 5, 5} 3 {7, 6, 5, 4, 3, 2, 1}
11 Examples Determine if the following sequences are graphical. 1 {8, 7, 7, 7, 7, 6, 5, 5} 2 {5, 5, 5, 5, 5, 5} 3 {7, 6, 5, 4, 3, 2, 1} Notice that the last sequence is all different integers. This is called an irregular graph.
12 Irregular Graph Theorem Irregular graphs do not exist.
13 Irregular Graph Theorem Irregular graphs do not exist. Proof. Suppose an irregular graph of order n exists with degree sequence {n 1, n 2,..., 0}. Then, the the vertex of degree n 1 would have to be adjacent to each of the other n 1 vertices of the graph, but the last vertex in the sequence already has degree 0.
14 Distance in Graphs Definition Let u and v be (not necessarily distinct) vertices of a graph G. A u v walk is an alternating finite sequence u = u 0, e 1, u 1, e 2, u 2,..., u k 1, e k, u k = v of vertices and edges, beginning at u and ending at v, such that e i = u i 1 u i for i = 1,..., k. The number k is the length of the walk. If u = v then the walk is closed; otherwise the walk is open. a b c d e f g h i j k
15 Distance in Graphs Definition A u v trail is a u v walk where no edge is repeated. A u v path is a u v walk where no vertex is repeated. a b c d e f g h i j k Definition A circuit is a nontrivial closed trail A cycle is circuit whose vertices are distinct, n 3.
16 Subgraphs Definition A subgraph H = (W, F) of a graph G = (V, E) is a graph such that W V and F E. Definition An induced subgraph H of G is a graph such that if u, v are vertices of H, then {u, v} is an edge of H iff {u, v} is an edge of G.
17 Subgraphs Definition A subgraph H = (W, F) of a graph G = (V, E) is a graph such that W V and F E. Definition An induced subgraph H of G is a graph such that if u, v are vertices of H, then {u, v} is an edge of H iff {u, v} is an edge of G. G H (induced) a b a f c f c e d e
18 Subgraphs G H (not induced) a b a b f c c e d
19 Spanning Subgraphs Definition A spanning subgraph of a graph G contains all vertices but not necessarily all edges. That is, if V(G) = V(H).
20 Spanning Subgraphs Definition A spanning subgraph of a graph G contains all vertices but not necessarily all edges. That is, if V(G) = V(H). G spanning subgraph a b a b f c f c e d e d
21 Connectivity and Complements Definition A graph is connected if for any two distinct vertices, there exists a path between the vertices. Each connected piece of a graph is called a component.
22 Connectivity and Complements Definition A graph is connected if for any two distinct vertices, there exists a path between the vertices. Each connected piece of a graph is called a component. Definition The complement G of G is that graph with vertex set V(G) such that two vertices are adjacent in G only when the vertices are not adjacent in G. E(G) + E(G) = ( ) n 2
23 Connectivity and Complements Theorem If G is disconnected, then G is connected.
24 Connectivity and Complements Theorem If G is disconnected, then G is connected. Proof. If G is disconnected then G has at least two components. Within any component of G, any two vertices that are not adjacent in G will be adjacent in G. Also, in G, the vertices in any one component are adjacent to no vertices in any other component of G. Therefore, each vertex in any component of G will be adjacent to every vertex of every other component in G. Also, for every two vertices adjacent in G, they will not be adjacent in G but they will be adjacent to a common vertex (i.e. all vertices from other components of G) and will be connected.
25 K.. onigsberg, 1736
26 Graph Representation A B C D
27 New Definitions Definition An Eulerian trail is an open trail of G containing all edges and vertices.
28 New Definitions Definition An Eulerian trail is an open trail of G containing all edges and vertices. Definition An Eulerian circuit is a closed trail containing all edges and vertices.
29 New Definitions Definition An Eulerian trail is an open trail of G containing all edges and vertices. Definition An Eulerian circuit is a closed trail containing all edges and vertices. Definition A graph containing an Eulerian circuit is called Eulerian.
30 Examples Which contain Eulerian trails? circuits? Do you see any patterns as to when one does/does not exist?
31 More Examples
32 Conclusions 1 If all vertices are even, an Eulerian circuit exists
33 Conclusions 1 If all vertices are even, an Eulerian circuit exists 2 If there are exactly 2 odd vertices, an Eulerian trail exists that begins at one odd vertex and ends at the other one
34 Conclusions 1 If all vertices are even, an Eulerian circuit exists 2 If there are exactly 2 odd vertices, an Eulerian trail exists that begins at one odd vertex and ends at the other one 3 If there are more than two odd vertices, no Eulerian trail or circuit exists
35 Necessary Condition Theorem A graph G contains an Eulerian circuit if and only if the degree of each vertex is even.
36 Necessary Condition Theorem A graph G contains an Eulerian circuit if and only if the degree of each vertex is even. Proof of necessity Suppose G contains an Eulerian circuit C. Then, for any choice of vertex v, C contains all the edges that are incident to v. Furthermore, as we traverse along C, we must enter and leave v the same number of times, and it follows that deg(v) must be even.
37 Example K 5 is 4-regular and so has all even vertices. start
38 Notes Euler presented proof of necessity in 1736
39 Notes Euler presented proof of necessity in 1736 His paper did not include the proof of the converse
40 Notes Euler presented proof of necessity in 1736 His paper did not include the proof of the converse Proof of sufficiency was presented in 1873 by a German mathematician named Carl Hierholzer
41 Proof of Sufficiency Proof. We prove by induction on the number of edges. For graphs with all vertices of even degree, the smallest possible number of edges is 3 in the case of simple graphs, and 2 in the case of multigraphs. In both cases, the graph trivially contains an Eulerian circuit.
42 Proof of Sufficiency Proof. We prove by induction on the number of edges. For graphs with all vertices of even degree, the smallest possible number of edges is 3 in the case of simple graphs, and 2 in the case of multigraphs. In both cases, the graph trivially contains an Eulerian circuit. The induction hypothesis then says: Let H be a connected graph with k edges. If every vertex of H has even degree, H contains an Eulerian circuit.
43 Proof of Sufficiency Proof. We prove by induction on the number of edges. For graphs with all vertices of even degree, the smallest possible number of edges is 3 in the case of simple graphs, and 2 in the case of multigraphs. In both cases, the graph trivially contains an Eulerian circuit. The induction hypothesis then says: Let H be a connected graph with k edges. If every vertex of H has even degree, H contains an Eulerian circuit. Now, let G be a graph with k + 1 edges, and every vertex has an even degree. Since there is no odd degree vertex, G cannot be a tree. Thus, G must contain a cycle C.
44 Proof of Sufficiency (cont.) Proof. Now, remove the edges of C from G, and consider the remaining graph G. Since removing C from G may disconnect the graph, G is a collection of connected components, namely G 1, G 2,....
45 Proof of Sufficiency (cont.) Proof. Now, remove the edges of C from G, and consider the remaining graph G. Since removing C from G may disconnect the graph, G is a collection of connected components, namely G 1, G 2,.... Furthermore, when the edges in C are removed from G, each vertex loses even number of adjacent edges. Thus, the parity of each vertex is unchanged in G. It follows that, for each connected component of G, every vertex has an even degree.
46 Proof of Sufficiency (cont.) Proof. Now, remove the edges of C from G, and consider the remaining graph G. Since removing C from G may disconnect the graph, G is a collection of connected components, namely G 1, G 2,.... Furthermore, when the edges in C are removed from G, each vertex loses even number of adjacent edges. Thus, the parity of each vertex is unchanged in G. It follows that, for each connected component of G, every vertex has an even degree. Therefore, by the induction hypothesis, each of G 1, G 2,... has its own Eulerian circuit, namely C 1, C 2,....
47 Proof of Sufficiency (cont.) Proof. We can now build an Eulerian circuit for G. Pick an arbitrary vertex a from C. Traverse along C until we reach a vertex v i that belongs to one of the connected components G i.
48 Proof of Sufficiency (cont.) Proof. We can now build an Eulerian circuit for G. Pick an arbitrary vertex a from C. Traverse along C until we reach a vertex v i that belongs to one of the connected components G i. Then, traverse along its Eulerian circuit C i until we traverse all the edges of C i. We are now back at v i, and so we can continue on along C. In the end, we shall return back to the first starting vertex a, after visiting every edge exactly once.
49 Illustration of Theorem
50 Illustration of Theorem
51 Illistration of Theorem (cont..)
52 Illistration of Theorem (cont..)
53 Illistration of Theorem (cont..)
54 Illistration of Theorem (cont..)
55 Fleury s Algorithm 1 Check if the graph is connected, and every vertex is of even degree. Reject otherwise. 2 Pick any vertex v start to start. 3 While the graph contains at least one edge: 1 Pick an edge that is not a bridge. 2 Traverse that edge, and remove it from G.
56 Fleury s Algorithm 1 Check if the graph is connected, and every vertex is of even degree. Reject otherwise. 2 Pick any vertex v start to start. 3 While the graph contains at least one edge: 1 Pick an edge that is not a bridge. 2 Traverse that edge, and remove it from G. Definition A bridge is an edge whose removal makes a connected graph become disconnected.
57 Proof of Correctness To see that this algorithm terminates, suppose we are stuck at some vertex v before all the edges are removed. Then either v must have an odd degree, or G is not a connected graph to begin with. Both of these cases are impossible due to our first check. This is a contradiction. Note that, when the algorithm terminates, we must return to v start because every vertex has an even degree. Furthermore, the edge removal operation guarantees that each edge is visited exactly once. Therefore, the discovered tour is an Eulerian circuit.
58 Eulerian trail Theorem A graph contains an Eulerian path if and only if there are 0 or 2 odd degree vertices.
59 Eulerian trail Theorem A graph contains an Eulerian path if and only if there are 0 or 2 odd degree vertices. Proof. Suppose a graph G contains an Eulerian path P. Then, for every vertex v, P must enter and leave v the same number of times, except when it is either the starting vertex or the final vertex of P.
60 Eulerian trail Theorem A graph contains an Eulerian path if and only if there are 0 or 2 odd degree vertices. Proof. Suppose a graph G contains an Eulerian path P. Then, for every vertex v, P must enter and leave v the same number of times, except when it is either the starting vertex or the final vertex of P. When the starting and final vertices are distinct, there are precisely 2 odd degree vertices. When these two vertices coincide, there is no odd degree vertex.
61 Eulerian trail Proof. Conversely, suppose G contains 2 odd degree vertex u and v. (The case where G has no odd degree vertex is shown in the previous theorem.)
62 Eulerian trail Proof. Conversely, suppose G contains 2 odd degree vertex u and v. (The case where G has no odd degree vertex is shown in the previous theorem.) Then, temporarily add a dummy edge {u, v} to G. Now the modified graph contains no odd degree vertex.
63 Eulerian trail Proof. Conversely, suppose G contains 2 odd degree vertex u and v. (The case where G has no odd degree vertex is shown in the previous theorem.) Then, temporarily add a dummy edge {u, v} to G. Now the modified graph contains no odd degree vertex. By the last theorem, this graph contains an Eulerian circuit C that also contains {u, v}. Remove {u, v} from C, and now we have an Eulerian path where u and v serve as initial and final vertices.
64 Chinese Postman Problem Kwan, 1962 A mail carrier starting out at the post office must deliver letters to each block in a territory and return to the post office. What is the least number of repeated street necessary?
65 Chinese Postman Problem Kwan, 1962 A mail carrier starting out at the post office must deliver letters to each block in a territory and return to the post office. What is the least number of repeated street necessary?
66 Chinese Postman Problem (cont.) Edges must be added to create a multigraph because the simple graph contains no Eulerian circuit.
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 informationChapter 3: Paths and Cycles
Chapter 3: Paths and Cycles 5 Connectivity 1. Definitions: Walk: finite sequence of edges in which any two consecutive edges are adjacent or identical. (Initial vertex, Final vertex, length) Trail: walk
More informationFundamental 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 informationAdjacent: 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 informationMath 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 informationDiscrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7
CS 70 Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7 An Introduction to Graphs A few centuries ago, residents of the city of Königsberg, Prussia were interested in a certain problem.
More informationCharacterizing 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 informationAssignment 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 informationCrossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)
15-251 Great Ideas in Theoretical Computer Science Lecture 12: Graphs I: The Basics February 22nd, 2018 Crossing bridges Königsberg (Prussia) Now Kaliningrad (Russia) Is there a way to walk through the
More informationAssignment # 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 informationINTRODUCTION TO GRAPH THEORY. 1. Definitions
INTRODUCTION TO GRAPH THEORY D. JAKOBSON 1. Definitions A graph G consists of vertices {v 1, v 2,..., v n } and edges {e 1, e 2,..., e m } connecting pairs of vertices. An edge e = (uv) is incident with
More informationIntroduction to Graphs
Introduction to Graphs Historical Motivation Seven Bridges of Königsberg Königsberg (now Kaliningrad, Russia) around 1735 Problem: Find a walk through the city that would cross each bridge once and only
More informationDO 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 informationCONNECTIVITY 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 information1 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 information2. 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 informationHW 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 informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8 An Introduction to Graphs Formulating a simple, precise specification of a computational problem is often a prerequisite
More informationMath 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 informationLecture 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 informationNumber 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 information3 Euler Tours, Hamilton Cycles, and Their Applications
3 Euler Tours, Hamilton Cycles, and Their Applications 3.1 Euler Tours and Applications 3.1.1 Euler tours Carefully review the definition of (closed) walks, trails, and paths from Section 1... Definition
More informationHow can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?
1 Introduction Graph theory is one of the most in-demand (i.e. profitable) and heavily-studied areas of applied mathematics and theoretical computer science. May graph theory questions are applied in this
More informationMC 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 informationTopic 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 informationMATH 682 Notes Combinatorics and Graph Theory II. One interesting class of graphs rather akin to trees and acyclic graphs is the bipartite graph:
1 Bipartite graphs One interesting class of graphs rather akin to trees and acyclic graphs is the bipartite graph: Definition 1. A graph G is bipartite if the vertex-set of G can be partitioned into two
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.
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 informationDiscrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs
CS 70 Discrete Mathematics for CS Spring 2008 David Wagner Note 13 An Introduction to Graphs Formulating a simple, precise specification of a computational problem is often a prerequisite to writing a
More informationDefinition 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 informationBasics of Graph Theory
Basics of Graph Theory 1 Basic notions A simple graph G = (V, E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements of V called edges. Simple graphs have their
More informationWUCT121. Discrete Mathematics. Graphs
WUCT121 Discrete Mathematics Graphs WUCT121 Graphs 1 Section 1. Graphs 1.1. Introduction Graphs are used in many fields that require analysis of routes between locations. These areas include communications,
More information14 More Graphs: Euler Tours and Hamilton Cycles
14 More Graphs: Euler Tours and Hamilton Cycles 14.1 Degrees The degree of a vertex is the number of edges coming out of it. The following is sometimes called the First Theorem of Graph Theory : Lemma
More informationBasic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions
Basic Combinatorics Math 40210, Section 01 Fall 2012 Homework 4 Solutions 1.4.2 2: One possible implementation: Start with abcgfjiea From edge cd build, using previously unmarked edges: cdhlponminjkghc
More informationGraph Theory CS/Math231 Discrete Mathematics Spring2015
1 Graphs Definition 1 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 is called the vertex set of G, and its elements are called vertices
More informationChapter 11: Graphs and Trees. March 23, 2008
Chapter 11: Graphs and Trees March 23, 2008 Outline 1 11.1 Graphs: An Introduction 2 11.2 Paths and Circuits 3 11.3 Matrix Representations of Graphs 4 11.5 Trees Graphs: Basic Definitions Informally, a
More informationGRAPH THEORY: AN INTRODUCTION
GRAPH THEORY: AN INTRODUCTION BEGINNERS 3/4/2018 1. GRAPHS AND THEIR PROPERTIES A graph G consists of two sets: a set of vertices V, and a set of edges E. A vertex is simply a labeled point. An edge is
More informationDefinition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.
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
More informationLet G = (V, E) be a graph. If u, v V, then u is adjacent to v if {u, v} E. We also use the notation u v to denote that u is adjacent to v.
Graph Adjacent Endpoint of an edge Incident Neighbors of a vertex Degree of a vertex Theorem Graph relation Order of a graph Size of a graph Maximum and minimum degree Let G = (V, E) be a graph. If u,
More information11.4 Bipartite Multigraphs
11.4 Bipartite Multigraphs Introduction Definition A graph G is bipartite if we can partition the vertices into two disjoint subsets U and V such that every edge of G has one incident vertex in U and the
More informationV :non-empty vertex ornode set E V V :edge set G (V, E) :directed graph on V, or digraph on V
-93-11. Graph Theory Example: V :non-empty vertex ornode set E V V :edge set G (V, E) :directed graph on V, or digraph on V b e f V={a, b, c, d, e, f, g} a c d f E={(a,b), (b,c), (c,a),... } Note: (a,
More informationVarying Applications (examples)
Graph Theory Varying Applications (examples) Computer networks Distinguish between two chemical compounds with the same molecular formula but different structures Solve shortest path problems between cities
More informationLecture 3: Graphs and flows
Chapter 3 Lecture 3: Graphs and flows Graphs: a useful combinatorial structure. Definitions: graph, directed and undirected graph, edge as ordered pair, path, cycle, connected graph, strongly connected
More informationMa/CS 6b Class 5: Graph Connectivity
Ma/CS 6b Class 5: Graph Connectivity By Adam Sheffer Communications Network We are given a set of routers and wish to connect pairs of them to obtain a connected communications network. The network should
More informationGraph Theory S 1 I 2 I 1 S 2 I 1 I 2
Graph Theory S I I S S I I S Graphs Definition A graph G is a pair consisting of a vertex set V (G), and an edge set E(G) ( ) V (G). x and y are the endpoints of edge e = {x, y}. They are called adjacent
More informationK 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 informationGraph Theory Day Four
Graph Theory Day Four February 8, 018 1 Connected Recall from last class, we discussed methods for proving a graph was connected. Our two methods were 1) Based on the definition, given any u, v V(G), there
More informationDiscrete 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 informationHomework 6 Solutions CS330 Discrete Structures, Fall 2017
Homework 6 Solutions CS330 Discrete Structures, Fall 2017 Instructor: Professor Edward Reingold TA: Jiahui Hou, Haohua Du Solutions 1. 10 pts) Algorithm 1 Basic Euler Circuit Algorithm. procedure Euler(G
More informationGraphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph
Graphs and Trees Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) who is connected to whom Web search views web pages as a graph Who points to whom Niche graphs (Ecology):
More information{ 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 informationModules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...
Modules 6 Hamilton Graphs (4-8 lectures) 135 6.1 Introduction................................ 136 6.2 Necessary conditions and sufficient conditions............. 137 Exercises..................................
More informationList of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,
List of Theorems Mat 416, Introduction to Graph Theory 1. Ramsey s Theorem for graphs 8.3.11. Theorem 1 The numbers R(p, q) exist and for p, q 2, R(p, q) R(p 1, q) + R(p, q 1). If both summands on the
More informationv 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 informationIntroduction III. Graphs. Motivations I. Introduction IV
Introduction I Graphs Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Graph theory was introduced in the 18th century by Leonhard Euler via the Königsberg
More informationThe University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008
The University of Sydney MATH99/09 Graph Theory Tutorial (Week 9) 00. Show that the graph on the left is Hamiltonian, but that the other two are not. To show that the graph is Hamiltonian, simply find
More informationBrief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions
Brief History Graph Theory What is a graph? It all began in 1736 when Leonhard Euler gave a proof that not all seven bridges over the Pregolya River could all be walked over once and end up where you started.
More informationChapter 2 Graphs. 2.1 Definition of Graphs
Chapter 2 Graphs Abstract Graphs are discrete structures that consist of vertices and edges connecting some of these vertices. Graphs have many applications in Mathematics, Computer Science, Engineering,
More informationEulerian Tours and Fleury s Algorithm
Eulerian Tours and Fleury s Algorithm CSE21 Winter 2017, Day 12 (B00), Day 8 (A00) February 8, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Vocabulary Path (or walk): describes a route from one vertex
More informationSection 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 informationGraph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011
Graph Theory Martin Stynes Department of Mathematics, UCC email: m.stynes@ucc.ie January 26, 2011 1 Introduction to Graphs 1 A graph G = (V, E) is a non-empty set of nodes or vertices V and a (possibly
More informationRosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples
Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples Section 9.5 Euler and Hamilton Paths Page references correspond to locations of Extra Examples icons in the textbook. p.634,
More informationFigure 2.1: A bipartite graph.
Matching problems The dance-class problem. A group of boys and girls, with just as many boys as girls, want to dance together; hence, they have to be matched in couples. Each boy prefers to dance with
More informationThe Konigsberg Bridge Problem
The Konigsberg Bridge Problem This is a classic mathematical problem. There were seven bridges across the river Pregel at Königsberg. Is it possible to take a walk in which each bridge is crossed exactly
More informationNotes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:
Notes slides from before lecture CSE 21, Winter 2017, Section A00 Lecture 9 Notes Class URL: http://vlsicad.ucsd.edu/courses/cse21-w17/ Notes slides from before lecture Notes February 8 (1) HW4 is due
More informationCharacterization of Graphs with Eulerian Circuits
Eulerian Circuits 3. 73 Characterization of Graphs with Eulerian Circuits There is a simple way to determine if a graph has an Eulerian circuit. Theorems 3.. and 3..2: Let G be a pseudograph that is connected
More informationEulerian tours. Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck. April 20, 2016
Eulerian tours Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck http://cseweb.ucsd.edu/classes/sp16/cse21-bd/ April 20, 2016 Seven Bridges of Konigsberg Is there a path that crosses each
More informationSarah Will Math 490 December 2, 2009
Sarah Will Math 490 December 2, 2009 Euler Circuits INTRODUCTION Euler wrote the first paper on graph theory. It was a study and proof that it was impossible to cross the seven bridges of Königsberg once
More informationNorth Bank. West Island. East Island. South Bank
Lecture 11 Eulerian Multigraphs This section of the notes revisits the Königsberg Bridge Problem and generalises it to explore Eulerian multigraphs: those that contain a closed walk that traverses every
More informationNetwork Topology and Graph
Network Topology Network Topology and Graph EEE442 Computer Method in Power System Analysis Any lumped network obeys 3 basic laws KVL KCL linear algebraic constraints Ohm s law Anawach Sangswang Dept.
More informationGRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS
GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS DR. ANDREW SCHWARTZ, PH.D. 10.1 Graphs and Graph Models (1) A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes)
More informationCS473-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 informationCHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z
CHAPTER 10 GRAPHS AND TREES Alessandro Artale UniBZ - http://www.inf.unibz.it/ artale/z SECTION 10.1 Graphs: Definitions and Basic Properties Copyright Cengage Learning. All rights reserved. Graphs: Definitions
More informationGraph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow
Graph Theory Connectivity, Coloring, Matching Arjun Suresh 1 1 GATE Overflow GO Classroom, August 2018 Thanks to Subarna/Sukanya Das for wonderful figures Arjun, Suresh (GO) Graph Theory GATE 2019 1 /
More informationMath 443/543 Graph Theory Notes 2: Transportation problems
Math 443/543 Graph Theory Notes 2: Transportation problems David Glickenstein September 15, 2014 1 Readings This is based on Chartrand Chapter 3 and Bondy-Murty 18.1, 18.3 (part on Closure of a Graph).
More informationElements 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 informationDiscrete mathematics II. - Graphs
Emil Vatai April 25, 2018 Basic definitions Definition of an undirected graph Definition (Undirected graph) An undirected graph or (just) a graph is a triplet G = (ϕ, E, V ), where V is the set of vertices,
More informationModule 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 informationComplete Cototal Domination
Chapter 5 Complete Cototal Domination Number of a Graph Published in Journal of Scientific Research Vol. () (2011), 547-555 (Bangladesh). 64 ABSTRACT Let G = (V,E) be a graph. A dominating set D V is said
More informationPACKING 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 informationDiscrete Wiskunde II. Lecture 6: Planar Graphs
, 2009 Lecture 6: Planar Graphs University of Twente m.uetz@utwente.nl wwwhome.math.utwente.nl/~uetzm/dw/ Planar Graphs Given an undirected graph (or multigraph) G = (V, E). A planar embedding of G is
More informationLogic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees
Axiomatizing Arithmetic Logic: The Big Picture Suppose we restrict the domain to the natural numbers, and allow only the standard symbols of arithmetic (+,, =, >, 0, 1). Typical true formulas include:
More informationMath 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 information8 Colouring Planar Graphs
8 Colouring Planar Graphs The Four Colour Theorem Lemma 8.1 If G is a simple planar graph, then (i) 12 v V (G)(6 deg(v)) with equality for triangulations. (ii) G has a vertex of degree 5. Proof: For (i),
More information1 Matchings in Graphs
Matchings in Graphs J J 2 J 3 J 4 J 5 J J J 6 8 7 C C 2 C 3 C 4 C 5 C C 7 C 8 6 J J 2 J 3 J 4 J 5 J J J 6 8 7 C C 2 C 3 C 4 C 5 C C 7 C 8 6 Definition Two edges are called independent if they are not adjacent
More informationMC302 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/13 68 points + 6 extra credit points
MC02 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/1 68 points + 6 extra credit points 1. [CH] p. 1, #1... a. In each case, for the two graphs you say are isomorphic, justify it by labeling their vertices
More informationTheorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.
3 Matchings Hall s Theorem Matching: A matching in G is a subset M E(G) so that no edge in M is a loop, and no two edges in M are incident with a common vertex. A matching M is maximal if there is no matching
More information8. The Postman Problems
8. The Postman Problems The Chinese postman problem (CPP) A postal carrier must pick up the mail at the post office, deliver the mail along blocks on the route, and finally return to the post office. To
More informationScheduling, Map Coloring, and Graph Coloring
Scheduling, Map Coloring, and Graph Coloring Scheduling via Graph Coloring: Final Exam Example Suppose want to schedule some ;inal exams for CS courses with following course numbers: 1007, 3137, 3157,
More informationGraph Theory. Part of Texas Counties.
Graph Theory Part of Texas Counties. We would like to visit each of the above counties, crossing each county only once, starting from Harris county. Is this possible? This problem can be modeled as a graph.
More informationBIL694-Lecture 1: Introduction to Graphs
BIL694-Lecture 1: Introduction to Graphs Lecturer: Lale Özkahya Resources for the presentation: http://www.math.ucsd.edu/ gptesler/184a/calendar.html http://www.inf.ed.ac.uk/teaching/courses/dmmr/ Outline
More informationTheorem 2.9: nearest addition algorithm
There are severe limits on our ability to compute near-optimal tours It is NP-complete to decide whether a given undirected =(,)has a Hamiltonian cycle An approximation algorithm for the TSP can be used
More informationLecture 8: PATHS, CYCLES AND CONNECTEDNESS
Discrete Mathematics August 20, 2014 Lecture 8: PATHS, CYCLES AND CONNECTEDNESS Instructor: Sushmita Ruj Scribe: Ishan Sahu & Arnab Biswas 1 Paths, Cycles and Connectedness 1.1 Paths and Cycles 1. Paths
More informationMATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.
Final exam This is a closed book exam. No calculators are allowed. Unless stated otherwise, justify all your steps. You may use lemmas and theorems that were proven in class and on assignments unless stated
More informationMath 15 - Spring Homework 2.6 Solutions 1. (2.6 # 20) The following graph has 45 vertices. In Sagemath, we can define it like so:
Math 15 - Spring 2017 - Homework 2.6 Solutions 1. (2.6 # 20) The following graph has 45 vertices. In Sagemath, we can define it like so: dm = {0: [1,15], 1: [2,16,31], 2: [3,17,32], 3: [4,18,33], 4: [5,19,34],
More informationIntroduction 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 informationMa/CS 6b Class 4: Matchings in General Graphs
Ma/CS 6b Class 4: Matchings in General Graphs By Adam Sheffer Reminder: Hall's Marriage Theorem Theorem. Let G = V 1 V 2, E be a bipartite graph. There exists a matching of size V 1 in G if and only if
More informationPaths, Circuits, and Connected Graphs
Paths, Circuits, and Connected Graphs Paths and Circuits Definition: Let G = (V, E) be an undirected graph, vertices u, v V A path of length n from u to v is a sequence of edges e i = {u i 1, u i} E for
More informationAn Introduction to Graph Theory
An Introduction to Graph Theory Evelyne Smith-Roberge University of Waterloo March 22, 2017 What is a graph? Definition A graph G is: a set V (G) of objects called vertices together with: a set E(G), of
More information4.1 Eulerian Tours. 4. Eulerian Tours and Trails. Königsberg. Seven Bridges. Try. Königsberg bridge problem
4. Eulerian Tours and Trails 4.1 Eulerian Tours FMONG NIE 1 FMONG NIE 2 Königsberg Königsberg was a city in eastern Prussia in 18 th century. river flowed through this city and separated it into four pieces.
More informationMath.3336: Discrete Mathematics. Chapter 10 Graph Theory
Math.3336: Discrete Mathematics Chapter 10 Graph Theory Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall
More information