Section 14.3 Hamilton Paths, and Hamilton Circuits

Slides:



Advertisements
Similar presentations
Aim: Graph Theory – Hamilton Paths & Circuits Course: Math Literacy Do Now: Aim: How does a Hamilton path and circuit differ from Euler’s path and circuit?
Advertisements

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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
1 Chapter 15.3 Hamilton Paths and Hamilton Circuits Objectives 1.Understand the definitions of Hamilton paths & Hamilton circuits. 2.Find the number of.
Chapter 4 sec. 2.  A famous and difficult problem to solve in graph theory.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
Homework collection Read Pages 175 – 184 Page 188: 21 – 26, 29 – 36, 41 – 44, 47 – 49, 51, 52, 59, 62, 63.
Shortest path algorithm. Introduction 4 The graphs we have seen so far have edges that are unweighted. 4 Many graph situations involve weighted edges.
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.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
Slide Copyright © 2009 Pearson Education, Inc. AND Active Learning Lecture Slides For use with Classroom Response Systems Chapter 14 Graph Theory.
Graph Theory Hamilton Paths and Hamilton Circuits.
Ch. 15: Graph Theory Some practical uses Degree of separation- Hollywood, acquaintance, collaboration Travel between cities Konigsberg bridge Shortest.
Discrete Math Unit 6 Set Theory Number Theory Graph Theory.
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.
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
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. 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.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
 Graphs  Paths  Circuits  Euler. Traveling Salesman Problems.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
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.
1) Find and label the degree of each vertex in the graph.
By: Christophe Dufour Chrishon Adams Mischael Joseph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
The Traveling Salesman Starring: Mr. Brute Force Co Starring: Mrs. Sorted Edge Lord Nearest Neighbor.
Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem.
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,
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
Weighted Graphs and traveling Salesperson problem
Traveling Salesman Problems
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Routing Through Networks - 1
SULE SOLMAZ BEYZA AYTAR
HAMILTONIAN CIRCUIT ALGORITHMS
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
* Hamiltonian Circuits introduction
Graphs Chapter 11 Objectives Upon completion you will be able to:
Chapter 2: Business Efficiency Business Efficiency
4-4 Graph Theory Trees.
6.1 Hamilton Circuits and Hamilton Path
Discrete Math II Howon Kim
Applied Combinatorics, 4th Ed. Alan Tucker
A path that uses every vertex of the graph exactly once.
Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Classwork Worksheet Homework (day 67) worksheet
Hamilton Paths and Hamilton Circuits
Section 13.4 Trees.
Traveling Salesman Problems Nearest Neighbor Method
Presentation transcript:

Section 14.3 Hamilton Paths, and Hamilton Circuits

What You Will Learn Hamilton Paths Hamilton Circuits Complete Graphs Traveling Salesman Problems

Hamilton Paths A Hamilton path is a path that contains each vertex of a graph exactly once.

Hamilton Paths The graph shown has Hamilton path A, B, C, E, D. The graph also has Hamilton path C, B, A, D, E. Can you find some others?

Hamilton Paths The graph shown has Hamilton path A, B, C, F, H, E, G, D. The graph also has Hamilton path G, D, E, H, F, C, B, A. Can you find some others?

Hamilton Circuits A Hamilton circuit is a path that begins and ends at the same vertex and passes through all other vertices of the graph exactly one time.

Hamilton Circuits The graph shown has Hamilton circuit A, B, C, E, D, A. Can you find another?

Hamilton Circuits The graph shown has Hamilton circuit A, B, D, G, E, H, F, C, A. A Hamilton circuit starts and ends at the same vertex.

Complete Graph A complete graph is a graph that has an edge between each pair of its vertices.

Example 2: Finding Hamilton Circuits Determine a Hamilton circuit for the complete graph shown. Solution One is: A, B, C, D, E, A There are many more.

Number of Unique Hamilton Circuits in a Complete Graph The number of unique Hamilton circuits in a complete graph with n vertices is (n – 1)! , where (n – 1)! = (n – 1)(n – 2)(n – 3)…(3)(2)(1)

Example 4: American Idol Travel Steven Tyler, Jennifer Lopez, and Randy Jackson, the judges for the television show American Idol, are in Hollywood (H). They need to travel to the following cities to judge contestants’ auditions: San Antonio (SA), East Rutherford (ER), Birmingham (B), Memphis (M), and Seattle (S). In how many different ways can Steven, Jennifer, and Randy, traveling together, visit each of these cities and return to Hollywood?

Example 4: American Idol Travel Solution Represent this problem with the complete graph. 6 vertices represent the 6 locations. Edges represent the one-way flights between these locations.

Example 4: American Idol Travel Solution Determine the number of Hamilton circuits. There are (6 – 1)! = 5! = 5•4•3•2•1 = 120 different Hamilton circuits. There are 120 ways to start in Hollywood, visit the 5 cities and return to Hollywood.

