4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE An Euler.
Chapter 8 Topics in Graph Theory
Chapter 9 Graphs.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
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.
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.
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.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
2.2 Hamilton Circuits Hamilton Circuits Hamilton Paths Tucker, Applied Combinatorics, Section 2.2, Tamsen Hunter.
1 Section 8.4 Connectivity. 2 Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,
Euler and Hamilton Paths
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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
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,
Euler Paths & Euler Circuits
(CSC 102) Lecture 29 Discrete Structures. Graphs.
Euler and Hamilton Paths
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.
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.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Aim: What is an Euler Path and Circuit?
Lecture 10: Graph-Path-Circuit
Chap. 11 Graph Theory and Applications 1. Directed Graph 2.
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.
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.
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
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
Introduction to Graph Theory
1) Find and label the degree of each vertex in the graph.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
Euler and Hamiltonian Graphs
Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
Graph Terms By Susan Ott. Vertices Here are 7 vertices without any edges Each Vertex is labeled a different color and number.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
An Introduction to Graph Theory
Çizge Algoritmaları.
Euler and Hamiltonian Graphs
Euler and Hamiltonian Graphs
More NP-complete Problems
Euler Paths and Circuits
Discrete Structures – CNS2300
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
Konigsberg- in days past.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Euler and Hamiltonian Graphs
Euler Paths and Euler Circuits
Warm Up – Tuesday Find the critical times for each vertex.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/17 - Monday A) List the set of vertices.
A Survey of Mathematics with Applications
Presentation transcript:

4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5

Euler circuits & paths An Euler circuit of a graph G is a simple circuit that contains every edge of G An Euler path of graph G is a simple path containing every edge of G

Example 1 There are several Euler circuits in this graph, including (a, b, e, c, d, e, a) and (d, c, e, b, a, e, d), for example. Any path that doesn’t start at e could be an Euler circuit. This graph does not contain an Euler circuit, but does contain Euler paths. (b, e, d, c, a, b, d, a) and (a, c, d, e, b, d, a, b) are examples.

Example 1 This graph contains neither an Euler circuit nor an Euler path. Starting from any of the “outside” vertices, as in the graph above, you can create a circuit, but you will have to skip at least 3 edges. Starting from e, you would have to skip even more edges to make a circuit. In seeking an Euler path starting from any “outside” vertex, you can go up or down the diagonal and all the way around, but you would have to reuse one of the “inside” edges to get to one of the others inside, and then have to reuse that one to get to the last one.

Necessary and Sufficient Conditions for Euler Circuits If a connected multigraph has an Euler circuit, every vertex must have an even degree Starting from any vertex, you “touch” that vertex once; returning to it, you “touch” it one more time - so the initial vertex has degree 2 Each remaining vertex is “touched” twice each time you pass through it (by the incoming and outgoing edges), so each must have even degree

Necessary and Sufficient Conditions for Euler Circuits If all vertices in a connected multigraph have even degree, then the graph contains an Euler circuit Theorem: A connected multigraph has an Euler circuit if and only if each of its vertices has even degree

An algorithm for constructing Euler circuits Make an initial circuit by starting at an arbitrarily chosen vertex, making a path that returns to this vertex (step A) Remove those edges already used, leaving a subgraph (step B) While edges remain in the subgraph, create a circuit, as in step A, starting from a vertex that was incident with an edge in the circuit from step A follow step B with the new circuit The algorithm concludes when no edges are left (meaning we have an Euler circuit) or no more circuits can be constructed from the remaining edges (meaning we don’t)

Example 2: applying algorithm Starting from vertex a, create the following circuit: a, e, b, a Removing the edges that were used in the first step, we have the following subgraph Starting from vertex e, we can easily construct a circuit, for example: e, c, d, e Since no edges remain, we know the graph has an Euler circuit

Example 3: applying algorithm Starting from a, create a circuit, for example: a, e, d, a Removing the edges used, we get the subgraph: Starting again from e, we can create the circuit e, c, b, e, which leaves behind the subgraphs below: Since neither of these can form a circuit without reusing the edge, we can conclude there isn’t an Euler circuit in the graph

Finding Euler paths A connected multigraph has an Euler path but not an Euler circuit if and only if it has exactly two vertices of odd degree The graph at left has two vertices (a and b) of odd degree; thus, it contains an Euler path (but not an Euler circuit)

Hamilton Paths & Circuits Hamilton path: a path that passes through every vertex in a graph exactly once Hamilton circuit: a circuit that passes through every vertex in a graph exactly once

Hamilton Paths & Circuits Although there is no simple algorithm to determine the existence of a Hamilton circuit or path, several theorems are known to give sufficient conditions for their existence, including the following: If G is a connected simple graph with n vertices where n  3, then G has a Hamilton circuit if the degree of each vertex is at least n/2

Example 3 Using the theorem on the previous slide, we 4/17/2017 Example 3 Using the theorem on the previous slide, we can observe that there are 5 vertices, so n  3; furthermore, each vertex has at least deg(2): therefore, a Hamilton circuit may exist. One such circuit is: a, c, d, e, b, a Note that the theorem only gives a sufficient condition for Hamilton circuits. The graph at left satisfies the theorem, but it is impossible to construct a circuit from any vertex without passing through vertex d more than once. ch8.5

Section 8.5 Euler & Hamilton Paths