Field

Discrete — page 4

Counting, graphs, and things that come in whole pieces.
Five cycles of the Petersen graph that cover every edge twice. Petersen graph: 57 cycles; minimum cycle double cover has 5 cycles of lengths 5, 8, 6, 6, 5; 1654 search steps.

Every edge on exactly two cycles

Draw a graph on paper without crossings and its faces are cycles, each edge on exactly two of them. George Szekeres and Paul Seymour asked in the 1970s whether every graph without a bridge has such a set of cycles, drawn on paper or not. The Petersen graph needs five, the flower snark on twenty points five as well, every random graph tried has one, and nobody has proved it — though a minimal counterexample would have to be a snark.

Descents of 10 as a sum of 9 hidden coins. Bars of 9 coin probabilities beside a bar chart of the descents distribution for n = 10, with dots giving the coin-sum distribution landing on every bar.

Coins hidden in the roots

The polynomial that counts permutations by their descents has no product formula, and nothing in the definition of a descent is a coin toss. But every root of the polynomial is real and negative, and a polynomial like that is a product of coins in disguise: each root r is a coin landing heads with chance 1/(1 − r). The descent count of a random permutation is exactly a sum of independent coins nobody can point to — which is why it is bell-shaped, and why its coefficients obey inequalities the inversion count breaks.

Record gaps between primes against the square of the logarithm. 24 record prime gaps below thirty million as a staircase of points against log p, under the curve (log p)² and a dashed curve 1.12 (log p)²; the last record is 210 after 20831323.

The longest wait for a prime

Near a number x the primes are on average log x apart, and the longest stretch without one below x is much longer: about the square of log x, if the primes behave like random numbers with the right density. Sieving to thirty million finds twenty-four record gaps, all climbing in the shape of that square and all below it. A random model of the primes gets the scale right and the details wrong, and the correction for what it gets wrong predicts gaps larger still — larger than any anyone has found.

Petersen's graph and a tour that cannot close. The words of length 5 with 2 ones, joined when disjoint (10 vertices, 15 edges), with an open tour through every vertex drawn heavy.

The symmetric graphs no tour can close

Take the words of five places with two ones and join two when they share no one. The ten words look exactly alike to the graph, and no closed tour runs through them — because every way of leaving out one edge at each word leaves two pentagons. Only four connected graphs this symmetric are known to fail like that, and nobody knows whether a fifth exists.

The same rule in the adversary's order and in a random order. Two copies of the 8-a-side triangular graph matched greedily with the worst ranking: 4 matched in the adversary's order, 5 in a random order (average 5.30).

Matching when the arrivals are shuffled

An adversary who chooses the order in which applicants arrive can hold any fixed matching rule to half the best. Take the order away and let it be random, and the plainest rule of all — give each arrival its first free place in a fixed list — rises to 1 − 1/e, because shuffling the arrivals turns out to be exactly the trick RANKING plays with the places, seen from the other side. Shuffle both and the guarantee rises again, to somewhere between 0.696 and 0.727, and where in that interval it lies is not known.

Langford pairings of order 3, 4 and 7. Rows of boxes with arcs joining equal numbers: order 3: 3 1 2 1 3 2; order 4: 4 1 3 1 2 4 3 2; order 7: 7 3 6 2 5 3 2 4 7 6 5 1 4 1.

A sum that forbids half the pairings

Put two 1s, two 2s, …, two ns in a row so that between the two ks there are exactly k other numbers. For n = 3 there is one way, 312132; for n = 4 one way; for n = 5 and 6 none at all, and the reason is a single sum — adding up the positions of every entry in two ways forces n(3n − 1)/2 to be even. A search confirms the count forbids nothing that exists and finds 26 arrangements at n = 7 and 108,144 at n = 12, but the sum is all anyone knows about why.

A function on nine points, and the tree with two marks it becomes. Left: a function on 9 points as arrows, with cycles through 2, 5, 7 and trees hanging into them. Right: the tree Joyal's rule makes from it, a path from head 7 to tail 2 with the same trees hanging below.

Every function is a tree with two marks

There are n to the n functions from n points to themselves, and n to the n − 2 trees on those points. André Joyal noticed in 1981 that the missing factor of n² is a choice of two points — a head and a tail — and that a function, read the right way, simply is a tree with a head and a tail. The reading turns Cayley's formula into one line and hands over a fact about random trees from the birthday problem.

