Top Banner
Graph Theory Chapter 4 sec. 1
28

Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Dec 17, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Graph TheoryChapter 4 sec. 1

Page 2: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Koenigsberg bridge problemIt is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Page 3: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Page 4: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

It was a popular pastime for the citizens of Koenigsberg to start in one section of the city and take a walk visiting all sections of the city, trying to cross each bridge exactly once and to return to the original starting point.

Page 5: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

How did it start?In 1735, a Swiss Mathematician Leonhard Euler became the first person to work in graph theory by solving the Koenigsburg bridge problem.

Discovered a simple way to determine when a graph can be traced.

Page 6: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

DefinitionTrace-to begin at some vertex and draw the entire graph without lifting your pencil and without going over any edge more than once.

Page 7: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

On a piece of paper draw these 2 pictures.Chap 4 sec 1

a) b)

Page 8: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Exercise 1Place your pencil on any dot and trace the figure completely without lifting your pencil and without tracing any part of any line twice.

Which of the two can be done?

Page 9: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Solution

Fig. A can be traced.

Fig. B cannot be traced.

Page 10: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

DefinitionsGraph- consists of a finite set of pointsVertices – are points on the graphEdges- are lines that join pairs of verticesConnected- if it is possible to travel from

any vertex to any other vertex of the graph by moving along successive edges.

Bridge- in a connected graph is an edge such that if it were removed the graph is no longer connected.

Page 11: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

A A E

C D

B F

Connected graph, the vertex CD is a bridge

A

D E

B C

Nonconnected graph

Page 12: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Odd and Even VertexOdd – The graph is odd if it is an endpoint of an odd number of edges of the graph.

Even- The graph is even if it is an endpoint of an even number of edges of the graph.

Page 13: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Determine which vertices are even and which are odd.

A

B D C

Page 14: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Solution

Vertex A is oddVertex B is oddVertex C is oddVertex D is odd

Page 15: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Determine which vertices are odd and even

A

C D

B

Page 16: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Solution

Vertex A is oddVertex B is oddVertex C is evenVertex D is even

Page 17: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Euler’s TheoremA graph can be traced if it is connected and has zero or two odd vertices.

Page 18: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Which of the graphs can be traced? A B A B

C

C

D E

D

Page 19: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Solution

Fig. 1 Cannot be traced. (all odd)

Fig. 2 Can be traced by Euler’s theorem.

Page 20: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

NoteIf a graph has 2 odd vertices, the tracing must begin at one of these and end at the other.

If all vertices are even, then the graph tracing must begin and end at the same vertex. It does not matter at which vertex this occurs.

Page 21: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

DefinitionsPath- in a graph is a series of consecutive edges in which no edge is repeated.

Euler path- A path containing all the edges of a graph.

Page 22: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Euler circuit- An Euler path that begins and ends at the same vertex.

Eulerian graph-A graph with all even vertices contains an Euler circuit

Page 23: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Find Euler’s path and Euler’s circuit for the two fig. below.

A B

A C

B E

D E

C D F G

H I

Page 24: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

SolutionFig. 1 (star)

Euler’s path - ADBECAEuler ‘s circuit - ADBECA

Fig. 2 Euler’s path – CABCDEHIDFGEuler’s circuit – There is none, because G and C

are both odd vertices, we must begin at one and end at the other.

Page 25: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

What is Euler’s circuit used for?How many of you ride the pubic transportation?

Efficient routes.Map Coloring

Page 26: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Eulerizing a Graph1. The graph must have all even vertices.

2. If a graph has an odd vertex, then we will add some edges to make that vertex an even vertex.

3. We want to begin and end at the same vertex.

4. We do not want to travel on the same edge twice.

Page 27: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Find and efficient route.

Page 28: Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

Thank you