Why it happens
Why You Can't Cross the Seven Bridges of Königsberg Exactly Once
A walk that crosses every bridge once can start or end on a land with an odd number of bridges, but every land it only passes through needs an even number: one bridge in, one out. Königsberg's four lands all had odd counts, 5, 3, 3 and 3. That's two odd lands too many, so no such walk exists.
Eight walks over Euler's seven bridges
How to read the stage
- Objective
- Follow the random walks to their dead ends, then read each land's bridge count and parity.
- How this step gets you there
- The text names the map's labels and the default run's result, then points to the count at the end.
The map uses Euler's labels: the island A, the south bank B, the north bank C, the island D, and bridges a to g. A walker sets off from a random land and crosses random bridges, never one twice, until none is left where it stands. In the default run all 8 walks get stuck, and the best crosses 6 of the 7. Then the stage counts each land's bridges, as Euler did.
Why odd counts decide it
- Objective
- Explain why only the start and end of a walk can touch an odd number of bridges.
- How this step gets you there
- The text pairs each pass through a land with two bridges, then checks the claim against every possible walk.
Each time a walk passes through a land it uses two of that land's bridges, one in and one out. So a land that is neither the start nor the end must touch an even number of bridges. Only the two ends can be odd. Königsberg had four odd lands, so every walk strands a bridge. Of all 372 ways to walk until stuck, none crosses all seven, and 256 cross six.
When a walk exists, and how to find it
- Objective
- State when a walk over every bridge exists, and follow Hierholzer's algorithm splicing a loop into one.
- How this step gets you there
- The stage runs Hierholzer's stack on eight bridges; the text names where the first walk stalls and where the loop joins.
The rule runs the other way too: in a connected city with no odd lands a walk can start anywhere; with two, it runs from one to the other. Euler didn't prove this half. Carl Hierholzer did, in a paper published posthumously. The second stage runs his method: add bridge h, and only A and D stay odd. From D the walk gets stuck on A after 5 bridges, then splices in a loop from C to cross all 8.
Add an eighth bridge, and Hierholzer finds the walk
What Euler did, and didn't
- Objective
- Place Euler's paper in time, and separate what he did from the graph usually credited to him.
- How this step gets you there
- The text follows the dates from the Euler Archive and Hopkins and Wilson's history, quoting Euler's letter.
Euler presented his solution to the St Petersburg Academy on 26 August 1735. The paper is dated 1736 but was published in 1741. He told Carl Ehler, mayor of Danzig, that "this type of solution bears little relationship to mathematics". The paper is widely regarded as the first in graph theory, yet Euler drew no graph: he wrote routes as strings of letters. The dots-and-lines picture first appeared in a book by W. W. Rouse Ball in 1892.
The bridges since
- Objective
- Know what became of the city and its bridges, and why the puzzle's answer has changed.
- How this step gets you there
- The text gives what the sources agree on and says where they disagree.
Königsberg was badly damaged by British bombing in 1944 and the Soviet assault of 1945, and is now Kaliningrad, in Russia. Accounts differ on how many of the seven bridges survive and which were lost to the war or to later rebuilding. In a 2007 paper, R. B. Mallion reported that, with the Kaiserbrücke rebuilt in 2005, a walk crossing every bridge once is possible there again.
What the model leaves out
- Objective
- Separate the model's simplifications from the theorem, and the random walks from the proof.
- How this step gets you there
- The text lists what the schematic drops and what the extra bridge slots are.
The stage keeps only what Euler kept: which bridge joins which land. The map is a schematic. The walker chooses at random, so its failures only illustrate; the count is the proof. Bridges h and i are slots for trying changes, not historical bridges. A walk may end anywhere; asking it to end where it began is stricter and needs every land even.
Questions
- Can you cross all the bridges in Kaliningrad once each today?
- According to a 2007 paper by R. B. Mallion, yes. After the Kaiserbrücke was rebuilt in 2005, he found a walk over every bridge once in present-day Kaliningrad and walked it with a companion on 26 February 2006. Those aren't Euler's seven bridges, so the answer changed.
- What is an Euler path?
- A walk through a graph that uses every edge exactly once. A connected graph has one exactly when zero or two of its points have an odd number of edges. With zero, the walk can end where it began, which makes it an Euler circuit. With two, it has to run from one odd point to the other.
- Did Euler draw the first graph?
- No. He labelled the lands A to D and wrote routes as strings of letters. Five bridges touch A, so a route over all seven needs three As, plus two each of B, C and D: nine letters, where seven bridges allow only eight. The dots-and-lines drawing came later; Hopkins and Wilson trace it to Rouse Ball, 1892.
- Did the people of Königsberg really try it on Sunday walks?
- The story is told often, but the mathematicians Brian Hopkins and Robin Wilson write only that "it is claimed". It is not known how Euler heard of the problem. Letters show Carl Ehler, mayor of Danzig, asked him for a solution in March 1736, and Euler wrote that he was told the problem was widely known.
- What happens if you add one bridge?
- A bridge between two odd lands makes both even, which leaves two odd lands, so a walk now exists. Add bridge h, from bank B to bank C, and only A and D stay odd: the second stage finds a walk from D to A over all 8 bridges.