Excursions in Modern Mathematics Sixth Edition

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

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
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
E ULERIZING G RAPHS Notes 25 - Section 5.7. E SSENTIAL L EARNINGS Students will understand and be able to use Eulerization to find optimal exhaustive.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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.
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.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs Chapter 10.
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.
Graph Theory Topics to be covered:
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
Chinese postman problem
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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.
Examples Euler Circuit Problems Unicursal Drawings Graph Theory
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.1, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
Chapter 6: Graphs 6.1 Euler Circuits
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
An Introduction to Graph Theory
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Çizge Algoritmaları.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Euler Circuits and Paths
Euler Paths & Euler Circuits
5 The Mathematics of Getting Around
CS100: Discrete structures
Excursions in Modern Mathematics Sixth Edition
5 The Mathematics of Getting Around
Konigsberg- in days past.
Euler Circuits and Paths
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Section 14.1 Graphs, Paths, and Circuits
CHAPTER 15 Graph Theory.
Graphs, Paths, and Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
A Survey of Mathematics with Applications
5 The Mathematics of Getting Around
5 The Mathematics of Getting Around
Presentation transcript:

Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum

Chapter 5 Euler Circuits The Circuit Comes to Town

Euler Circuits Outline/learning Objectives To identify and model Euler circuit and Euler path problems. To understand the meaning of basic graph terminology.

Euler Circuits Closing Task Given a graph, I will identify the defining characteristics of a graph and identify any paths.

5.1 Euler Circuit Problems Euler Circuits 5.1 Euler Circuit Problems

Euler Circuits What is a routing problem? Existence question Is an actual route possible? Optimization question Of all the possible routes, which one is the optimal route?

Euler Circuits We will answer both the existence and optimization questions for a special class of routing problems known as Euler circuit problems. The common thread is what we call the exhaustion requirement.

Euler Circuits Most applications of Euler Circuits are to optimizing routes. Start and finish at same location covering each path only once. Start and finish at different locations, some paths must be crossed in both directions. Start and finish at different locations, each route only crossed once.

Euler Circuits Why is optimizing routes so important? What are you optimizing?

Euler Circuits The name of the game is to trace each drawing without lifting the pencil or retracing any of the lines. These kinds of tracings are called unicursal tracings.

Euler Circuits When we end in the same place we started, we call it a closed unicursal tracing; when we start and end in different places, we call it an open unicursal tracing. .

Euler Circuits 5.2 Graphs

Euler Circuits A graph is a picture consisting of: Vertices- dots Edges- lines The edges do not have to be straight lines. But they have to connect two vertices. Loop- an edge connecting a vertex back with itself

Euler Circuits Graphs A graph is a structure that defines pairwise relationships within a set to objects. The objects are the vertices, and the pairwise relationships are the edges: X is related to Y if and only if XY is an edge.

Euler Circuits Name the vertices. Name the edges. {A, B, C, D, E, F} Name the edges. {AB,AD, BC, BE, ED, CD} F is an isolated vertex CD has multiple edges.

Euler Circuits Adjacent vertices. Degree of vertex Odd vertex Edge joins them. Degree of vertex # of edges Odd vertex Odd # of edges Even vertex Even # of edges.

Euler Circuits This is considered a single graph, even though it consists of two separate, disconnected pieces. Such graphs are called disconnected graph, and the individual pieces are called the components of the graph..

Euler Circuits A Graph with No Edges? Yes, its possible. Without edges, every vertex of the graph is an isolated vertex.

Euler Circuits Adjacent vertices. Are the following adjacent? B and E C and D E and E

Euler Circuits Adjacent edges. Two edges are adjacent if they share a common vertex.

Euler Circuits Degree of a vertex. The degree of a vertex is the number of edges at that vertex. When there is a loop at the vertex, the loop contributes twice.

Euler Circuits Odd and even vertices. An odd vertex is a vertex of odd degree; an even vertex is a vertex of even degree. The graph has two even vertices (D and E) and six odd vertices (all the others).

Euler Circuits Odd and even vertices. An odd vertex is a vertex of odd degree; an even vertex is a vertex of even degree. Name the degree of each vertex and state whether it is odd or even.

Euler Circuits The deg(A) = 3 odd deg(B) = 5 odd deg(C) = 3 odd deg(D) = 2 even deg(E) = 4 even deg (F) = 3 odd deg (G) = 1 odd deg (H) = 1 odd

Euler Circuits Paths. A path is a sequence of vertices with the property that each vertex in the sequence is adjacent to the next one. The key requirement in a path is that an edge can be part of a path only once.

Euler Circuits Paths (continued). The number of edges in the path is called the length of the path. A, B, E, D. This is a path from vertex A to D, consisting of the edges AB, BE, and ED. The length of this path is 3.

Euler Circuits Circuits. A circuit has the same definition as a path, but has the additional requirement that the trip starts and ends at the same vertex.

