CPS420 Euler Circuit Construction

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Every edge is in a red ellipse (the bags). The bags are connected in a tree. The bags an original vertex is part of are connected.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Graph-02.
Graph Theory: Euler Circuits Christina Mende Math 480 April 15, 2013.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
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.
1 Section 9.4 Spanning Trees. 2 Let G be a simple graph. A spanning subtree of G is a subgraph of G containing every vertex of G –must be connected; contains.
Data Structures, Spring 2004 © L. Joskowicz 1 Data Structures – LECTURE 14 Strongly connected components Definition and motivation Algorithm Chapter 22.5.
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.
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.
1 CIS /204—Spring 2008 Recitation 10 Friday, April 4, 2008.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
Euler Circuit Chapter 5. Fleury’s Algorithm Euler’s theorems are very useful to find if a graph has an Euler circuit or an Euler path when the graph is.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
(CSC 102) Lecture 29 Discrete Structures. Graphs.
CSE, IIT KGP Euler Graphs and Digraphs. CSE, IIT KGP Euler Circuit We use the term circuit as another name for closed trail.We use the term circuit as.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Aim: What is an Euler Path and Circuit?
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
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
SECTION 5.1: Euler Circuit Problems
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Chapter 6: Graphs 6.1 Euler Circuits
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
 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.
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Introduction to Graph Theory
1) Find and label the degree of each vertex in the graph.
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
Fleury's Algorithm Euler Circuit Algorithm
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
MCA 520: Graph Theory Instructor Neelima Gupta
Trees.
Çizge Algoritmaları.
Euler Paths and Circuits
Graphs Rosen, Chapter 8.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Euler Circuits William T. Trotter and Mitchel T. Keller
Planarity Testing.
Can you draw this picture without lifting up your pen/pencil?
4-4 Graph Theory Trees.
Trees.
A path that uses every vertex of the graph exactly once.
Graph Theory What is a graph?.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Applied Combinatorics, 4th Ed. Alan Tucker
Discrete Math II Howon Kim
Warm Up – Tuesday Find the critical times for each vertex.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Graph Theory: Euler Graphs and Digraphs
Discrete Math II Howon Kim
Presentation transcript:

CPS420 Euler Circuit Construction © Sophie Quigley

Original Graph G V(G) = {A, B, C, D, E, F, G, H, I, J} E(G)={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}

Graph G’ Let G’ = G E(G’)= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17} V(G’) = {A, B, C, D, E, F, G, H, I, J}

Graph G’ Pick a vertex of G’: v=B E(G’)= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17} V(G’) = {A, B, C, D, E, F, G, H, I, J}

Circuit C=C’ Let C = C’ = a circuit in G which starts and ends in v = B2C13I8H12B E(C) = E(C’) = {2, 13, 8, 12 } V(C) = V(C’) = {B, C, I, H} E(G’)= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17} V(G’) = {A, B, C, D, E, F, G, H, I, J} Core of proof: how can we be sure that there is such a circuit? Circuit starts at v and each time it enters a vertex it can also leave it because all the vertices have even degree When the circuit started at v, because the degree of v is even, there was still at least one remaining untraversed edge leading back to v. Call the other vertex on that edge w. The circuit has to reach w in order to be able to return to v. However, the graph is connected, so this means that there exists a path from any vertex in G (and therefore in the circuit) to w and therefore the circuit can eventually return to w and then v.

Iterate on G’ Let G’ be the new graph s.t. E(G’)= E(G’) – E(C’) = {1, 3, 4, 5, 6, 7, 9, 10, 11, 14, 15, 16, 17 } V(G’) = V(G’) – {all isolated vertices once edges in E(C’) have been removed} = {A, B, C, D, E, F, G, H, I, J}   C = C’= B2C13I8H12B E(C) = E(C’) = {2, 13, 8, 12 } V(C) = V(C’) = {B, C, I, H}

