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.

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Graph-02.
Graph Theory: Euler Circuits Christina Mende Math 480 April 15, 2013.
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.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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.
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.
A traveling salesman has customers in 5 cities which we will call A, B, C, D, and E. The salesman needs to travel to all 5 cities with his trip starting.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Eulerizing Graph Ch 5.
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.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Spring 2015 Mathematics in Management Science Euler’s Theorems Euler Circuits & Paths ECT & EPT Burning Bridges Fleury’s Algorithm.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Euler Paths & Euler Circuits
5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead.
Spring 2015 Mathematics in Management Science Chinese Postman Problem What is CPP? CPP & ECs & EPs Fleury’s Algorithm Eulerization.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
Aim: What is an Euler Path and Circuit?
Mathematics in Management Science
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
AND.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
1.Quiz 5 due tomorrow afternoon in E309 from 1pm to 4pm. 2.Homework grades will be based on ten graded homework assignments (dropping the lowest one).
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
Chapter 6: Graphs 6.1 Euler Circuits
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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.
1) Find and label the degree of each vertex in the graph.
Fleury's Algorithm Euler Circuit Algorithm
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Çizge Algoritmaları.
Discrete Structures – CNS2300
The Definition of Algorithm
Spanning Trees Discrete Mathematics.
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Euler Paths & Euler Circuits
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph.
Genome Assembly.
5 The Mathematics of Getting Around
Excursions in Modern Mathematics Sixth Edition
5 The Mathematics of Getting Around
A path that uses every vertex of the graph exactly once.
5 The Mathematics of Getting Around
Euler and Hamilton Paths
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
5 The Mathematics of Getting Around
Presentation transcript:

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 simple. However, for a complicated graph with hundreds of vertices and edges, we need an algorithm. Algorithm: A set of procedural rules Examples –The instruction of assembling a new bike, –Recipe for baking an apple pie

Fleury’s Algorithm Finds an Euler circuit in a connected graph with no odd vertices. Finds an Euler path in a connected graph with two odd vertices. The idea behind the algorithm: Don’t burn your bridges behind you. AB Bridge You would only want to cross that bridge if you know that all edges in A have been traveled.

Fleury’s Algorithm Bridges are the last edges we want to cross to find an Euler circuit. The graph whose bridges we are supposed to avoid is not necessarily the original graph of the problem. Instead it is that part of the original graph which has yet to be traveled. Once we travel along an edge, we are done with it. Each time we traverse an edge, the untraveled part of the graph changes and its bridges are changing. We start with 2 copies of the graph: copy 1 for making decisions and copy 2 for record keeping.

Fleury’s Theorem Every time we traverse another edge, we erase it from copy 1 but mark (red) and level it with the appropriate number on copy 2. Copy 1 gets smaller and cop2 gets redder. Copy 1 helps us decide where to go next; copy 2 helps us reconstruct our trip. Copy 1 A B CD E F B CD E F Copy 2 Start at F (arbitrarily)

Fleury’s Theorem Copy 1 B CD E F A B CD E F Copy 2 Step 1: Travel from F to C Could have also travel from F to D A

Fleury’s Theorem Copy 1 B C D E F A B CD E F Copy 2 Step 2: Travel from C to D Could have also travel to A or to E 1 2 A

Fleury’s Theorem Copy 1 B C D E F A B CD E F Copy 2 Step 3: Travel from D to A Could have also travel to B but not to F – DF is a bridge! 1 2 A 3

Fleury’s Theorem Copy 1 B CD E F A B CD E F Copy 2 Step 4: Travel from A to C Could have also travel to E but not to B – AB is a bridge! 1 2 A 3 4

Fleury’s Theorem Copy 1 B CD EF A B CD E F Copy 2 Step 5: Travel from C to E There is no choice! 1 2 A 3 4 5

Fleury’s Theorem Copy 1 B CD E F Copy 2 Steps 6, 7, 8, and 9: Only one way to go at each step 1 2 A

Fleury’s Algorithm for finding Euler circuit First make sure that the graph is connected and all the vertices have even degree. Pick any vertex as the stating point When you have a choice, always choose to travel along an edge that is not a bridge of the yet-to-be-traveled part of the graph Label the edges in the order in which you travel them When you cannot travel any more, stop. You are done.

Fleury’s Algorithm for finding Euler path First make sure that the graph is connected and have exactly two vertices of odd degree. Pick any vertex of the two vertices of odd degree as the stating point. When you have a choice, always choose to travel along an edge that is not a bridge of the yet-to-be-traveled part of the graph Label the edges in the order in which you travel them When you cannot travel any more, stop. You are done. When steps are followed properly, the trip will guaranteed to end at the other vertex of odd degree.