The 11 trees on 7 points, and how many labellings each has. All trees on 7 points with their numbers of symmetries and of distinct labellings; the labellings add to 16807.

Almost every tree can be turned over

Cayley's n^(n−2) counts trees with labels on their points. Take the labels off and the count has no formula, because a symmetric shape absorbs labellings: the star on seven points can be labelled only seven ways, the one asymmetric shape 5,040. The bookkeeping that reconciles the two counts says something unexpected — almost every tree, labelled or not, can be turned over onto itself, where almost every graph cannot.

Closing a path into a tour: the crossing pair the counting forces. A path through 10 points in a row, arcs from its two ends to their neighbours, and the crossing pair at step 3 whose two arcs replace that step to make a closed tour.

Half the neighbours forces a tour

Deciding whether a graph has a closed tour through every point is one of the hardest problems computers are asked to solve. Gabriel Dirac found a condition that settles it in one glance: if every point is joined to at least half the others, a tour exists. The proof is a counting argument on a single path, it runs as an algorithm, and two small graphs show that the half cannot be lowered — while random graphs show how much stronger than necessary it is.

A closed knight's tour of the 8 × 8 board. A 8 by 8 chequered board with a closed polygon joining the centres of all 64 squares in the order a knight visits them.

The boards a knight can tour

A knight can visit every square of a chessboard once and land a move from where it began. On a 5 × 5 board it cannot, on a 4 × 100 board it cannot, and on a 3 × 8 board it cannot, though on 3 × 10 it can in sixteen ways. Allen Schwenk found in 1991 the complete list of rectangles without a closed tour, and the reasons on it are of two kinds — a colouring that counts squares, and a second colouring that a tour would have to make agree with the first.

Thirty-six domino tilings, cancelling in pairs until the signs are added. The 36 domino tilings of a 4×4 board with their determinant terms: unsigned, 18 positive and 18 negative (determinant 0); with Kasteleyn signs, all 36 positive.

Signs that make a determinant count

Hall's theorem says whether a board can be covered by dominoes. How many ways it can be covered is a different question, and for a general graph a hopeless one — the count is a permanent, and nobody expects an efficient way to compute permanents. On a flat board it is a determinant. Put a minus sign on the vertical pairs in every second column and the thirty-six coverings of a four-by-four board stop cancelling and add up; the chessboard has 12,988,816. A hole in the board breaks the rule in a way a cut repairs, and on K₃,₃, which cannot be drawn flat, no choice among its 512 signings works at all.

A random tiling of the Aztec diamond, frozen outside a circle. A uniformly random domino tiling of the order-40 Aztec diamond (1640 dominoes) with the inscribed circle drawn.

The diamond that freezes its corners

A square board's domino tilings grow like 1.3385 choices per square. Arrange the same squares in a staircase-edged diamond and the count is exactly 2 to the n(n+1)/2 — only 1.1892 choices per square, at every size. The boundary has reached into the middle. Pick one of the diamond's tilings at random and the reason is visible: outside the circle inscribed in the diamond the dominoes are frozen into solid brickwork, and only inside it is the tiling free.

A spider's matchings have real roots and its independent sets do not. Spider with legs 3, 3, 3: matching polynomial 1, 9, 27, 32, 12, roots -0.5000, -0.2324, -0.5000, -1.4343; independence polynomial 1, 10, 36, 57, 38, 9, 1, 4 non-real roots.

The roots every matching polynomial keeps real

Count a graph's matchings by size and make the counts the coefficients of a polynomial. On every one of 35,664 graphs tested, that polynomial has only real roots — a theorem of Heilmann and Lieb from 1972. Count independent sets instead and the roots wander off the axis on a growing share of graphs, but never on a graph without a claw, and matchings are the independent sets of a graph that never has one.

A chromatic polynomial with complex roots and log-concave coefficients. Wheel W5: P(x) = x⁶ − 10x⁵ + 40x⁴ − 80x³ + 79x² − 30x; |coefficients| 30, 79, 80, 40, 10, 1; min ratio 2.0000; roots 3.000, 0.000, 2.000−1.000i, 2.000, 1.000, 2.000+1.000i.

Log-concave with nothing to make it so

