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.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

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.
Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
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.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Homework collection Read Pages 175 – 184 Page 188: 21 – 26, 29 – 36, 41 – 44, 47 – 49, 51, 52, 59, 62, 63.
§ Algorithms, Algorithms, Algorithms Recall that an algorithm is a set of procedures or rules that, when followed, lead to a ‘solution’ to.
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.
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
The Traveling Salesman Problem Approximation
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Graph Theory Hamilton Paths and Hamilton Circuits.
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
The Traveling-Salesman Problem. Born August 4, 1805 in Dublin, Ireland Died September 2, 1865 in Dublin, Ireland Made many contributions to the Physics.
Discrete Math Unit 6 Set Theory Number Theory Graph Theory.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
© 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.
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.
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.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.3 Hamilton Paths, and Hamilton Circuits.
6.4: The Brute-Force Algorithms
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
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.
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.
Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem.
Turn in HW and Classwork sheet from last class. You have 10 minutes to complete the warm- up. After the warm-up, we will finish our notes on algorithms.
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.
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
Weighted Graphs and traveling Salesperson problem
HAMILTONIAN CIRCUIT ALGORITHMS
Discrete Math: Hamilton Circuits
Section 14.3 Hamilton Paths, and Hamilton Circuits
Euler Paths and Circuits
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Genome Assembly.
Chapter 2: Business Efficiency Business Efficiency
6.1 Hamilton Circuits and Hamilton Path
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.
Euler and Hamilton Paths
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,
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Traveling Salesman Problems Nearest Neighbor Method
Presentation transcript:

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 vertex once and only once… Hamilton Circuit: Travels to each vertex once and returns to the starting vertex. Hamilton Circuit: Travels to each vertex once and returns to the starting vertex. Weight: The cost of an edge Weight: The cost of an edge There is no correlation between having an Euler Path/ Circuit and a Hamilton path/circuit There is no correlation between having an Euler Path/ Circuit and a Hamilton path/circuit Discrete Math

6.2 Complete Graphs: Complete Graphs: Complete Graph: There exists an edge between every pair of vertices. Complete Graph: There exists an edge between every pair of vertices. N is the number of Vertices N is the number of Vertices Number of degrees for each vertex is N-1 Number of degrees for each vertex is N-1 Number of edges in a K N graph = N (N-1) / 2. Number of edges in a K N graph = N (N-1) / 2. Number of Hamilton Circuits: For N vertices (N - 1)! Number of Hamilton Circuits: For N vertices (N - 1)! Discrete Math

6.3 Travelling Salesman Problems (TSP): Travelling Salesman Problems (TSP): Find the shortest route for a salesman to travel from one point to the next, hitting all points once and returning to where he started. (Hamilton Circuit) Find the shortest route for a salesman to travel from one point to the next, hitting all points once and returning to where he started. (Hamilton Circuit) Weighted Graph: Each edge has a weight associated with it indicating length, time, or cost to travel that edge. Weighted Graph: Each edge has a weight associated with it indicating length, time, or cost to travel that edge. Discrete Math

6.4-5 Solving the TSP: Solving the TSP: Brute-Force method (Optimal but inefficient): List all possible Hamilton circuits and find the length of each. The smallest length will be the optimal solution. Brute-Force method (Optimal but inefficient): List all possible Hamilton circuits and find the length of each. The smallest length will be the optimal solution. Nearest Neighbor Algorithm (Not necessarily optimal, but efficient): Given a starting vertex, move to the next vertex using the cheapest length. Continue this gesture until you get back to where you started. Nearest Neighbor Algorithm (Not necessarily optimal, but efficient): Given a starting vertex, move to the next vertex using the cheapest length. Continue this gesture until you get back to where you started. Avoid visiting a vertex more than once. (No degrees > 2) Avoid visiting a vertex more than once. (No degrees > 2) Avoid mini-circuits. Avoid mini-circuits. Discrete Math

6.6-7 Repetitive Nearest Neighbor: Repetitive Nearest Neighbor: Approximate Algorithms: These are algorithms that produce solutions that are most of the time, reasonably close to the optimal solution. Approximate Algorithms: These are algorithms that produce solutions that are most of the time, reasonably close to the optimal solution. Repetitive Nearest Neighbor: Use the Nearest Neighbor Algorithm at each vertex, and choose the best out of those solutions. For N vertices, you will get N solutions. Repetitive Nearest Neighbor: Use the Nearest Neighbor Algorithm at each vertex, and choose the best out of those solutions. For N vertices, you will get N solutions. Discrete Math

6.8 The Cheapest Link Algorithm The Cheapest Link Algorithm Cheapest Link: Begin at the cheapest edge and continue to wiggle in these edges until you have completed the Hamilton Circuit. Cheapest Link: Begin at the cheapest edge and continue to wiggle in these edges until you have completed the Hamilton Circuit. Avoid the same mistakes as Nearest Neighbor Avoid the same mistakes as Nearest Neighbor Discrete Math

It has been decreed that all things previous need not make sense to the average Joe. However, if there is a Joe amongst you which is above average, I expect great things from sed Joe...