Section 5.1 Modeling with Graphs
Objectives
- Model real-world scenarios using graphs.
Example 5.1.1. The Five-Room Problem.
One day, you suddenly gain the power to walk through walls. Is there a way for you to walk through each wall of the building below (given its floor plan), such that you start and end in the same room (or the outside)? Assume you can visit any room as many times as you want, but cannot walk through each wall more than once.
For instance, the following path through the building does not pass through all walls (the walls in red are not used).
Example 5.1.2. Find a Trail on a Graph.
In the graph below, can you trace a path starting and ending at the same vertex that uses each edge exactly once? (Vertices can be repeated.)
Checkpoint 5.1.3. Small Wedding Reception.
An about-to-be-married couple made the mistake of asking their 8 guests to indicate on their RSVPs who they would not like to sit with at the dinner reception. There will be two tables of four seats each (it is a really small venue).
Given the guestlist below, is there a way to seat the guests so that everyone is satisfied?
Guest | Does not want to sit beside | Guest | Does not want to sit beside |
Angela | Donald | Giuseppe | Shinzo |
Boris | Emmanuel, Justin | Justin | |
Donald | Angela, Emmanuel, Justin | Shinzo | Donald |
Emmanuel | Boris | Vladimir | Emmanuel |
Checkpoint 5.1.4. Medicine Delivery.
You are working as a delivery person for a company selling medicinal herbs online. On April 20th, a particularly busy day, you have to make deliveries to Brampton, Burlington, Cambridge, and Guelph; the company has its distribution center in Mississauga, which is where you live as well. Given the table of distances below, can you determine the route that will take you from the distribution center in Mississauga, to each city exactly once, then back home, such that total distance traveled is minimized?
distance (km) | Mississauga | Brampton | Burlington | Cambridge | Guelph |
Mississauga | 22 | 41 | 72 | 72 | |
Brampton | 22 | 60 | 75 | 65 | |
Burlington | 41 | 60 | 49 | 50 | |
Cambridge | 72 | 75 | 49 | 25 | |
Guelph | 72 | 65 | 50 | 25 |
Checkpoint 5.1.5. Counting Collaborators.
Six graph theorists are at a conference. During a coffee break, each of them starts counting how many coauthors they have among the group (so 0 means that person has not written a paper with anyone in the group; 5 means that person has written a paper with everyone in the group). When they scribble the numbers down on a napkin, they get:
Prove that this is impossible, so someone must have made a mistake counting.