5 the mathematics of getting around

23

Upload: tanner-mclean

Post on 30-Dec-2015

30 views

Category:

Documents


0 download

DESCRIPTION

5 The Mathematics of Getting Around. 5.1Euler Circuit Problems 5.2What Is a Graph? 5.3 Graph Concepts and Terminology 5.4Graph Models 5.5Euler’s Theorems 5.6Fleury’s Algorithm 5.7Eulerizing Graphs. Euler Paths and Circuits. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 5   The Mathematics of Getting Around
Page 2: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 2Copyright © 2010 Pearson Education, Inc.

5 The Mathematics of Getting Around

5.1 Euler Circuit Problems

5.2 What Is a Graph?

5.3 Graph Concepts and Terminology

5.4 Graph Models

5.5 Euler’s Theorems

5.6 Fleury’s Algorithm

5.7 Eulerizing Graphs

Page 3: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 3Copyright © 2010 Pearson Education, Inc.

Our story begins in the 1700s in the medieval town of Königsberg, in Eastern Europe. At the time, Königsberg was divided by a river into four separate sections, which were connected to one another by seven bridges. The old map of Königsberg shown on the next slide gives the layout of the city in 1735, the year a brilliant young mathematician named Leonhard Euler came passing through.

Euler Paths and Circuits

Page 4: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 4Copyright © 2010 Pearson Education, Inc.

Euler Paths and Circuits

Page 5: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 5Copyright © 2010 Pearson Education, Inc.

While visiting Königsberg, Euler was told of an innocent little puzzle of disarming simplicity: Is it possible for a person to take a walk around town in such a way that each of the seven bridges is crossed once, but only once? Euler, perhaps sensing that something important lay behind the frivolity of the puzzle, proceeded to solve it by demonstrating that indeed such a walk was impossible. But he actually did much more!

Euler Paths and Circuits

Page 6: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 6Copyright © 2010 Pearson Education, Inc.

Euler laid the foundations for what was at the time a totally new type of geometry, which he called geometris situs (“the geometry of location”). From these modest beginnings, the basic ideas set forth by Euler eventually developed and matured into one of the most important and practical branches of modern mathematics, now known as graph theory.

Euler Paths and Circuits

Page 7: 5   The Mathematics of Getting Around

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

The theme of this chapter is the question of how to create efficient routes for the delivery of goods and services–such as mail delivery, garbage collection, police patrols, newspaper deliveries, and, most important, late-night pizza deliveries–along the streets of a city, town, or neighborhood. These types of management science problems are known as Euler circuit problems.

Euler Paths and Circuits

Page 8: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 8Copyright © 2010 Pearson Education, Inc.

What is a routing problem? To put it in the most general way, routing problems are concerned with finding ways to route the delivery of goods and/or services to an assortment of destinations. The goods or services in question could be packages, mail, newspapers, pizzas, garbage collection, bus service, and so on. The delivery destinations could be homes, warehouses, distribution centers, terminals, and the like.

Routing Problems

Page 9: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 9Copyright © 2010 Pearson Education, Inc.

The existence question is simple: Is an actual route possible? For most routing problems, the existence question is easy to answer, and the answer takes the form of a simple yes or no. When the answer to the existence question is yes, then a second question–the optimization question–comes into play. Of all the possible routes, which one is the optimal route? Optimal here means “the best” when measured against some predetermined variable such as cost, distance, or time.

Two Basic Questions

Page 10: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 10Copyright © 2010 Pearson Education, Inc.

The common thread in all Euler circuit problems is what we might call, for lack of a better term, the exhaustion requirement–the requirement that the route must wind its way through . . . everywhere. Thus, in an Euler circuit problem, by definition every single one of the streets (or bridges, or lanes, or highways) within a defined area (be it a town, an area of town, or a subdivision) must be covered by the route. We will refer to these types of routes as exhaustive routes.

Euler Circuit Problems

Page 11: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 11Copyright © 2010 Pearson Education, Inc.

After a rash of burglaries, a private security guard is hired to patrol the streets of the Sunnyside neighborhood shown next. The security guard’s assignment is to make an exhaustive patrol, on foot, through the entire neighborhood. Obviously, he doesn’t want to walk any more than what is necessary. His starting point is the southeast corner across from the school (S)–that’s where he parks his car.

