Presentation is loading. Please wait.

Presentation is loading. Please wait.

B cd a e f g h i j k One answer is; a-g-c-b-f-e-i-k-h-d-j-a Year 2 Warm Up 10/21/10 State a Hamilton Circuit for the following figure:

Similar presentations


Presentation on theme: "B cd a e f g h i j k One answer is; a-g-c-b-f-e-i-k-h-d-j-a Year 2 Warm Up 10/21/10 State a Hamilton Circuit for the following figure:"— Presentation transcript:

1 b cd a e f g h i j k One answer is; a-g-c-b-f-e-i-k-h-d-j-a Year 2 Warm Up 10/21/10 State a Hamilton Circuit for the following figure:

2 Directed and Weighted Graphs and Tournaments Objective: S2C4PO1

3 Weighted Paths and Circuits _________ network paths and circuits have values along the edges. To find the shortest network path you look for the path that travels the shortest distance but goes to all the vertices. To find the shortest network circuit you look for the circuit that travels the shortest distance, remember a network circuit will start and end at the same point. Weighted

4 g f e d c b a 3 6 4 5 4 4 4 3 5 1.What is the shortest distance from point a to e? 2.Name the shortest Euler path. How long is it? 3. Is there an Euler Circuit?No Ex: CBDCAGDEFG = 38 GDEFGACDBC = 38 All Euler Paths will have the same length. 10 Applications: Trucking Routes, Toll Roads, Fastest routes for running errands, Resistance on power lines

5 Directed Graphs The graphs we have looked at so far have been ______________. ___________ give the _____ a ______ that must be traveled from one vertex to another. Think about the difference between a regular 2-way street (undirected) and a 1-way street (directed). undirected graphs Directed graphs edges direction

6 Yesterday you found several different Euler Circuits in this figure. Let’s look at how adding direction to a graph changes the number of solutions we can find. A B C D E F Our first possible solution from yesterday was: D,E,F,A,D,C,A,B,D Now that the graph is directed, is that still a solution? NO Which solutions work now that the graph is directed? ACDABDEFA ABDEFACDA

7 Tournament Graphs Directed graphs are often used in looking at ____________. Specifically, round-robin tournaments where each person/team plays every other person/team with no ties. In a tournament graph, the vertices correspond to the players. The edge between each pair of players is oriented from the _______ to the _____. tournaments winner loser

8 Tournaments 1.Assume that the vertex-edge graph below is a representation of a Mathlete round-robin tournament. 2.The winner of a tournament is defined by any vertex that comes ____ in a _____________. Josie Alessandro Salim Amanda Amanda is the winner of the Tournament!!! first Hamilton Path 1.The arrow always points from the winner to the loser of the game. 2.A Hamilton Path touches every vertex once and only once.

9 Tournaments 1.You can also put the information in the graph into a matrix to find the winner. 2.A win is worth 1 and a loss is worth 0. K J D A K A A D D J J K X X X X 111 1 1 0 0 00 000 = 3 = 1 = 0 A is the winner of the tournament!

10 Examples Which team wins the tournament? Ex. 1 Perry HS Hamilton HS Chandler HS Perry HS GO PUMAS! Ex. 2 Team A Team B Team C Team D Team E Team D

11 Creating a Tournament Graph There is a “HORSE” tournament between Shaq, Kobe, Dwayne, and Kevin. The tournament is a round robin. Create a tournament graph that has Dwayne winning the tournament and Shaq beating Kobe in their one-on-one game. Shaq Kevin Kobe Dwayne Step 1: Create a graph that has a vertex for every player. Step 2: Mark the given information.

12 Creating a Tournament Graph Shaq Kevin Kobe Dwayne Step 3: The Winner of the tourney is the start of a Hamilton Path. So starting at Dwayne, make a directed path that touches every vertex once. There are a few ways you can do this. Step 4: Fill in the other arrows carefully. Make sure the “winner” has the most wins and that there aren’t any other Hamilton paths that start with another player.

13 Summary… How do you determine the winner of a tournament using a vertex edge graph?

14 Homework: Directed Graph/Tournament WS #2


Download ppt "B cd a e f g h i j k One answer is; a-g-c-b-f-e-i-k-h-d-j-a Year 2 Warm Up 10/21/10 State a Hamilton Circuit for the following figure:"

Similar presentations


Ads by Google