All tales

A lesson for life

Roads and junctions

Draft: written by an AI helper and not yet checked by a teacher.

Tap a paragraph to see it in words.

A map can be drawn as dots and lines. The dots are junctions and the lines are roads. Take four junctions called A, B, C and D, and five roads: A to B, B to C, C to D, D to A, and A to C.

A map as a graph: junctions , roads , so and .

with and .

Count the roads at each junction. A has three, B has two, C has three, D has two. Their sum is ten, twice the number of roads, because every road has two ends and is counted at both.

Roads at each junction: . Their sum , since each road has two ends.

and .

Can you walk along every road exactly once? Yes if and only if zero or two of the junctions have an odd number of roads, and in the case of two you must start at one of them and end at the other. Here A and C are the odd ones. So start at A: A, B, C, D, A, C. Every road once, and you end at C.

Call a walk along every road once , and the number of odd junctions . Then . Here , at and , so works: roads, once each.

Walk , odd junctions : . Here at and , and ✓.

Start at B instead and you will never manage it. No odd junction gives a loop that comes back to where it began; two odd junctions give a walk from one to the other; four odd junctions give no such walk at all.

We cannot start at , since is even and for we must start at or . gives a loop back home, and gives no walk.

, so a start at ✗. a loop, ✗.

Letters of words: 645 → 246 → 53.

How to read the signs

  • the graph G with junctions V and roads E
  • the number of roads
  • the degree: the number of roads at
  • the sum of
  • if and only if
  • is in
  • then along the road to