The junction register
Each street contributes one to the degree of both endpoints. Odd junctions must come in pairs.
A street-sweeper’s puzzle about odd junctions, shortest paths and the surprising price of coming home.
Each street contributes one to the degree of both endpoints. Odd junctions must come in pairs.
The best closed sweep pairs odd junctions through shortest available paths.
Identify degree at every junction. A connected street graph has a closed walk using each street exactly once if and only if all junctions have even degree.
Add all unique street lengths, then find the cheapest set of repeat journeys that pairs every odd-degree junction. This is the undirected Chinese postman problem.
Make a prediction about adding a road, drag junctions to change distances, and test whether the optimum total route becomes longer or shorter.
For a connected, undirected street network, pair every odd-degree junction exactly once so that the sum of the shortest-path distances between paired junctions is as small as possible. The extra routes are duplicated and an Eulerian circuit is constructed. The exhibit uses Floyd–Warshall shortest paths, exact bitmask dynamic programming and Hierholzer’s algorithm. Surveyed lengths are Euclidean map distances rounded to the nearest metre. Crossings without lettered junctions are not connected; roads are bidirectional, with no slopes, traffic rules or turning penalties. This is a mathematical model, not a navigation service.
The same route-inspection idea underpins planning for street sweepers, snowploughs, postal rounds, road inspection, waste collection and infrastructure maintenance.