Excursions in Modern Mathematics, 7e: 6.1 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Graph-02.
Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
The Mathematics of Touring
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.
Traveling-Salesman Problems
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Euler and Hamilton Paths
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.
Can you find a way to cross every bridge only once?
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Euler and Hamilton Paths
The Traveling-Salesman Problem. Born August 4, 1805 in Dublin, Ireland Died September 2, 1865 in Dublin, Ireland Made many contributions to the Physics.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
CS 200 Algorithms and Data Structures
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Graphs, Puzzles, & Map Coloring
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.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.1, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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.
Introduction to Euler graph Nguyen Ngoc Trung Hochiminh University of Pedagogy
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
AND.
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.
© 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
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.
1) Find and label the degree of each vertex in the graph.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Discrete Math: Hamilton Circuits
This unit is all about Puzzles Games Strategy.
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Copyright © 2013 Pearson Education, Inc. All rights reserved
A path that uses every vertex of the graph exactly once.
Konigsberg- in days past.
5 The Mathematics of Getting Around
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
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
Presentation transcript:

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits 6.2Complete Graphs? 6.3 Traveling Salesman Problems 6.4Simple Strategies for Solving TSPs 6.5The Brute-Force and Nearest-Neighbor Algorithms 6.6Approximate Algorithms 6.7The Repetitive Nearest-Neighbor Algorithm 6.8The Cheapest-Link Algorithm

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In Chapter 5 we discussed Euler paths and Euler circuits. There, the name of the game was to find paths or circuits that include every edge of the graph once (and only once). We are now going to discuss a seemingly related game: finding paths and circuits that include every vertex of the graph once and only once. Paths and circuits having this property are called Hamilton paths and Hamilton circuits. Hamilton Paths and Hamilton Circuits

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ A Hamilton path in a graph is a path that includes each vertex of the graph once and only once. ■ A Hamilton circuit is a circuit that includes each vertex of the graph once and only once. (At the end, of course, the circuit must return to the starting vertex.) HAMILTON PATHS & CIRCUITS

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. On the surface, there is a one-word difference between Euler paths/circuits and Hamilton paths/circuits: The former covers all edges; the latter covers all vertices. But oh my, what a difference that one word makes! Euler vs. Hamilton Paths & Circuits

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The figure shows a graph that (1) has Euler circuits (the vertices are all even) and (2) has Hamilton circuits. Example 6.1Hamilton versus Euler One such Hamilton circuit is A, F, B, C, G, D, E, A – there are plenty more.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Note that if a graph has a Hamilton circuit, then it automatically has a Hamilton path–the Hamilton circuit can always be truncated into a Hamilton path by dropping the last vertex of the circuit. (For example, the Hamilton circuit A, F, B, C, G, D, E, A can be truncated into the Hamilton path A, F, B, C, G, D, E.) Contrast this with the mutually exclusive relationship between Euler circuits and paths: If a graph has an Euler circuit it cannot have an Euler path and vice versa. Example 6.1Hamilton versus Euler

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has no Euler circuits but does have Euler paths (for example C, D, E, B, A, D) and (2) has no Hamilton circuits (sooner or later you have to go to C, and then you are stuck) but does Example 6.1Hamilton versus Euler have Hamilton paths (for example, A, B, E, D, C). This illustrates that a graph can have a Hamilton path but no Hamilton circuit!

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has neither Euler circuits nor paths (it has four odd vertices) and (2) has Hamilton circuits (for example A, B, C, D, E, A – there are plenty Example 6.1Hamilton versus Euler more) and consequently has Hamilton paths (for example, A, B, C, D, E).

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has Euler circuits (the vertices are all even) and (2) has no Hamilton circuits (no matter what, you are going to have to go through E more than Example 6.1Hamilton versus Euler once!) but has Hamilton paths (for example, A, B, E, D, C).

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has no Euler circuits but has Euler paths (F and G are the two odd vertices) and (2) has neither Hamilton circuits nor Hamilton paths. Example 6.1Hamilton versus Euler

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has neither Euler circuits nor Euler paths (too many odd vertices) and (2) has neither Hamilton circuits nor Hamilton paths. Example 6.1Hamilton versus Euler

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Summary

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The lesson of Example 6.1 is that the existence of an Euler path or circuit in a graph tells us nothing about the existence of a Hamilton path or circuit in that graph. This is important because it implies that Euler’s circuit and path theorems from Chapter 5 are useless when it comes to identifying Hamilton circuits and paths. But surely, there must be analogous “Hamilton circuit and path theorems” that we could use to determine if a graph has a Hamilton circuit, a Hamilton path, or neither. Euler versus Hamilton

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Surprisingly, no such theorems exist. Determining when a given graph does or does not have a Hamilton circuit or path can be very easy, but it also can be very hard–it all depends on the graph. Euler versus Hamilton