Iterate on C’ Pick a vertex w from V(C)V(G’) w = H E(G’)= {1, 3, 4, 5, 6, 7, 9, 10, 11, 14, 15, 16, 17 } V(G’) = {A, B, C, D, E, F, G, H, I, J} C = B2C13I8H12B E(C) = {2, 13, 8, 12 } V(C) = {B, C, I, H}

Iterate on C’ Let C’ = circuit of G’ starting at w C’ = H15E5F6G7H Integrate C’ into C: C = B2C13I8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7 } V(C) = {B, C, I, H, E, F, G}

Iterate on G’ Let G’ be the new graph s.t. E(G’)= E(G’) – E(C’) = {1, 3, 4, 9, 10, 11, 14, 16, 17 } V(G’) = V(G’) – {all isolated vertices once edges in E(C’) have been removed} = {A, B, C, D, E, G, I, J}   C = B2C13I8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7 } V(C) = {B, C, I, H, E, F, G}

Iterate on C’ Pick a vertex w from V(C)V(G’) w = I E(G’)= {1, 3, 4, 9, 10, 11, 14, 16, 17 } V(G’) = {A, B, C, D, E, G, I, J} C = B2C13I8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7 } V(C) = {B, C, I, H, E, F, G} Note that G’ is now disconnected.. However, the algorithm iterates on the connected components of G’. Also, because edges are removed from G’ two at a time, ,the vertices in G’ still have even degrees. Therefore by the same reasoning as earlier, circuits starting from vertices in V(C)V(G’) can still be found.

Iterate on C’ Let C’ = circuit of G’ starting at w C’ = I11B1A10J9I Integrate C’ into C: C = B2C13I11B1A10J9I 8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 } V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on G’ Let G’ be the new graph s.t. E(G’)= E(G’) – E(C’) = {3, 4, 14, 16, 17 } V(G’) = V(G’) – {all isolated vertices once edges in E(C’) have been removed} = {C, D, E, I, J}   C = B2C13I11B1A10J9I 8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 } V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on C’ Pick a vertex w from V(C)V(G’) w = G E(G’)= {3, 4, 14, 16, 17 } V(G’) = {C, D, E, I, J} C = B2C13I11B1A10J9I 8H15E5F6G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 } V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on C’ Let C’ = circuit of G’ starting at w C’ = G16I17G Integrate C’ into C: C = B2C13I11B1A10J9I 8H15E5F6G16I17G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 , 16, 17} V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on G’ Let G’ be the new graph s.t. E(G’)= E(G’) – E(C’) = {3, 4, 14} V(G’) = V(G’) – {all isolated vertices once edges in E(C’) have been removed} = {C, D, E}   C = B2C13I11B1A10J9I 8H15E5F6G16I17G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 , 16, 17} V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on C’ Pick a vertex w from V(C)V(G’) w = C E(G’)= {3, 4, 14} V(G’) = {C, D, E} C = B2C13I11B1A10J9I 8H15E5F6G16I17G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9 , 16, 17} V(C) = {B, C, I, H, E, F, G, J, A}

Iterate on C’ Let C’ = circuit of G’ starting at w C’ = C3D4E14C Integrate C’ into C: C = B2C3D4E14C13I11B1A10J9I 8H15E5F6G16I17G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9, 16, 17, 3, 4, 14} V(C) = {B, C, I, H, E, F, G, J, A, D}

Iterate on G’ Let G’ be the new graph s.t. E(G’)= E(G’) – E(C’) =  V(G’) = V(G’) – {all isolated vertices once edges in E(C’) have been removed} =  C = B2C3D4E14C13I11B1A10J9I 8H15E5F6G16I17G7H12B E(C) = {2, 13, 8, 12, 15, 5, 6, 7, 11, 1, 10, 9, 16, 17, 3, 4, 14} V(C) = {B, C, I, H, E, F, G, J, A, D}