Top Banner
Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: • all even vertices. • 2 odd vertices. • Starting and ending at the same point.
21

Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Jan 01, 2016

Download

Documents

Dwight Black
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: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Chinese Postman Algorithm

Aims:To be able to use the Chinese Postman Algorithm for:

• all even vertices.• 2 odd vertices.

• Starting and ending at the same point.•Starting and ending at different points.

Page 2: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 3: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 4: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 5: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 6: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 7: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 8: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 9: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 10: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Non-Eulerian Semi-Eulerian Eulerian

Page 11: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Notes

• Eulerian Trails:– All vertices are even. –All edges used only

once.– Starting and ending at

the same place.

• Semi-Eulerian Trails:– 2 odd vertices.– All edges used only

once.– Start and end at the

odd vertices.

• Non-Eulerian Trails:–More than 2 odd vertices.

– Some edges will need to be used twice.

Page 12: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

All Even Vertices Example

Page 13: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

2 Odd Vertices Example

Page 14: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Question 1

Page 15: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Question 2

Page 16: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Question 3

Page 17: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

Question 4

Page 18: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

4 Odd Vertices

• This is the most common type of exam question.

• You need to consider the weight all possible pairs of odd vertices.

• Choose the two pairs with the shortest total weight.

• You can then use this result to solve the problem.

Page 19: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.

4 Odd Vertices Example

Possible Pairs Shortest Paths Weights

and and + =

and and + =

and and + =

Page 20: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Page 21: Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.