4 - Route inspection Flashcards
Define a Eulerian graph.
A graph which contains a trail that includes every edge and starts and finished at the same vertex. This is an Eulerian circuit. Any connected graph whose vertices are all even is Eulerian.
Define a semi-Eulerian graph.
A graph which contains a trail that includes every edge but start and finished at different vertices. Any connected graph with exactly two odd vertices is semi-Eulerian.
In what case, is the length of the shortest route equal to the the total weight of the network.?
If all vertices are even. (A Eulerian graph.)
What does the route inspection (Chinese postman) algorithm seek to do?
Find the shortest route in a network that traverses every arc at least once and returns to its starting point.
What is the length of the shortest route which covers every arc equal to, when there are exactly 2 odd nodes?
Total weight of network + shortest route between two odd nodes
Describe the route inspection algorithm.
- Identify all nodes with odd degree
- Consider all possible complete pairings of these nodes
- Select complete pairing that has the smallest sum
- Add a repeat of the arcs indicated by this pairing to the network.