Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even...
-
Upload
dwight-black -
Category
Documents
-
view
225 -
download
2
Transcript of Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even...
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/1.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/2.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/3.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/4.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/5.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/6.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/7.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/8.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/9.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/10.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/11.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/12.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/13.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/14.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/15.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/16.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/17.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/18.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/19.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/20.jpg)
![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.](https://reader035.fdocuments.in/reader035/viewer/2022062314/56649ec05503460f94bcc537/html5/thumbnails/21.jpg)