Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.

Slides:



Advertisements
Similar presentations
Copyright © 2005 Pearson Education, Inc. Slide 13-1.
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?
Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
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)
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
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 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 5 Number Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
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.
Graph Theory Topics to be covered:
Slide Copyright © 2009 Pearson Education, Inc. AND Active Learning Lecture Slides For use with Classroom Response Systems Chapter 14 Graph Theory.
Euler Paths & Euler Circuits
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.
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.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
© 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.
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.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Graph Theory Hamilton Paths Hamilton Circuits and.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
Prims Algorithm for finding a minimum spanning tree
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
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
Minimum Spanning Tree Chapter 13.6.
HAMILTONIAN CIRCUIT ALGORITHMS
Section 14.3 Hamilton Paths, and Hamilton Circuits
4-4 Graph Theory Trees.
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:

Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 15: Graph Theory 15.1 Basic Concepts 15.2 Euler Circuits 15.3 Hamilton Circuits and Algorithms 15.4 Trees and Minimum Spanning Trees

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 15-3 Hamilton Circuits and Algorithms

© 2008 Pearson Addison-Wesley. All rights reserved Hamilton Circuits and Algorithms Hamilton Circuits Minimum Hamilton Circuits Brute Force Algorithm Nearest Neighbor Algorithm

© 2008 Pearson Addison-Wesley. All rights reserved Hamilton Circuit A Hamilton circuit in a graph is a circuit that visits each vertex exactly once (returning to the starting vertex to complete the circuit).

© 2008 Pearson Addison-Wesley. All rights reserved Example: Identifying Hamilton Circuits A B C D FE Refer to the graph below. Which of the following are Hamilton circuits?

© 2008 Pearson Addison-Wesley. All rights reserved Example: Identifying Hamilton Circuits a) It is a Hamilton circuit for the graph. b) It is not a Hamilton circuit since it visits B more than once. c) It is not a Hamilton circuit since it does not visit all the vertices. Solution

© 2008 Pearson Addison-Wesley. All rights reserved Hamilton Circuits for Complete Graphs Any complete graph with three of more vertices has a Hamilton circuit.

© 2008 Pearson Addison-Wesley. All rights reserved When Hamilton Circuits Are the Same Hamilton circuits that differ only in their starting points will be considered to be the same circuit.

© 2008 Pearson Addison-Wesley. All rights reserved Number of Hamilton Circuits in a Complete Graph A complete graph with n vertices has (n – 1)! Hamilton circuits.

© 2008 Pearson Addison-Wesley. All rights reserved Example: Number of Circuits How many Hamilton circuits are in a complete graph with 5 vertices? Solution Here n = 5, so there are (5 – 1)! = 4! = 24 Hamilton circuits.

© 2008 Pearson Addison-Wesley. All rights reserved Minimum Hamilton Circuits In a weighted graph, a minimum Hamilton circuit is a Hamilton circuit with the smallest possible weight.

© 2008 Pearson Addison-Wesley. All rights reserved Brute Force Algorithm Step 1:Choose a starting point. Step 2: List all the Hamilton circuits with that starting point. Step 3:Find the total weight of each circuit. Step 4:Choose a Hamilton circuit with the smallest total weight.

© 2008 Pearson Addison-Wesley. All rights reserved Example: Brute Force Algorithm AB CD Find a minimum Hamilton circuit for the complete, weighted graph below

© 2008 Pearson Addison-Wesley. All rights reserved Example: Brute Force Algorithm AB CD Solution Weight of circuit Min. (opposite of 2) (opposite of 3) (opposite of 1)

© 2008 Pearson Addison-Wesley. All rights reserved Nearest Neighbor Algorithm Step 1:Choose a starting point. Call this vertex A. Step 2: Check all the edges joined to A, and choose one that has the smallest weight. Proceed along this edge to the next vertex. Step 3:At each vertex you reach, check the edges from there to vertices not yet visited. Choose the smallest weight. Proceed along this edge to the next vertex.

© 2008 Pearson Addison-Wesley. All rights reserved Nearest Neighbor Algorithm Step 4:Repeat Step 3 until you have visited all the vertices. Step 5: Return to the starting vertex.

© 2008 Pearson Addison-Wesley. All rights reserved Example: Nearest Neighbor The time it takes to travel between points (in minutes) is shown on the graph below. Use the nearest neighbor algorithm to approximate the least time to visit each location. A B CD E

© 2008 Pearson Addison-Wesley. All rights reserved Example: Nearest Neighbor Algorithm Solution StartCircuitWeight A40 B37 C D E51

© 2008 Pearson Addison-Wesley. All rights reserved Example: Nearest Neighbor Algorithm Solution (continued) From the information on the previous slide we would say that a route of 37 minutes should be about the least amount of time. Note that has a total weight of 36 minutes. All we can expect from the nearest neighbor algorithm is a reasonably good solution.