Topic 3
Algorithms on graphs II
This topic is about routes that cover a whole network. A postman, a road gritter or a pipe inspector must travel along every arc: that is the route inspection problem, and there is an efficient algorithm that always finds the best answer. A delivery driver or a sales rep must visit every vertex: that is the travelling salesman problem, and for that no efficient method is known that always gives the best answer, so you find good upper and lower bounds instead.
What you need to know
- Use the route inspection (Chinese postman) algorithm for networks with up to four odd vertices, for closed routes and for routes that start and finish at different vertices.
- Understand the difference between the classical and the practical travelling salesman problems.
- Convert a network into a complete network of least distances, and understand the triangle inequality.
- Find upper bounds with the nearest neighbour algorithm, and by doubling a minimum spanning tree and using shortcuts.
- Find lower bounds with the residual minimum spanning tree (deleted vertex) method.
- Use upper and lower bounds to give an interval for the optimal tour, and recognise when a tour is proved optimal.
Key points
- Route inspection: pair up the odd vertices in every possible way, add the shortest paths, and add the smallest total to the network's weight.
- Four odd vertices give three pairings. If the start and finish may differ, repeat only the shortest path between one pair.
- Travelling salesman: classical visits each vertex once; practical at least once. Use a table of least distances (triangle inequality).
- Upper bounds: nearest neighbour, or twice the minimum spanning tree improved by shortcuts. The best upper bound is the smallest.
- Lower bound: delete a vertex, find the residual minimum spanning tree, add the two shortest arcs from that vertex. The best lower bound is the largest.
- If a lower bound equals an upper bound, that tour is optimal.
Practise this topic
Quiz me on this topic10 questions, marked as you go.Make a practice paperPick the marks and difficulty. Print it with a mark scheme.
Both are part of Premium.