Y1 Decision - C4 - Route Inspection Flashcards
4.1 What is an Eulerian graph?
A network that contains a trail that includes every edge and starts and finishes at the same vertex. Any connected graph whose vertices are all even is Eulerian.
4.1 What is a semi-Eulerian graph?
A network that contains a trail that includes every edge and starts and finishes at the same vertex. Any connected graph with two odd vertices is semi-Eulerian (one odd vertex is the start and the other is the end of the trail)
4.2 What does the route inspection algorithm do?
Finds the length of the shortest route in a network that transverses every arc at least once, and returns to its starting point
4.2 If a network is Eulerian, what can you say about the length of its shortest route that transverses every arc?
length of the shortest route = total weight of the network
4.2 If a network is semi-Eulerian, what can you say about the length of its shortest route that transverses every arc?
length of the shortest route = total weight of the network plus the length of the shortest path between the two odd vertices
4.2 Describe how to implement the route inspection algorithm
- Identify any odd vertices
- Consider all possible pairings of these pairings
- Select the complete pairing that has the least sum
- Add a repeat of the arcs indicated by this pairing to the network