18
5.4 Graph Models (part I – simple graphs)

5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Embed Size (px)

Citation preview

Page 1: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

5.4 Graph Models(part I – simple graphs)

Page 2: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

• Graph is the tool for describing real-life situation.

• The process of using mathematical concept to solve real-life problems is called modeling

Page 3: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Example: Using graph to represent the picture of the seven bridges of Konigsberg

Vertices represent the banks and lands

Edges represent the bridges

Page 4: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Draw a graph to model this city

More examples: (textbook, page 170: Bridges of Madison County)(www.coursecompass.com, #23, 25)

Page 5: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

5.5 Euler’s Theorems

Page 6: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

• Who is Leonhard Euler?

Page 7: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Euler’s Theorem 1

a) If a graph has any odd vertices, then it cannot have an Euler Circuit

b) If a graph is connected and every vertex is an even vertex, then it has at least one Euler circuit

Page 8: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

• Euler’s Theorem 2

a) If a graph has more than two odd vertices then it cannot have an Euler path

b) If a graph is connected and has exactly two odd vertices, then it has an Euler path, starting at one odd vertex and ending at the other.

Page 9: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Determine if the graph has an Euler circuit, an Euler path or neither of these

No, neither

Yes, an Euler path

Yes, an Euler circuit

Page 10: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

• Euler’s Theorem 3

a) The sum of the degrees of all the vertices of a graph equals twice the number of edges.

b) A graph always has an even number of odd vertices

Page 11: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

5.4 Graph Models(part II –graphs)

Page 12: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Model for a security guard

Page 13: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Model for the mail carrier

Page 14: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

• Look at page 177: Models for security guard and mail carrier

Page 15: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

5.6Fleury’s Algorithm

Page 16: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

Algorithm on finding an Euler’s path or circuit

• Use a vertex to start (make sure you choose the odd vertex if the graph has an Euler path)

• Do not go through any bridge of the un-traveled part of the graph unless it is the only way you can go

Page 17: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

1 2 3 4 5 6 7 8

A B

D

FE

C

Page 18: 5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life

1 2 3

10

4 5 6 7 8 9

1514131211

2721201918

16 17

2625242322