1 / 15

6 The Mathematics of Touring

6 The Mathematics of Touring. 6.1 Hamilton Paths and Hamilton Circuits 6.2 Complete Graphs? 6.3 Traveling Salesman Problems 6.4 Simple Strategies for Solving TSPs 6.5 The Brute-Force and Nearest-Neighbor Algorithms 6.6 Approximate Algorithms 6.7 The Repetitive Nearest-Neighbor Algorithm

bond
Download Presentation

6 The Mathematics of Touring

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 6 The Mathematics of Touring 6.1 Hamilton Paths and Hamilton Circuits 6.2 Complete Graphs? 6.3 Traveling Salesman Problems 6.4 Simple Strategies for Solving TSPs 6.5 The Brute-Force and Nearest-Neighbor Algorithms 6.6 Approximate Algorithms 6.7 The Repetitive Nearest-Neighbor Algorithm 6.8 The Cheapest-Link Algorithm

  2. Hamilton Paths and Hamilton Circuits In Chapter 5 we discussed Euler paths and Euler circuits. There, the name of thegame was to find paths or circuits that include every edge of the graph once (andonly once). We are now going to discuss a seemingly related game: finding pathsand circuits that include every vertex of the graph once and only once. Paths andcircuits having this property are called Hamilton paths and Hamilton circuits.

  3. HAMILTON PATHS & CIRCUITS ■A Hamilton path in a graph is a path that includes each vertex of the graphonce and only once. ■A Hamilton circuit is a circuit that includes each vertex of the graph onceand only once. (At the end, of course, the circuit must return to the startingvertex.)

  4. Euler vs. Hamilton Paths & Circuits On the surface, there is a one-word difference between Euler paths/circuitsand Hamilton paths/circuits: The former covers all edges; the latter covers all vertices. But oh my, what a difference that one word makes!

  5. Example 6.1 Hamilton versus Euler The figure shows a graph that (1) has Euler circuits (the vertices are alleven) and (2) has Hamilton circuits. One such Hamilton circuit is A, F, B, C,G, D, E, A – there are plenty more.

  6. Example 6.1 Hamilton versus Euler Note that if a graph has a Hamilton circuit, then it automatically has a Hamilton path–the Hamilton circuit canalways be truncated into a Hamilton path by dropping the last vertex of thecircuit. (For example, the Hamilton circuit A, F, B, C, G, D, E, A can be truncated into the Hamilton path A, F, B, C, G, D, E.)Contrast this with the mutually exclusive relationship between Euler circuits and paths: If a graph hasan Euler circuit it cannot have an Euler path and vice versa.

  7. Example 6.1 Hamilton versus Euler This figure shows a graph that (1) has no Euler circuits but does haveEuler paths (for example C, D, E, B, A, D) and (2) has no Hamilton circuits(sooner or later you have to go to C, and then you are stuck) but does haveHamilton paths (for example, A, B, E, D, C).This illustrates that a graph canhave a Hamilton path but no Hamilton circuit!

  8. Example 6.1 Hamilton versus Euler This figure shows a graph that (1) has neither Euler circuits nor paths (ithas four odd vertices) and (2) has Hamilton circuits (for example A, B, C, D, E,A – there are plenty more) and consequently has Hamilton paths (forexample, A, B, C, D, E).

  9. Example 6.1 Hamilton versus Euler This figure shows a graph that (1) has Euler circuits (the vertices are alleven) and (2) has no Hamilton circuits (no matter what, you are going tohave to go through E more than once!) but has Hamilton paths (for example,A, B, E, D, C).

  10. Example 6.1 Hamilton versus Euler This figure shows a graph that (1) has no Euler circuits but has Euler paths(F and G are the two odd vertices) and (2) has neither Hamilton circuits norHamilton paths.

  11. Example 6.1 Hamilton versus Euler This figure shows a graph that (1) has neither Euler circuits nor Eulerpaths (too many odd vertices) and (2) has neither Hamilton circuits norHamilton paths.

  12. Summary

  13. Euler versus Hamilton The lesson of Example 6.1 is that the existence of an Euler path or circuit ina graph tells us nothing about the existence of a Hamilton path or circuit in thatgraph. This is important because it implies that Euler’s circuit and path theoremsfrom Chapter 5 are useless when it comes to identifying Hamilton circuits andpaths. But surely, there must be analogous “Hamilton circuit and path theorems”that we could use to determine if a graph has a Hamilton circuit, a Hamilton path,or neither.

  14. Euler versus Hamilton Surprisingly, no such theorems exist. Determining when a given graphdoes or does not have a Hamilton circuit or path can be very easy, but it also canbe very hard–it all depends on the graph.

More Related