Generator

A largest flow of 5 through four places and five roads

A generator in the discrete library, called 37 times across 7 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

flow is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

With nothing chosen

A largest flow of 5 through four places and five roads. A network with a capacity on every road, the amount a largest flow sends along each, and the cut whose capacity equals that flow's value drawn as a line separating the places.

A flow that climbs for ever and falls short

A flow that climbs for ever and falls short. 0:p0 +1.000000 → 1.000000; 1:p1 +0.618034 → 1.618034; 2:p2 +0.618034 → 2.236068; 3:p1 +0.381966 → 2.618034; 4:p3 +0.381966 → 3.000000; 5:p1 +0.236068 → 3.236068; 6:p2 +0.236068 → 3.472136; 7:p1 +0.145898 → 3.618034; 8:p3 +0.145898 → 3.763932; maximum 5.

The same position, shrunk by r squared

The same position, shrunk by r squared. the first 13 pushes: p0: 1.00000/0.61803/0.00000; p1: 0.38197/0.00000/0.61803; p2: 0.38197/0.61803/0.00000; p1: 0.00000/0.23607/0.38197; p3: 0.38197/0.23607/0.00000; p1: 0.14590/0.00000/0.23607; p2: 0.14590/0.23607/0.00000; p1: 0.00000/0.09017/0.14590; p3: 0.14590/0.09017/0.00000; p1: 0.05573/0.00000/0.09017; p2: 0.05573/0.09017/0.00000; p1: 0.00000/0.03444/0.05573; p3: 0.05573/0.03444/0.00000

Converging quickly to the wrong number

Converging quickly to the wrong number. 1:0.510, 6:0.000, 11:-0.535, 16:-1.045, 21:-1.580, 26:-2.090, 31:-2.625, 36:-3.135, 41:-3.670

Shortest paths finish in a handful of pushes

Shortest paths finish in a handful of pushes. s-v1-t:2.000000; s-v4-t:2.000000; s-v2-v3-t:1.000000

Rounding stops what arithmetic cannot

Rounding stops what arithmetic cannot. float stops at step 80 (p1) with total 4.236067956486561; exact amounts continue.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

Discrete

A search for room that never ends

The textbook way to find the most that a network can carry is to find any route that still has room, push as much along it as it will take, and repeat until no route has room left. With whole-number capacities that must stop. Give one road a capacity of 0.618…, the golden ratio's reciprocal, and choose the routes badly, and it never stops: every push is positive, the flow converges, and it converges to 4.236 when the network can carry 5. The same choice made carelessly in floating point does stop — because of rounding, at the wrong answer, convinced it has finished.

Discrete

One tree for every cut

A network of six places has fifteen pairs, and each pair has its own cheapest cut. All fifteen can be read off a tree with five numbers on it: the cheapest cut between any two places is the smallest number on the tree's path between them. Gomory and Hu proved in 1961 that such a tree always exists, and building it takes five cuts, not fifteen.

Discrete

Out before the table says so

Detroit has 49 wins and 27 games left, so it can reach 76, and the leader has 75. On paper it is alive. It is not: the four teams ahead must play 27 games among themselves, and whoever wins them, those four finish with an average above 76. Finding that takes one maximum flow, and it is checked against every possible result of every game.

Discrete

The bottleneck is the whole story

However much a network can carry from one place to another, there is a way of cutting it in two whose total capacity is exactly that number. One quantity is a maximum over ways of routing and the other a minimum over ways of severing, and they are never off by even one.

Discrete

The cheapest way to send

Put a price on every road as well as a capacity and ask for the cheapest way to send four units. Twenty-eight ways exist and one is cheapest, and two certificates prove it without comparing it with the other twenty-seven: no cycle of roads it leaves unused costs less than nothing to push round, and there are prices at the places that every usable road fails to beat.

Discrete

Three places cut apart

Separating two places as cheaply as possible is solved exactly by a flow. Separating three from one another is a different problem: no flow measures it, the pairwise answers do not add up to it, and the best shortcut known in 1994 — cut each place off on its own and throw the dearest cut away — is guaranteed only to within a third of the truth.

Discrete

When several pairs share the roads

For one pair of places, the most that can travel between them equals the cheapest cut that separates them. Give three pairs a hub of three roads to share and the two numbers come apart: the pairs can send 3/2 between them, while separating every pair costs 2. Two pairs still meet their cut, but only by splitting units in half.

The whole library · What the figures prove