Presentation is loading. Please wait.

Presentation is loading. Please wait.

Graphs and Euler cycles Let Maths take you Further…

Similar presentations


Presentation on theme: "Graphs and Euler cycles Let Maths take you Further…"— Presentation transcript:

1 Graphs and Euler cycles Let Maths take you Further…

2 What is a graph? A graph is a set of points called vertices (or nodes) connected by lines called edges (or arcs) In a graph a line from point A to point B is considered to be the same thing as a line from point B to point A vertices edges

3 Graphs Traversable graphs Which of these graphs can be drawn without taking your pen off the paper or repeating any edges?

4 Graphs Yes - start and finish in different places What is significant about the results? Can you explain why? Yes - start and finish in the same place No Semi-EulerianEulerian

5 Graphs Some important ideas The degree of a vertex is the number of edges that meet at that vertex Can you draw a graph with 3 odd vertices? What about 5 odd vertices? Why are there are always an even number of odd vertices?

6 What is the sum of the degrees of the vertices for each graph? 12 What do you notice if you compare these totals to the number of edges in the graph? 20

7 Graphs The sum of the degrees of all the vertices in a graph is twice the number of edges. This is more formally called the Handshaking Theorem and is written Σ deg v = 2e

8 Konigsberg bridges Is it possible to find a route that Starts and finishes at the same place? Crosses each bridge exactly once?

9 Konigsberg bridges The Königsberg bridges is a famous mathematics problem inspired by an actual place and situation. The city of Königsberg on the River Pregel in Prussia (now Kaliningrad, Russia) includes two large islands which were connected to each other and the mainland by seven bridges. The citizens of Königsberg allegedly walked about on Sundays trying to find a route that crosses each bridge exactly once, and return to the starting point.

10 Simplify the problem Konigsberg bridges

11 Model it as a graph where the edges represent the bridges and the vertices represent the islands. Konigsberg bridges

12 In 1736 Leonard Euler proved that it was not possible because all the vertices of the graph are odd.

13 A problem A postman starts his rounds at the depot. He needs to deliver letters along the all the streets and return to the depot. What is the shortest route he can take? Depot 5 2 7 6 3 5 9 4 8 5 4 6

14 Identify the odd nodes D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A

15 Investigate possible pairings D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A BC, DE, FG has length 9+8+2=19

16 Investigate possible pairings D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A BC, EF, DG has length 9+4+5=18

17 Investigate possible pairings D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A BF, CE, DG has length 3+5+5=13

18 Investigate possible pairings D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A No other pairings are sensible (Why?). BF, CE, DG is the shortest pairing found. BC, DE, FG has length 9+8+2=19 BC, EF, DG has length 9+4+5=18 BF, CE, DG has length 3+5+5=13

19 Solution D 5 2 7 6 3 5 9 4 8 5 4 6 G F E C B A Total length of all the edges plus the lengths of BF, CE and DG = 64 + 13 = 77 A possible route is: DGFAGDABFBCECFED

20 Algorithms An algorithm is a set of instructions for solving a type of problem Finding cycles that go along every edge at least once is called a Route Inspection problem The algorithm for finding the shortest such cycle was published in 1962 by the Chinese mathematician Mei Ko Kwan (so it is sometimes called the Chinese postman problem) Can you think of some more situations where this algorithm would be useful?


Download ppt "Graphs and Euler cycles Let Maths take you Further…"

Similar presentations


Ads by Google