coruPlay and imagination

Four towns. Find the extra 96 metres of road

Four towns sit at the corners of a square, 1 km on each side. Connect them so you can drive from any town to any other. The land is flat; junctions are allowed. Count the total length of road built, counting each section only once.

Three plans at the same scale. A: three sides of the square, forming a U. B: both diagonals, crossing at the centre. C: two three-way junctions inside the square, linked by a short central section; each junction connects to its two nearest corners.
The towns stay in exactly the same places. Orange circles are junctions; white circles are towns. Which network uses the least road? Image credit: Coru. Original Coru diagram. Image terms · Ask about reuse

Choose before the explanation

Compare the three plans above. Choose an answer; all explanations are also available below.

Which plan would you build?

Answers and explanations
  • A · Three sides: That is 3 km. Everyone is connected, but both other networks use less road.
  • B · Cross in the centre: Two diagonals total 2√2 km: about 2.828 km. One plan is roughly 96 metres shorter.
  • C · Two junctions: Yes: 1 + √3 km, about 2.732 km. That saves roughly 96 metres compared with the cross.

Answers and explanations

  • A · Three sides: That is 3 km. Everyone is connected, but both other networks use less road.
  • B · Cross in the centre: Two diagonals total 2√2 km: about 2.828 km. One plan is roughly 96 metres shorter.
  • C · Two junctions: Yes: 1 + √3 km, about 2.732 km. That saves roughly 96 metres compared with the cross.

The cross has a weak spot

A diagonal of a 1 km square is √2 km long. Two diagonals total 2√2, about 2.828 km. Already better than three kilometres around the edges.

But four roads crowd into one point at the centre. Split that meeting into two three-way junctions and link them with a short bridge. There are now five sections. Together, they are shorter.

Where the 96 metres went

Put each junction halfway up the square, 1/(2√3) km in from the nearest vertical side. Each of the four sloping sections is then 1/√3 km long. The link between the junctions is 1 − 1/√3 km.

Add them: 4/√3 + (1 − 1/√3) = 1 + √3 ≈ 2.732 km. The saving over the cross is 2√2 − 1 − √3 ≈ 0.0964 km, or about 96 metres.

Three roads meet at 120° at each junction. For the corners of a square, this is the shortest network in the plane. Rotate it by a quarter-turn and you get another equally short solution. It is a Steiner tree: a network allowed to add junctions of its own.

Plan C in a square of side 1 km. Four sloping sections each measure 1/√3 km; the middle section measures 1 − 1/√3 km. The three angles at each inner junction are 120 degrees.
The lines use exact calculated coordinates. Colour picks out the shared section, which is built and counted only once. Image credit: Coru. Original Coru diagram. Image terms · Ask about reuse

Soap can draw the junctions too

Place pins between two parallel transparent plates and dip the assembly into soapy water. Films can connect the pins in this kind of network. With equal film heights, a shorter total line means less surface area. Triple film junctions meet at 120°.

It is a beautiful physical demonstration, but not an infallible solver: a film can settle in a local minimum. A stable shape is not proof that no shorter network exists.

Would the residents agree?

Our saving is in construction length. A trip between neighbouring towns along plan C can be longer than a direct road between them. Real planning also involves journeys, terrain, junction costs and alternative routes. Here we deliberately counted only metres of line.

Try drawing a square with 10 cm sides. Mark the two junctions on its middle horizontal line, about 2.89 cm in from each side, then draw the five sections. Their total is about 27.32 cm, against 28.28 cm for the cross.

The first map showed only places to arrive at. The shortest network added two places worth passing through.

Sources & further reading

Help improve this guide