The chromatic polynomial of a graph counts its colourings, and its coefficients rise to one peak and fall, each squared at least the product of its neighbours. For a real-rooted polynomial that would be automatic. But by nine vertices fewer than one graph in twenty has only real chromatic roots, and the coefficients stay log-concave anyway — on every graph tested, and, by June Huh's theorem of 2012, on every graph there is.

Seven flips between the octagon's farthest triangulations. A shortest flip path of length 7 between two of the 132 triangulations of the octagon.

How far apart two triangulations can be

Any triangulation of a polygon can be turned into any other by flipping one diagonal at a time. On an octagon seven flips always suffice; on a polygon with m vertices the worst case is 2m − 10 flips once m reaches thirteen, a value Sleator, Tarjan and Thurston proved with hyperbolic geometry in 1988. Breadth-first search over all 58,786 triangulations of the 13-gon finds the sixteen.

The flip graph of the hexagon, given a direction. Tamari lattice T4: 14 elements 3210, 3200, 3010, 3100, 3000, 0210, 0200, 1010, 0010, 2100, 2000, 0100, 1000, 0000; 21 covering relations; 68 intervals.

Pairs of trees that count planar maps

Give every flip of a triangulation a direction and the triangulations become an order, the Tamari lattice. Counting the pairs that are in order — 1, 3, 13, 68, 399, 2,530, 16,965, 118,668, 857,956 — gives 2(4n + 1)!/((n + 1)!(3n + 2)!), which is exactly Tutte's 1962 count of planar triangulations. Chapoton noticed the match in 2006; a pair of trees and a map on a sphere turn out to be the same thing.

Eleven vertices, no triangle, four colours. Grötzsch graph: 11 vertices, 20 edges, triangle-free; 3-colouring search 27 nodes, none; 4-colouring 10120121230; proper 4-colourings 12480 (520 up to relabelling).

No triangle, and four colours

A graph that contains four mutually joined points needs four colours. The converse looks obvious — a graph needing four colours should contain something like that — and it is false. Grötzsch's graph has eleven points, no three of them mutually joined, and needs four colours. Mycielski found a step that adds one colour to any graph without creating a triangle, so graphs with no triangle can need any number of colours, and their need is spread through the whole graph, with no part to point at.

Where 3003 appears eight times. 3003 = C(3003,1) = C(78,2) = C(15,5) = C(14,6) and their mirror images; N(3003) = 8.

How often a number can appear in Pascal's triangle

Every number bigger than one appears in Pascal's triangle at least twice, next to the 1 at each end of its own row. A few appear more often: 120 appears six times, and 3003 eight — as C(3003, 1), C(78, 2), C(15, 5) and C(14, 6), each twice. Counting every entry up to a million million finds seven numbers that appear more than four times and none that appear five, seven or more than eight. Whether any number appears ten times, or whether there is any limit at all, is unknown.

A ball counted slice by slice. Ball of radius 7.5: slices 0:177, 1:177, 2:169, 3:145, 4:129, 5:97, 6:69, 7:21; total 1791, volume 1767.146.

The dots a ball catches

Count the lattice points inside a ball and compare with its volume. In five dimensions the error is about the size of one spherical shell, and that is a theorem; in four a logarithm sneaks in; in three and two the true size of the error is unknown. The difficulty runs backwards because the arithmetic of sums of squares is most erratic when there are fewest squares to add.

The bipartite share falls before it rises. n=1: 1 of 1 (100.00%); n=2: 2 of 2 (100.00%); n=3: 7 of 7 (100.00%); n=4: 41 of 41 (100.00%); n=5: 376 of 388 (96.91%); n=6: 5177 of 5789 (89.43%); n=7: 103237 of 133501 (77.33%); n=8: 2922446 of 4682270 (62.42%); n=9: 116011231 of 246348115 (47.09%).

Triangle-free, and two-sided eventually

Every graph with no triangle and the most edges possible is bipartite. Erdős, Kleitman and Rothschild proved that almost every triangle-free graph is bipartite too — and yet among the 246,348,115 triangle-free graphs on nine labelled vertices, fewer than half are. The share falls before it rises, and the reason is that small graphs are sparse.

The twenty-three trees on eight points. 23 shapes on 8 points by Prüfer search; diameters 2,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,7.

How many shapes a tree can take