Example 5.1 Walking the ‘Hood’

Page 12: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 12Copyright © 2010 Pearson Education, Inc.

(This is relevant because at the end of his patrol he needs to come back to S to pick up his car.)

Example 5.1Walking the ‘Hood’

Page 13: 5   The Mathematics of Getting Around

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

Being a practical person, the security guard would like the answers to two questions. (1) Is it possible to start and end at S, cover every block of the neighborhood, and pass through each block just once? (2) If some of the blocks will have to be covered more than once, what is an optimal route that covers the entire neighborhood? (Optimal here means “with the minimal amount of walking.”)

Example 5.1 Walking the ‘Hood’

Page 14: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 14Copyright © 2010 Pearson Education, Inc.

A mail carrier has to deliver mail in the same Sunnyside neighborhood. The difference between the mail carrier’s route and the security guard’s route is that the mail carrier must make two passes through blocks with houses on both sides of the street and only one pass through blocks with houses on only one side of the street; and where there are no homes on either side of the street, the mail carrier does not have to walk at all.

Example 5.2 Delivering the Mail

Page 15: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 15Copyright © 2010 Pearson Education, Inc.

Example 5.2 Delivering the Mail

Page 16: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 16Copyright © 2010 Pearson Education, Inc.

In addition, the mail carrier has no choice as to her starting and ending points–she has to start and end her route at the local post office (P). Much like the security guard, the mail carrier wants to find the optimal route that would allow her to cover the neighborhood with the least amount of walking. (Put yourself in her shoes and you would do the same–good weather or bad, she walks this route 300 days a year!)

Example 5.2 Delivering the Mail

Page 17: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 17Copyright © 2010 Pearson Education, Inc.

Figure 5-2(a) shows an old map of the city of Königsberg and its seven bridges; Fig.5-2(b) shows a modernized version of the very same layout. We opened the chapter with this question: Can a walker take a stroll and cross each of the seven bridges of Königsberg without crossing any of them more than once?

Example 5.3 The Seven Bridges of Könisberg

Page 18: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 18Copyright © 2010 Pearson Education, Inc.

Example 5.3 The Seven Bridges of Königsberg

Page 19: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 19Copyright © 2010 Pearson Education, Inc.

This is a more modern version of Example 5.3. Madison County is a quaint old place, famous for its quaint old bridges. A beautiful river runs through the county, and there are four islands (A, B, C, and D) and 11 bridges joining the islands to both banks of the river (R and L) and one another (Fig.5-3). A famous photographer is hired to take pictures of each of the 11 bridges for a national magazine.

Example 5.4 The Bridges of Madison County

Page 20: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 20Copyright © 2010 Pearson Education, Inc.

Example 5.4 The Bridges of Madison County

Page 21: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 21Copyright © 2010 Pearson Education, Inc.

The photographer needs to drive across each bridge once for the photo shoot. Moreover, since there is a $25 toll (the locals call it a “maintenance tax”) every time an out-of-town visitor drives across a bridge, the photographer wants to minimize the total cost of his trip and to recross bridges only if it is absolutely necessary. What is the optimal (cheapest) route for him to follow?

Example 5.4 The Bridges of Madison County

Page 22: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 22Copyright © 2010 Pearson Education, Inc.

Figure 5-4 shows a few simple line drawings. The name of the game is to trace each drawing without lifting the pencil or retracing any of the lines. These kinds of tracings are called unicursal tracings. (When we end in the same place we started, we call it a closed unicursal tracing; when we start and end in different places, we call it an open unicursal tracing.) Which of the drawings in Fig. 5-4 can be traced with closed unicursal tracings? Which with only open ones?

Example 5.5 Child’s Play

Page 23: 5   The Mathematics of Getting Around

Excursions in Modern Mathematics, 7e: 5.1 - 23Copyright © 2010 Pearson Education, Inc.

Which can’t be traced (without cheating)? How can we tell if a unicursal tracing (open or closed) is possible? Good question. We will answer it in Section 5.5.

Example 5.5 Child’s Play