The Courier’s Dilemma: Five Deliveries, Shortest Routes, and Roads You Cannot Repeat

Imagine a courier leaving a depot with five packages. The addresses are connected by roads of different lengths. What is the shortest delivery route? And what changes if the courier refuses to drive along the same road twice?

We will solve three related puzzles using graphs. In mathematics, a graph is simply a collection of points (called vertices) joined by lines (called edges). Here vertices are intersections or delivery addresses, edges are roads, and, where shown, the numbers on the roads are distances in miles. The drawings are schematic: their lengths on the page are not to scale.

Challenge 1: Five deliveries and the shortest route

The depot is O, and the five delivery addresses are A, B, C, D, and E. The courier may drive along any of the roads shown, and must return to O. Every road around the outside is 1 mile long. The two roads through the middle, O–C and A–D, are each 4 miles long. Where those two roads cross, there is no intersection. What is the minimum total distance?

111111OABCDE

Solution. The two roads crossing the interior are distinct: O–C is 4 miles and A–D is also 4 miles. Their crossing is not an intersection. The outer ring O–A–B–C–D–E–O uses six roads of one mile each, so its length is 6 miles. This is optimal: any closed trip visiting all six distinct vertices must use at least six roads, since each road reaches at most one new vertex before returning to the depot. Every road in this network is at least one mile long. Thus no route can be shorter than 6 miles.

Notice that the two diagonal shortcuts, each four miles long, do not help. A road that looks geometrically direct may be longer than several streets combined.

Challenge 2: What if a road cannot be used twice?

Now consider a different neighborhood. The courier starts at O, must deliver to A, B, C, D, and E, and must return to O without using any road twice. Is this possible?

OABCDE

Solution. No. Address E lies at the end of a dead-end road connected only to D. To reach E, the courier must use road D–E; to leave E and return to O, the courier must use that same road again. Therefore a closed route visiting every delivery address without repeating a road is impossible.

But if E were removed, the courier could travel O–A–B–O–C–D–O, using each road once. The courier revisits the depot O in the middle of the journey, but never repeats a road. This is allowed!

Mathematicians call a walk that never repeats an edge a trail. A trail may revisit vertices. A path, in the usual elementary graph-theory sense, does not revisit vertices. These conditions are not equivalent.

Challenge 3: The postal worker who must cover every street

A postal worker has a different assignment: travel along every road in the neighborhood, then return to the starting point. Can each road be traveled exactly once?

ABCD

At A, three roads meet; at C, three roads meet. At B and D, two roads meet.

Whenever the worker enters an intersection and later leaves it, roads are used in pairs: one for arriving, one for departing. This is also true at the starting point of a closed tour, because the initial departure pairs with the final arrival. Therefore every intersection must have an even number of incident roads if all roads are to be used exactly once in a closed trip.

Our network has two intersections of odd degree (A and C), so such a tour is impossible. The worker must repeat at least one road. For instance, repeating the diagonal A–C makes all intersection degrees even when the repeated traversal is counted, and yields a closed tour covering every street.

This leads to Euler’s theorem: a connected undirected graph has a closed walk using every edge exactly once if and only if every vertex has even degree. Such a walk is called an Eulerian circuit.

The broader problem of finding the shortest closed route covering every street, allowing necessary repetitions, is known as the Chinese Postman Problem. If roads have different lengths, the challenge is to choose the least costly repetitions.

Three similar questions, three different answers

Courier’s task What matters? Mathematical connection
Deliver to every address as efficiently as possible Visit required vertices with minimum distance Traveling salesperson and shortest-path routing
Deliver without repeating any road Find a trail visiting required vertices Graph trails and routing constraints
Cover every street and return Visit every edge, repeating as little as necessary Eulerian circuits and the Chinese postman problem
Final challenge — click to expand

In the third map, suppose each side of the square is 1 mile and the diagonal is 1.5 miles. What is the shortest closed postal route covering all five roads? Explain why your answer is optimal.

Show hint

The total length of the five roads is 5.5 miles. Which additional road should the worker traverse again to make a closed route possible?

Show solution

The diagonal A–C must be repeated, or else another route between A and C must be repeated. The diagonal costs 1.5 miles, whereas either two-side route costs 2 miles. Thus the minimum is 7 miles. One optimal route is A–B–C–A–D–C–A.

Conclusion. Changing a few words in a delivery instruction changes the mathematics. Visiting every address is not the same as covering every street, and avoiding repeated roads is not the same as avoiding repeated intersections. Graph theory helps us see precisely what is being optimized—and what is possible at all.

For another surprising optimization problem, see our article Optimal Coin Denominations , where we investigate how choosing different coin values affects the minimum number of coins needed to make change.

Leave a Reply

Your email address will not be published. Required fields are marked *