5.7 eulerizing graphs. euler circuit and euler path do not always exist. there are many graphs (in...

8
5.7 Eulerizing Graphs

Upload: agnes-singleton

Post on 16-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

5.7 Eulerizing Graphs

Page 2: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

• Euler circuit and Euler path do not always exist .

• There are many graphs (in real life) that have more than 2 odd vertices.

• Instead of finding a route that travels along the edges of a graph and passes through each and every edge of the graph at least once, we want to find a a route that re-cross the fewest number of edges.

Page 3: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Eulerizing of a graph

• Eulerizing is the process of changing all odd vertices to even vertices by duplicating appropriate edges

Page 4: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Eulerizing GraphsEulerizing Graphs

First step is to identify the odd vertices.

Second step is to add duplicate copies of edges to create all even vertices

OPTIMAL ROUTE: duplicate the fewest number of edges

NOT an optimal route

illegal route

Page 5: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Eulerizing the following graphs

1)

2)

Page 6: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Semi-eulerizing of a graph

• Semi-eulerizing is the process of leaving 2 odd vertices on the graph unchanged and changing other odd vertices to even vertices.

Page 7: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Semi-eulerizing GraphsSemi-eulerizing Graphs

First step is to identify the odd vertices.

Second step is leave out 2 odd vertices and add duplicate copies of edges to create even vertices

OPTIMAL ROUTE:duplicate the fewest number of edges

NOT an optimal route

illegal route

Page 8: 5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead

Semi eulerizing the following graphs

1)

2)