Lecture 52 Section 11.2 Wed, Apr 26, 2006

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
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.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Eulerian Graphs CSE 331 Section 2 James Daly. Reminders Project 3 is out Covers graphs Due Friday.
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.
Copyright © Cengage Learning. All rights reserved.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graph Theory Topics to be covered:
(CSC 102) Lecture 29 Discrete Structures. Graphs.
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.
CS 200 Algorithms and Data Structures
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
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
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
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.
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
Chapter 6: Graphs 6.1 Euler Circuits
Introduction to Graph Theory
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Euler and Hamiltonian Graphs
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
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,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
Week 10 - Wednesday.  What did we talk about last time?  Counting practice  Pigeonhole principle.
An Introduction to Graph Theory
Euler and Hamiltonian Graphs
Euler and Hamiltonian Graphs
Chapter 5 Fundamental Concept
Euler Paths and Circuits
Konigsberg’s Seven Bridges
Discrete Structures – CNS2300
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory What is a graph?.
Representing Graphs Wade Trappe.
Euler and Hamilton Paths
Euler and Hamiltonian Graphs
Section 14.1 Graphs, Paths, and Circuits
Applied Combinatorics, 4th Ed. Alan Tucker
CHAPTER 15 Graph Theory.
Graphs, Paths, and Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Presentation transcript:

Lecture 52 Section 11.2 Wed, Apr 26, 2006 Paths and Circuits Lecture 52 Section 11.2 Wed, Apr 26, 2006

The Seven Bridges of Königsberg In the city of Königsberg, two branches of the Pregel River came together, with an island at their junction.

The Seven Bridges of Königsberg There were seven bridges crossing the river at various places.

The Seven Bridges of Königsberg The challenge was to start at one point, cross each bridge exactly once, and return to the starting point. ?

Euler’s Solution Euler abstracted the bridges as a graph with four vertices and seven edges.

Euler’s Solution Each vertex represents a land mass and each edge represents a bridge. North Shore South Shore Island Peninsula

Walks and Paths A walk from vertex v to vertex w is a finite alternating sequence of adjacent vertices and edges from v to w: v0 e1 v1 e2 … en – 1 vn – 1 en vn, where v0 = v and vn = w. A path from v to w is a walk that does not repeat any edge.

Walks and Paths A simple path is a path that does not repeat any vertices. A closed walk is a walk that starts and ends at the same vertex. A circuit is a closed path. A simple circuit is a circuit that does not repeat any vertex.

Synopsis walk = from A to B, no restrictions. path = walk, no repeated edge. closed = from A to A. circuit = closed walk. simple = no repeated vertex.

Euler Circuits An Euler circuit is a circuit that contains every vertex and every edge of the graph. The problem of the Seven Bridges of Königsberg is to find an Euler circuit.

Connected Graphs A graph is connected if, for every pair of vertices v and w, there is a walk from v to w. A connected component of a graph is a maximal connected subgraph.

Euler’s Solution Theorem: A graph has an Euler circuit if and only if it is connected and every vertex has even degree. Thus, an Euler circuit over the Seven Bridges of Königsberg does not exist.

The Two Bridges of Ashland At Randolph-Macon College, they have been trying to solve the Two Bridges of Ashland problem for decades. ? King’s Dominion RMC I-95

Proof Proof (): Suppose a graph G has an Euler circuit. Let v  V(G). Then as we travel the circuit, each time we pass through v, we “use up” two of the edges incident to v. When we finish the circuit, we have used all the edges incident to v.

Proof Thus, v had an even number of edges. Obviously, G must be connected.

Proof Proof (): Now suppose that G is connected and that every vertex of G has even degree. Choose a vertex v at which to begin. deg(v) > 0 since G is connected, so follow one of the edges incident to v. Let w be the next vertex. We used one of w’s edges to get there.

Proof w has even degree, so there is at least one more edge available that we can follow. This happens at every vertex that we visit. Thus, the circuit is forced to terminate only when we return to the starting vertex v. This procedure alone does not necessarily produce an Euler circuit.

Proof Suppose there are edges that were not used. Follow the original circuit until a vertex is reached that is incident to one of the unused edges. Apply the original procedure to produce a circuit that starts and ends at this vertex. “Splice” it into the original circuit.

Proof Continue in this way, splicing circuits into the existing circuit, until there are no unused edges remaining. The result is an Euler circuit.

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Example

Euler Paths Theorem: A graph G has an Euler path from v to w if G is connected, v and w have odd degree, and all other vertices have even degree. Proof: Add an edge from v to w. Then the graph has an Euler circuit. Remove the new edge from the circuit.

Hamiltonian Circuits A Hamiltonian circuit is a simple circuit that includes every vertex of the graph. The Traveling Salesman Problem seeks a Hamiltonian circuit of minimal length.

Hamiltonian Circuits Theorem: If a graph G has a nontrivial Hamiltonian circuit, then G has a subgraph H such that V(H) = V(G). H is connected. |E(H)| = |V(G)|. deg(v) = 2 for all v  V(H). These conditions are necessary, but not sufficient.

Hamiltonian Circuits The following graph does not have a Hamiltonian circuit.