Presentation is loading. Please wait.

Presentation is loading. Please wait.

Excursions in Modern Mathematics, 7e: 6.1 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.

Similar presentations


Presentation on theme: "Excursions in Modern Mathematics, 7e: 6.1 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits."— Presentation transcript:

1

2 Excursions in Modern Mathematics, 7e: 6.1 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits 6.2Complete Graphs? 6.3 Traveling Salesman Problems 6.4Simple Strategies for Solving TSPs 6.5The Brute-Force and Nearest-Neighbor Algorithms 6.6Approximate Algorithms 6.7The Repetitive Nearest-Neighbor Algorithm 6.8The Cheapest-Link Algorithm

3 Excursions in Modern Mathematics, 7e: 6.1 - 3Copyright © 2010 Pearson Education, Inc. In Chapter 5 we discussed Euler paths and Euler circuits. There, the name of the game was to find paths or circuits that include every edge of the graph once (and only once). We are now going to discuss a seemingly related game: finding paths and circuits that include every vertex of the graph once and only once. Paths and circuits having this property are called Hamilton paths and Hamilton circuits. Hamilton Paths and Hamilton Circuits

4 Excursions in Modern Mathematics, 7e: 6.1 - 4Copyright © 2010 Pearson Education, Inc. ■ A Hamilton path in a graph is a path that includes each vertex of the graph once and only once. ■ A Hamilton circuit is a circuit that includes each vertex of the graph once and only once. (At the end, of course, the circuit must return to the starting vertex.) HAMILTON PATHS & CIRCUITS

5 Excursions in Modern Mathematics, 7e: 6.1 - 5Copyright © 2010 Pearson Education, Inc. On the surface, there is a one-word difference between Euler paths/circuits and Hamilton paths/circuits: The former covers all edges; the latter covers all vertices. But oh my, what a difference that one word makes! Euler vs. Hamilton Paths & Circuits

6 Excursions in Modern Mathematics, 7e: 6.1 - 6Copyright © 2010 Pearson Education, Inc. The figure shows a graph that (1) has Euler circuits (the vertices are all even) and (2) has Hamilton circuits. Example 6.1Hamilton versus Euler One such Hamilton circuit is A, F, B, C, G, D, E, A – there are plenty more.

7 Excursions in Modern Mathematics, 7e: 6.1 - 7Copyright © 2010 Pearson Education, Inc. Note that if a graph has a Hamilton circuit, then it automatically has a Hamilton path–the Hamilton circuit can always be truncated into a Hamilton path by dropping the last vertex of the circuit. (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 has an Euler circuit it cannot have an Euler path and vice versa. Example 6.1Hamilton versus Euler

8 Excursions in Modern Mathematics, 7e: 6.1 - 8Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has no Euler circuits but does have Euler 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 Example 6.1Hamilton versus Euler have Hamilton paths (for example, A, B, E, D, C). This illustrates that a graph can have a Hamilton path but no Hamilton circuit!

9 Excursions in Modern Mathematics, 7e: 6.1 - 9Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has neither Euler circuits nor paths (it has four odd vertices) and (2) has Hamilton circuits (for example A, B, C, D, E, A – there are plenty Example 6.1Hamilton versus Euler more) and consequently has Hamilton paths (for example, A, B, C, D, E).

10 Excursions in Modern Mathematics, 7e: 6.1 - 10Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has Euler circuits (the vertices are all even) and (2) has no Hamilton circuits (no matter what, you are going to have to go through E more than Example 6.1Hamilton versus Euler once!) but has Hamilton paths (for example, A, B, E, D, C).

11 Excursions in Modern Mathematics, 7e: 6.1 - 11Copyright © 2010 Pearson Education, Inc. 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 nor Hamilton paths. Example 6.1Hamilton versus Euler

12 Excursions in Modern Mathematics, 7e: 6.1 - 12Copyright © 2010 Pearson Education, Inc. This figure shows a graph that (1) has neither Euler circuits nor Euler paths (too many odd vertices) and (2) has neither Hamilton circuits nor Hamilton paths. Example 6.1Hamilton versus Euler

13 Excursions in Modern Mathematics, 7e: 6.1 - 13Copyright © 2010 Pearson Education, Inc. Summary

14 Excursions in Modern Mathematics, 7e: 6.1 - 14Copyright © 2010 Pearson Education, Inc. The lesson of Example 6.1 is that the existence of an Euler path or circuit in a graph tells us nothing about the existence of a Hamilton path or circuit in that graph. This is important because it implies that Euler’s circuit and path theorems from Chapter 5 are useless when it comes to identifying Hamilton circuits and paths. 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. Euler versus Hamilton

15 Excursions in Modern Mathematics, 7e: 6.1 - 15Copyright © 2010 Pearson Education, Inc. Surprisingly, no such theorems exist. Determining when a given graph does or does not have a Hamilton circuit or path can be very easy, but it also can be very hard–it all depends on the graph. Euler versus Hamilton


Download ppt "Excursions in Modern Mathematics, 7e: 6.1 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits."

Similar presentations


Ads by Google