4. Route Inspection Flashcards
Define the term Eulerian graph/network
One which contains a trail that includes every edge and starts and finishes at the same vertex (called an Eulerian circuit)
When is a graph Eulerian?
When the graph is connected and the graph’s vertices are all even
Define the term semi-Eulerian graph/network
One which contains a trail that includes every edge but starts and finishes at different vertices
When is a graph semi-Eulerian?
When the graph is connected and exactly two vertices are odd
What is the route inspection algorithm used for?
Finding the shortest route in a network that traverses every arc at least once and returns to its starting point
If all the vertices in a network have an even degree, what is the length of the shortest route?
The total weight of the network
If a network has exactly 2 odd vertices, what is the length of the shortest route?
The total weight of the network plus the length of the shortest path between the two odd vertices
If a network has more than two odd vertices, what do you do?
Consider all the possible pairings of the odd vertices
What are the steps to the route inspection algorithm?
- Identify any vertices with an odd degree
- Consider all possible complete pairings of these vertices
- Select the complete pairing that has the least sum
- Add a repeat of the arcs indicated by this pairing to the network