Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.

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?
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
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)
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.3, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Homework collection Read Pages 175 – 184 Page 188: 21 – 26, 29 – 36, 41 – 44, 47 – 49, 51, 52, 59, 62, 63.
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.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 2.3, Slide 1 Set Theory 2 Using Mathematics to Classify Objects.
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. 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.
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.
Discrete Math Unit 6 Set Theory Number Theory Graph Theory.
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.
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.
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.
 Graphs  Paths  Circuits  Euler. Traveling Salesman Problems.
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.
Graphs and MSTs Sections 1.4 and 9.1. Partial-Order Relations Everybody is not related to everybody. Examples? Direct road connections between locations.
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.
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.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 2.2, Slide 1 Set Theory 2 Using Mathematics to Classify Objects.
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.
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
HAMILTONIAN CIRCUIT ALGORITHMS
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
Spanning Trees Discrete Mathematics.
Section 14.3 Hamilton Paths, and Hamilton Circuits
This unit is all about Puzzles Games Strategy.
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.
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,
Warm Up – Monday Calculate the Redundancy of the above network.
Traveling Salesman Problems Nearest Neighbor Method
Presentation transcript:

Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4

Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 2 The Traveling Salesperson Problem 4.2 Understand how to solve the traveling salesperson problem using Hamilton circuits Determine all Hamilton circuits in a complete graph (continued on next slide)

Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 3 The Traveling Salesperson Problem 4.2 Solve the traveling salesperson problem using the brute force algorithm Solve the traveling salesperson problem using the best edge algorithm

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 4 The Traveling Salesperson Problem Danielle lives in Philadelphia and must make visits next week to branch offices in New York City, Cleveland, Atlanta, and Memphis. To determine which would be her cheapest trip, she has obtained prices of flights between each pair of cities. What sequence of visits minimizes the cost?

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 5 Hamilton Paths Before we tackle Danielle’s problem, we need some additional tools.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 6 Hamilton Paths Example: Find a Hamiltonian path. (solution on next slide)

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 7 Hamilton Paths Solution: answers may vary.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 8 Finding Hamilton Circuits Examples:

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 9 Finding Hamilton Circuits Often, we need to find all the Hamilton circuits in a graph. This is easy for complete graphs. Tree diagrams help us find Hamilton circuits systematically.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 10 Finding Hamilton Circuits Example: Find all Hamilton circuits in K 4. Solution: Path ABCDA is a Hamilton circuit in K 4. We will consider path BCDAB to be the same path because it passes through the same vertices in the same order and the only difference is that we are beginning and ending at vertex B rather than vertex A. So, we will assume that all circuits begin at A. (continued on next slide)

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 11 Finding Hamilton Circuits Solution: Use a tree diagram to list all Hamilton circuits systematically. (continued on next slide)

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 12 Finding Hamilton Circuits Solution:

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 13 Finding Hamilton Circuits

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 14 Solving the TSP by Brute Force In solving a TSP problem by brute force, we consider all possible Hamiltonian circuits.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 15 Solving the TSP by Brute Force Example: Use the weighted graph to find the sequence of cities for Danielle to visit that will minimize her total travel cost.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 16 Solving the TSP by Brute Force Solution: Use brute force to explore all possible circuits:

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 17 Solving the TSP by Brute Force

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 18 The Nearest Neighbor Algorithm There are algorithms that give good approximations to the TSP.

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 19 The Nearest Neighbor Algorithm Example: Use the nearest neighbor algorithm to schedule Danielle’s trip. Solution:

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 20 The Best Edge Algorithm

Copyright © 2014, 2010, 2007 Pearson Education, Inc.Section 4.2, Slide 21 The Best Edge Algorithm Example: Use the best edge algorithm to schedule Danielle’s trip. Solution: = 1200 Notice that this circuit has a weight of 1,200, which also makes it the best solution to Danielle’s problem.