Euler Circuits Connected graphs. A graph is connected, if given any two vertices, there is a path joining them. A graph that is not connected is said to be disconnected. A disconnected graph is made up of separate components.

Euler Circuits Bridges. Sometimes in a connected graph there is an edge such that if we were to erase it, the graph would become disconnected—such an edge is called a bridge. BF, FG, and FH are bridges.

Euler Circuits Euler paths. An Euler path is a path that passes through every edge of a graph once and only once. The graph shown in (a) does not have an Euler path; the graph in (b) has several Euler paths. One of them is L,A,R,D,A,R,D,L,A.

Euler Circuits Euler circuits. An Euler circuit is a circuit that passes through every edge of a graph. One of them is L,A,R,D,A,R,D,L,A,L. Note that if a graph has an Euler circuit it cannot have an Euler path, and vice versa.

Euler Circuits 5.4 Graph Models

Euler Circuits The notion of using a mathematical concept to describe and solve a real-life problem is called modeling. Below is an example of how we can use graphs to model a problem.

Euler Circuits The only thing that truly matters to the solution of this problem is the relationship between land masses (islands and banks) and bridges. Which land masses are connected to each other and by how many bridges?

Euler Circuits This information is captured by the red edges in (b). We end up with the graph model shown in (c). The four vertices of the graph represent each of the four land masses; the edges represent the seven bridges.

Euler Circuits 5.5 Euler’s Theorems

Euler Circuits Euler’s Circuit Theorem If a graph is connected, and every vertex is even, then it has an Euler circuit (at least one, usually more). If a graph has any odd vertices, then it does not have an Euler circuit.

Euler Circuits The graph in (a ) cannot have an Euler circuit because it is disconnected. The graph in (b) has odd vertices (C is one of them, there are others). The graph in (c) is connected and all the vertices are even. The graph does have Euler circuits.

Euler Circuits Euler’s Path Theorem If a graph is connected, and has exactly two odd vertices, then it has an Euler path (at least one, usually more). Any such path must start at one of the odd vertices and end at the other one. If a graph has more than two odd vertices, then it cannot have an Euler path.

Euler Circuits Euler’s Sum of Degrees Theorem The sum of the degrees of all the vertices of a graph equals twice the number of edges (and therefore is an even number). A graph always has an even number of odd vertices.

Euler Circuits 5.6 Fleury’s Algorithm

Euler Circuits Fleury’s Algorithm for Finding an Euler Circuit (Path) Preliminaries. Make sure that the graph is connected and either (1) has no odd vertices (circuit), or (2) has two odd vertices (path).

Euler Circuits Fleury’s Algorithm for Finding an Euler Circuit (Path) Start. Choose a starting vertex. [ In case (1) this can be any vertex; in case (2) it must be one of the two odd vertices.]

Euler Circuits Fleury’s Algorithm for Finding an Euler Circuit (Path) Intermediate steps. At each step, if you have a choice, don’t choose a bridge of the yet-to-be-traveled part of the graph. However, if you have only one choice, take it.

Euler Circuits Fleury’s Algorithm for Finding an Euler Circuit (Path) Intermediate steps. At each step, if you have a choice, don’t choose a bridge of the yet-to-be-traveled part of the graph. However, if you have only one choice, take it.

Euler Circuits Fleury’s Algorithm for Finding an Euler Circuit (Path) End. When you can’t travel any more, the circuit (path) is complete. [In case (1) you will be back at the starting vertex; in case (2) you will end at the other odd vertex.]

Identify Euler Path or Circuit

Example #1

Euler Circuits 5.7 Eulerizing Graphs

Eulerizing Graphs Process of adding edges in order to make the graph an Euler Circuit.

Eulerizing Graphs Step 1: Identify the odd vertices. This graph has eight odd vertices (B,C,E,F,H,I,K,and L), shown in red.

Eulerizing Graphs Step 2: Add the minimum amount of duplicate edges to adjacent vertices, to make each vertex even.

Eulerizing Graphs Note: Duplicate edges are not really “new” edges! They are where we will retrace an edge These edges are called Deadhead Edges.

Eulerizing Graphs With the four duplicate edges (BC,EF,HI,and KL) indicating the deadhead blocks where a second pass is required. The total length of this route is 28 blocks (24 blocks in the grid plus 4 deadhead blocks).

Semi- Eulerizing Graphs Process of adding edges in order to make the graph an Euler Path.

Semi-Euleriztion Step 1: Identify the all odd vertices. Choose two that will remain unchanged (starting & ending points)

Semi-Euleriztion Step 2: Change the other odd vertices into even vertices by adding the least amount of edges.

Example #2 Create a graph that models the map below. The Chamber of Commerce wants to come up with a walking tour of the city that crosses all the bridges, yet minimizes duplicate routes. Your job is to create two different options. One, in which the tourists would start and end at the same location and another that starts and ends in different locations.

Example # 2