The shortest road network joining four towns
Four towns are located at the corners of a square of side 1 km. Roads are to be built so that it is possible to travel between any two towns along roads. Roads may meet at junctions anywhere, not just at towns.
Three sides of the square give a network of length 3. The two diagonals give a network of length 2 root 2, about 2.83.
What is the shortest possible total road length, and what does the network look like?
Show a hint
At the best possible junction, three roads meet at angles of 120 degrees. Try two junctions inside the square, each connected to two adjacent towns and to the other junction.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.