Applied Combinatorics, 4th Ed. Alan Tucker

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Graph-02.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Applied Combinatorics, 4th Ed. Alan Tucker
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
Applied Combinatorics, 4th Ed. Alan Tucker
02/01/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 1.3 Edge Counting Prepared by Joshua Schoenly and Kathleen McNamara.
An Euler Circuit is a cycle of an undirected graph, that traverses every edge of the graph exactly once, and ends at the same node from which it began.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 5,Wednesday, September 10.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
1/22/03Tucker, Applied Combinatorics, Section EDGE COUNTING TUCKER, APPLIED COMBINATORICS, SECTION 1.3, GROUP B Michael Duquette & Amanda Dargie.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Introduction to Graph Theory
Lecture 10: Graph-Path-Circuit
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Basic properties Continuation
Introduction to Graph Theory
2/25/2016Tucker, Sec Applied Combinatorics, 4 th Ed. Alan Tucker Section 2.2 Hamilton Circuits Prepared by: Nathan Rounds and David Miller.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
CS Lecture 22 Graph Theory. Can I draw the above figure in one continuous trace with no line being drawn twice?
Graphs. Representations of graphs : undirected graph An undirected graph G have five vertices and seven edges An adjacency-list representation of G The.
An Introduction to Graph Theory
Outline 1 Properties of Planar Graphs 5/4/2018.
CSNB 143 Discrete Mathematical Structures
Çizge Algoritmaları.
Graphs: Definitions and Basic Properties
Grade 11 AP Mathematics Graph Theory
Euler Paths and Circuits
Applied Combinatorics, 4th Ed. Alan Tucker
Graph theory Definitions Trees, cycles, directed graphs.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Discrete Structures – CNS2300
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Applied Combinatorics, 4th Ed. Alan Tucker
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graphs Chapter 13.
Genome Assembly.
Discrete Math II Howon Kim
Connectivity Section 10.4.
Applied Combinatorics, 4th Ed. Alan Tucker
Applied Combinatorics, 4th Ed. Alan Tucker
Graph Theory What is a graph?.
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Gaph Theory Planar Graphs
Discrete Math II Howon Kim
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Chapter 10 Graphs and Trees
Discrete Math II Howon Kim
Presentation transcript:

Applied Combinatorics, 4th Ed. Alan Tucker Section 2.1 Euler Cycles Prepared by Patrick Asaba and Patrick Scanlon 5/8/2019 Tucker Sec. 2.1 Section 2.1

Definitions Multigraph: A graph in which; a) multiple edges are allowed, that is, two or more edges can join the same two vertices. b) loops are allowed, that is edges of the form ( ). loop Multiple edges 5/8/2019 Tucker Sec. 2.1

Cycle: Euler Cycle: C=a-h-g-f-e-d-f-a A sequence of consecutively linked edges whose starting vertex is the ending vertex, in which no edge can appear more than once. However, vertices can be repeated. e.g. a b h c g d f e C=a-h-g-f-e-d-f-a Euler Cycle: A path through a graph which starts and ends at the same vertex and includes every edge exactly once. a b h c g d f e E = a-b-c-d-e-f-g-h-a-d-h-e-b-g-c- f-a 5/8/2019 Tucker Sec. 2.1

Trail: A sequence of consecutively linked edges in which no edge can appear more than once. . Unlike a path, a vertex can be visited more than once in a trail. e.g. End Start Euler Trail:- A trail that contains all the edges in a graph (and visits each edge exactly once). 5/8/2019 Tucker Sec. 2.1

Theorem An undirected multigraph has an Euler cycle if and only if it is connected and has all vertices of even degree. This is a connected graph with all vertices of even degree, therefore it must have an Euler cycle. 5/8/2019 Tucker Sec. 2.1

Example Here the multigraph H does not have an Euler cycle because there are 2 odd degree vertices, namely vertex ‘k’ and vertex ‘a’. a l d k e j f i g h b c Therefore if and only if the edge (k , a) were completed then H would have an Euler Cycle. Multigraph H 5/8/2019 Tucker Sec. 2.1

Proof An Euler cycle all vertices are connected and have even degree The Euler cycle connects all vertices, so the graph is connected. Every time the cycle enters a vertex it also exits, so the vertices have even degree in a whole complete cycle. This graph has an Euler cycle, therefore all the vertices are connected and have even degree. We call a connected graph with all even degrees an Eulerian Graph. 5/8/2019 Tucker Sec. 2.1

Proof All even and connected Euler cycle g b k l d c g h e i j f Pick any point on G. ( I will start with a) Since all vertices have an even degree, we are not forced to stop until we complete the cycle. (get back to the starting point) 5/8/2019 Tucker Sec. 2.1

Proof cont’d Path created by C k l a b d e f h i j For example, let C equal the cycle created, c C = a-d-h-k-l-i-j-f-e-b-a g If there are any unused edges, and in this case there is, then create another cycle starting with any edge adjacent to C. k l a b d e f h i j This is the cycle created by D in Blue c D = d-e-i-h-g-c-d g 5/8/2019 Tucker Sec. 2.1

Proof cont’d Since C and D were originally connected, there must be at least one common vertex; pick one (point d) Build a new cycle C´, by putting D into C at the common point to get a larger cycle. C´ = D + C C´ is presented on the next slide 5/8/2019 Tucker Sec. 2.1

Proof Cont’d k l a b f j c d e g h i All the edges have been used exactly once, so we have an Euler cycle. If all the edges were not used, we would simply pick one adjacent to C´ and repeat the process. 5/8/2019 Tucker Sec. 2.1

Corollary A multigraph has an Euler trail, but not an Euler cycle, if and only if it is connected and has exactly two vertices of odd degree. Proof Suppose a multigraph H has an Euler trail T, but not an Euler cycle. The starting and ending vertices of T must have odd degree while all other vertices have an even degree (by the same reasoning that showed all vertices with even degree in an Euler cycle). Also the graph must be connected. start end 5/8/2019 Tucker Sec. 2.1

On the other hand if a multigraph H is connected and has exactly two vertices, p and q, of odd degree, then to obtain a graph H´, add a supplementary edge (p,q) to H. p q H´ is now connected and has all vertices of even degree. Therefore by the Euler cycle theorem, H´ has an Euler cycle C. If you removed the edge (p,q) from C, this reduces the Euler cycle to an Euler trail that includes all of edges of H. Hence the corollary. 5/8/2019 Tucker Sec. 2.1

Examples In general has Euler cycle if n is an odd number. : Euler trail – Yes- exactly two vertices of odd degree. Euler cycle – No- vertices are not of even degree. : Euler trail – No- vertices are not of odd degree. Euler cycle – Yes- even degree vertices. : Euler trail – No- more than two vertices of odd degree. Euler cycle – No- there aren’t any even degree vertices. : Euler trail – No- there are no vertices of odd degree. Euler cycle – Yes- cycle is connected and even degree. . In general has Euler cycle if n is an odd number. 5/8/2019 Tucker Sec. 2.1

Class Exercise Give an undirected 12 edge graph, that has an Euler cycle. B. Can a graph with an Euler cycle have a bridge (an edge whose removal disconnects the graph)? Answers A. All vertices have even degree Is connected B. No. If you start on one side of the bridge and then you cross it the only way you can get back to where you started, that is to cross the bridge again. This means you have to travel the same edge twice and thus, a Euler cycle cannot exist. 5/8/2019 Tucker Sec. 2.1