Traveling Salesman Problems Nearest Neighbor Method

Slides:



Advertisements
Similar presentations
1. Find the cost of each of the following using the Nearest Neighbor Algorithm. a)Start at Vertex M.
Advertisements

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?
Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
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)
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
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.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
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.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
Minimum Spanning Trees CS 146 Prof. Sin-Min Lee Regina Wang.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
6.1 Hamilton Circuits and Hamilton Path
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Graph Theory Hamilton Paths Hamilton Circuits and.
AND.
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
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.
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.
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.
Graphs 1 Neil Ghani University of Strathclyde. Where are we …. We studied lists: * Searching and sorting a list Then we studied trees: * Efficient search.
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
6.4: The Brute-Force Algorithms
Weighted Graphs and traveling Salesperson problem
Shortest Path Problems
Traveling Salesman Problems
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
SULE SOLMAZ BEYZA AYTAR
HAMILTONIAN CIRCUIT ALGORITHMS
Section 14.3 Hamilton Paths, and Hamilton Circuits
Graph Theory Unit 2.
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
6.1 Hamilton Circuits and Hamilton Path
Graphs Part 2 Adjacency Matrix
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.
Classwork Worksheet Homework (day 67) worksheet
Hamilton Paths and Hamilton Circuits
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
Euler Paths and Euler Circuits
Hamilton Paths and Circuits
Shortest Route Problems
Presentation transcript:

Traveling Salesman Problems Nearest Neighbor Method Graph Theory Traveling Salesman Problems Nearest Neighbor Method

Hamilton Paths & Circuits Nearest Neighbor Method T. Serino Hamilton Paths & Circuits Using the Nearest Neighbor Method to solve a traveling salesman problem.

Hamilton Paths & Circuits T. Serino Hamilton Paths & Circuits The brute force method becomes very taxing as your problems contain more and more vertices. The Nearest Neighbor Method will come to an approximate solution much faster, but using the nearest neighbor method may not yield the true optimal circuit. For a true optimal solution, brute force method must be used.

Hamilton Paths & Circuits T. Serino Hamilton Paths & Circuits Steps: (to find an approximate solution to a traveling salesman problem) 1.  Represent the problem with a complete weighted graph. 2.  Identify the starting vertex. 3.  Travel along the least expensive (or shortest) path to the  next vertex. Circle the cost. 4.  Repeat step 3 without returning to a vertex for a second  time until you have visited all vertices and finally  returned to the starting vertex.

Hamilton Paths & Circuits T. Serino Hamilton Paths & Circuits Example: Starting at vertex J, use the nearest neighbor method to approximate the optimal circuit in the traveling salesman problem described by the following graph. The only vertex left is K. So our last path is to K and then back home to vertex J. Circle the corresponding costs. Edge LM is less expensive with a cost of 12. Circle the 12 and move on to vertex M. Start Starting at vertex J, we have three choices of which vertex to travel to first. From vertex L, we have only two choices remaining. The solution circuit is JLMKJ which costs 8+12+10+15 = 45 Of the three choices, edge JL is the least expensive with a cost of 8. Circle the number 8 and move to the next vertex, L.

Hamilton Paths & Circuits T. Serino Hamilton Paths & Circuits Try this: Starting at vertex a, use the nearest neighbor method to approximate the optimal circuit in the traveling salesman problem described by the following graph. Do not go on until you have competed the problem on your own. Do NOT go on until you have completed the problem!

Hamilton Paths & Circuits T. Serino Hamilton Paths & Circuits 75 50 75 50 + 125 375 The optimal circuit is AEDBCA. The optimal cost is 375.

athematical M D ecision aking