Excursions in Modern Mathematics, 7e: 6.2 - 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

Chapter 8 Topics in Graph Theory
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Graph-02.
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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
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.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Math for Liberal Studies.  Here is a map of the parking meters in a small neighborhood  Our goal is to start at an intersection, check the meters, and.
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.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
The Traveling-Salesman Problem. Born August 4, 1805 in Dublin, Ireland Died September 2, 1865 in Dublin, Ireland Made many contributions to the Physics.
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.
© 2010 Pearson Prentice Hall. All rights reserved. 1 §15.3, Hamilton Paths and Circuits.
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.
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.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.3 Hamilton Paths, and Hamilton Circuits.
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.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
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, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
6.1 Hamilton Circuits and Hamilton Path
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Graph Theory Hamilton Paths Hamilton Circuits and.
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.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and 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.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
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
Can you draw this picture without lifting up your pen/pencil?
* Hamiltonian Circuits introduction
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
6.1 Hamilton Circuits and Hamilton Path
5 The Mathematics of Getting Around
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Copyright © Cengage Learning. All rights reserved.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Hamilton Paths and Hamilton Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Hamilton Paths and Circuits
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. Sometimes the question, Does the graph have a Hamilton circuit? has an obvious yes answer, and the more relevant question turns out to be, How many different Hamilton circuits does it have? In this section we will answer this question for an important family of graphs called complete graphs. How Many Hamilton Circuits?

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. One of the key properties of K N is that every vertex has degree N – 1. This implies that the sum of the degrees of all the vertices is N(N – 1), and it follows from Euler’s sum of degrees theorem that the number of edges in K N is N(N – 1)/2. For a graph with N vertices and no multiple edges or loops, N(N – 1)/2 is the maximum number of edges possible, and this maximum can only occur when the graph is K N. How Many Hamilton Circuits?

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ K N has N(N – 1)/2 edges. ■ Of all graphs with N vertices and no multiple edges or loops, K N has the most edges. NUMBER OF EDGES IN K N Because K N has a complete set of edges (every vertex is connected to every other vertex), it also has a complete set of Hamilton circuits – you can travel the vertices in any sequence you choose and you will not get stuck.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. If we travel the four vertices of K 4 in an arbitrary order, we get a Hamilton path. For example, C, A, D, B is a Hamilton path [Fig. (a)]; D, C, A, B is another one [Fig. (b)]; and so on. Example 6.2Hamilton Circuits in K 4

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Each of these Hamilton paths can be closed into a Hamilton circuit–the path C, A, D, B begets the circuit C, A, D, B, C [Fig. (c)]; the path D, C, A, B begets the circuit D, C, A, B, D [Fig. (d)]; and so on. Example 6.2Hamilton Circuits in K 4

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. It looks like we have an abundance of Hamilton circuits, but it is important to remember that the same Hamilton circuit can be written in many ways. For example, C, A, D, B, C is the same circuit as A, D, B, C, A – the figure describes either one–the only Example 6.2Hamilton Circuits in K 4 difference is that in the first case we used C as the reference point; in the second case we used A as the reference point.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. There are two additional sequences that describe this same Hamilton circuit: D, B, C, A, D (with reference point D) and B, C, A, D, B (with reference point B). Taking all this into account, there are six different Hamilton Example 6.2Hamilton Circuits in K 4 circuits in K 4, as shown in the Table on the next slide (the table also shows the four different ways each circuit can be written).

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Example 6.2Hamilton Circuits in K 4

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Let’s try to list all the Hamilton circuits in K 5. For simplicity, we will write each circuit just once, using a common reference point – say A. (As long as we are consistent, it doesn’t really matter which reference point we pick.) Each of the Hamilton circuits will be described by a sequence that starts and ends with A, with the letters B, C, D, and E sandwiched in between in some order. There are 4  3  2  1 = 24 different ways to shuffle the letters B, C, D, and E, each producing a different Hamilton circuit. Example 6.2Hamilton Circuits in K 5

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The complete list of the 24 Hamilton circuits in K 5 is shown in the table on the next slide. The table is laid out so that each of the circuits in the table is directly opposite its mirror-image circuit (the circuit with vertices listed in reverse order). Although they are close relatives, a circuit and its mirror image are not considered the same circuit. Example 6.2Hamilton Circuits in K 5

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The complete list of the 24 Hamilton circuits in K 5. Example 6.2 Hamilton Circuits in K 5

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Here are three of the 24 Hamilton circuits in K 5. Example 6.2Hamilton Circuits in K 5

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. “What is the number of Hamilton circuits in K N ?” boils down to the equivalent question, “How many different ways are there to rearrange the (N – 1) vertices? The answer is given by the number 1  2  3  …  (N – 1), called the factorial of (N – 1) and written as (N – 1)! for short. Number of Hamilton Circuits

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ K N has N(N – 1)/2 edges. ■ Of all graphs with N vertices and no multiple edges or loops, K N has the most edges. NUMBER OF HAMILTON CIRCUITS IN K N The table on the next slide shows the number of Hamilton circuits in complete graphs with up to N = 20 vertices.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The main point of the table is to convince you that as we increase the number of vertices, the number of Hamilton circuits in the complete graph goes through the roof. Even a relatively small graph such as has K 8 more than five thousand Hamilton circuits. Double the number of vertices to K 16 and the number of Hamilton circuits exceeds 1.3 trillion. Double the number of vertices again to K 32 and the number of Hamilton circuits – about eight billion trillion trillion – is so large that it defies ordinary human comprehension. Number of Hamilton Circuits

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