Traveling Salesman Problems Complete graphs can represent cities and the process of traveling between these cities. Our goal in a traveling salesman problem is to find the least expensive or shortest way to visit each city once and return home. In terms of graph theory, our goal is to find the Hamilton circuit with the lowest associated cost or distance.

Traveling Salesman Problems The Hamilton circuit with the lowest associated cost (or shortest distance, etc.) is called the optimal solution. We will discuss two methods, the brute force method and the nearest neighbor method, for determining the optimal solution. A complete, weighted graph is a complete graph with the weights (or numbers) listed on the edges.

The Brute Force Method of Solving Traveling Salesman Problems To determine the optimal solution: 1. Represent the problem with a complete, weighted graph. 2. List all possible Hamilton circuits for this graph. 3. Determine the cost (or distance) associated with each of these Hamilton circuits. 4. The Hamilton circuit with the lowest cost (or shortest distance) is the optimal solution.

Example 5: Using the Brute Force Method Julienne Ward is the Southeast District Sales Director for Addison Wesley. On the next slide is a complete, weighted graph, whose numbers represent one-way fares, in dollars, between the cities. We want to use the brute force method to determine the optimal solution for Julienne to visit her regional sales offices.

Example 5: Using the Brute Force Method She will start in Orlando (O); visit offices in Atlanta (A), Memphis (M), and New Orleans (N); and then return to Orlando.

Example 5: Using the Brute Force Method Solution There are (4 – 1)! = 3! = 6 possible unique Hamilton circuits we need to examine for costs. We list these Hamilton circuits in the table on the next slide.

Example 5: Using the Brute Force Method

Example 5: Using the Brute Force Method Solution Hamilton circuits in column 1. Columns 2 – 5 contain the cost associated with each leg of the circuit. Last column contains the total cost of travel using the given circuit. Two circuits have the lowest cost, $289. These two Hamilton circuits are shown on the maps on the next slide.

Example 5: Using the Brute Force Method

Example 5: Using the Brute Force Method Solution The second circuit is the exact reverse order of the first circuit. Although these are different circuits, the cost is the same regardless of the direction flown. Either circuit provides Julienne with the least expensive way to visit each of her regional sales offices.

Nearest Neighbor Method Now we introduce a method for finding an approximate solution to a traveling salesman problem. Approximate solutions can be used in cases where determining the optimal solution is not reasonable. One method for finding an approximate solution is the nearest neighbor method.

Nearest Neighbor Method of Determining an Approximate Solution to a Traveling Salesman Problem To approximate a optimal solution: 1. Represent the problem with a complete, weighted graph. 2. Identify the starting vertex.

Nearest Neighbor Method of Determining an Approximate Solution to a Traveling Salesman Problem 3. Of all the edges attached to the starting vertex, choose the edge that has the smallest weight. This edge is generally either the shortest distance or the lowest cost. Travel along this edge to the second vertex.

Nearest Neighbor Method of Determining an Approximate Solution to a Traveling Salesman Problem 4. At the second vertex, choose the edge that has the smallest weight that does not lead to a vertex already visited. Travel along this edge to the third vertex.

Nearest Neighbor Method of Determining an Approximate Solution to a Traveling Salesman Problem 5. Continue this process, each time moving along the edge with the smallest weight until all vertices are visited. 6. Travel back to the original vertex.

Example 6: Using the Nearest Neighbor Method In Example 4, we discussed the American Idol judges’ plan to visit five cities in which auditions would take place and then return to Hollywood. Use the nearest neighbor method to determine an approximate solution for the judges’ visits. The one-way per person flight prices between cities are given in the table on the next slide.

Example 6: Using the Nearest Neighbor Method

Example 6: Using the Nearest Neighbor Method Solution Here’s the complete, weighted graph. Start at H, go to S. From S, go to SA. From SA, go to B. From B, go to ER. From ER, go to M. From M, go to H.

Example 6: Using the Nearest Neighbor Method Solution H to S, $108 S to SA, $119 SA to B, $274 B to ER, $258 ER to M, $104 M to H, $144 Total cost is $1007.

Example 6: Using the Nearest Neighbor Method Solution For comparison, here are 4 randomly chosen Hamilton circuits with costs.

Example 6: Using the Nearest Neighbor Method Solution From the table, we see that the Hamilton circuit H, ER, M, B, S, SA, H results in a per person cost of $965, which is less than the $1007. Thus, we see that the nearest neighbor method does not always produce the optimal solution.

Example 6: Using the Nearest Neighbor Method Solution The nearest neighbor method produces an approximation for the optimal solution. Without using the brute force method, we cannot determine if the Hamilton circuit H, ER, M, B, S, SA, H is the optimal solution.