There are 262,144 labelled trees on eight points and only twenty-three shapes. Labels make counting easy — Cayley's nⁿ⁻² — and shapes make it hard, because a symmetric shape absorbs labellings. The count of shapes comes instead from a recurrence for trees with a root and a theorem of Richard Otter's for taking the root away: in every tree there is exactly one more class of points than of edges. Run to two hundred points, the counts grow like 0.535 × 2.9558ⁿ ÷ n^(5/2), and the same arithmetic counts the alkanes.

The forests of a complete graph on four points. K4 forests by size: 1, 6, 15, 16; ratios 2.4000, 2.3438.

The forests a graph can hold

Count the sets of edges in a graph that contain no cycle, sorted by size, and the counts rise and fall in a single peak — more sharply peaked, John Mason conjectured in 1972, than the binomial coefficients with the same number of edges. On every graph with up to six points the strongest of his three inequalities holds, with equality exactly where cycles are too long to matter; on random graphs with nine points it holds with a margin of about one per cent. It was proved for every graph, and every matroid, in 2018.

Two arrows in and two out at every point. 9×9 patch from a random height function, seed 3; heights range 1..6.

Two arrows in and two out

An Eulerian circuit enters every point as often as it leaves, so it hands every edge an arrow with the arrows balanced at each point. Count those balanced orientations instead of the circuits and the question turns into the ice in a freezer: on the square grid, where every point has two arrows in and two out, there are about 1.5396 of them per point — Lieb's (4/3)^(3/2), against Pauling's guess of 1.5. Fix the walls of a square of ice and the count becomes 1, 2, 7, 42, 429, 7436: the alternating-sign matrices.

No graph has fewer four-cycles than chance. random p=0.092 t(C4)=0.00141 p^4=0.00007; random p=0.143 t(C4)=0.00344 p^4=0.00042; random p=0.112 t(C4)=0.00203 p^4=0.00016; random p=0.112 t(C4)=0.00276 p^4=0.00016; random p=0.112 t(C4)=0.00266 p^4=0.00016; random p=0.112 t(C4)=0.00266 p^4=0.00016; random p=0.306 t(C4)=0.01739 p^4=0.00878; random p=0.378 t(C4)=0.03223 p^4=0.02032; random p=0.316 t(C4)=0.02140 p^4=0.01001; random p=0.276 t(C4)=0.01400 p^4=0.00576; random p=0.245 t(C4)=0.01249 p^4=0.00360; random p=0.235 t(C4)=0.01182 p^4=0.00303; random p=0.490 t(C4)=0.07476 p^4=0.05755; random p=0.469 t(C4)=0.06862 p^4=0.04854; random p=0.449 t(C4)=0.05685 p^4=0.04064; random p=0.520 t(C4)=0.09126 p^4=0.07335; random p=0.480 t(C4)=0.07648 p^4=0.05290; random p=0.490 t(C4)=0.08080 p^4=0.05755; random p=0.673 t(C4)=0.23074 p^4=0.20572; random p=0.724 t(C4)=0.29628 p^4=0.27550; random p=0.673 t(C4)=0.23511 p^4=0.20572; random p=0.612 t(C4)=0.16150 p^4=0.14051; random p=0.633 t(C4)=0.19013 p^4=0.16020; random p=0.694 t(C4)=0.25750 p^4=0.23181; bipartite p=0.500 t(C4)=0.12500 p^4=0.06250; bipartite p=0.408 t(C4)=0.08330 p^4=0.02775; bipartite p=0.337 t(C4)=0.05670 p^4=0.01286; structured p=0.462 t(C4)=0.05189 p^4=0.04538; structured p=0.214 t(C4)=0.03389 p^4=0.00211; structured p=0.429 t(C4)=0.06778 p^4=0.03374; structured p=0.071 t(C4)=0.00036 p^4=0.00003

No graph is poorer in squares than chance

Take any graph with a fixed share of its possible edges and count how often four points chosen in order close up into a ring. However the edges are arranged — in cliques, in two-sided blocks, at random — the count never falls below what a random graph of the same density gives. Sidorenko conjectured that the same holds for every pattern without an odd cycle. For a triangle it is false; for a path or a ring of four it takes two lines; for K₅,₅ with a ten-cycle removed nobody knows.

All essays