Route inspection Flashcards
What is a Eulerian graph?
A graph in which all vertices have an even degree
What is a semi-Eulerian graph?
A graph in which precisely two vertices are of odd degree
What does it mean for a graph to be traversable?
It is possible to travel along every edge just once without skipping over any sections
When is a graph traversable?
When it is a Eulerian graph
When is a graph semi-traversible?
When it is a semi-Eulerian graph
When is a graph not traversible?
When it has more than two vertices of odd degree
What can be said about the number of vertices of odd degree in any graph?
It is always even
What is a Eulerian walk?
A walk which uses each edge exactly once
What is a Eulerian cycle?
A cycle which uses each edge exactly once
What does the Chinese postman algorithm do?
It finds the shortest route that traverses every edge at least once and returns to the starting vertex, by transforming the graph into an Eulerian graph if necessary
Explain the Chinese postman algorithm
If the graph is Eulerian already then no further action is necessary, and the shortest route’s weight is equal to the network’s total weight. Otherwise, for each combination of pairings of the odd vertices, the total weight of the minimum paths between each pairing is calculated. The combination with the lowest total weight has its edges repeated, thus making the graph Eulerian