Generator

The permutation (1 3 4 2) drawn as 4 strings, crossing 3 times

A generator in the algebra library, called 54 times across 10 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.

wiring 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

The permutation (1 3 4 2) drawn as 4 strings, crossing 3 times. A permutation drawn as strings running from a row of numbered pegs to another, with every place two strings cross marked, and the crossing count checked against the number of pairs that are out of order.

The far end of a sliding tray falls as holes are added

The far end of a sliding tray falls as holes are added. Exhaustive search of the 2×3, 2×4 and 3×3 sliding trays with one to all-but-one holes. Far ends for the 3×3 tray: 31, 24, 21, 17, 13, 10, 7, 4; averages 21.97, 16.04, 12.70, 9.99, 7.88, 5.92, 3.75, 2.00.

Exchanging tiles 5 and 6 in 4 moves with two holes

Exchanging tiles 5 and 6 in 4 moves with two holes. Shortest solution with two holes on the 3×3 tray for the arrangement with tiles 5 and 6 exchanged: 4 moves through abcdfeg·· abcd·egf· abcde·gf· abcde·g·f abcdefg··.

How far the arrangements of the 3×3 tray sit from solved, by number of holes

How far the arrangements of the 3×3 tray sit from solved, by number of holes. Distance distributions on the 3×3 tray for 1, 2, 3 holes: peaks at 24, 16, 14, far ends 31, 24, 21.

The moves saved on the 3×3 tray by lifting out tile 8

The moves saved on the 3×3 tray by lifting out tile 8. Histogram over 181440 arrangements of moves saved by removing tile 8: from 0 (210) to 16 (10), mean 5.937. Farthest arrangements fall from 31 to 22 and 23.

The arrangements of the 3×3 tray with 3 holes that are 21 moves from solved

The arrangements of the 3×3 tray with 3 holes that are 21 moves from solved. Solved 3×3 tray with 3 holes beside 3 of the 3 farthest arrangements (21 moves): fed···cba f·d··ecba f·de··cba.

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.

Algebra

A second empty square

With one empty square a sliding tray can reach exactly half its arrangements, and the half it misses is guarded by a sign. Leave a second square empty and the guard disappears — every arrangement is reachable, two tiles can be exchanged in four moves, and the far end of the three-by-three tray comes in from thirty-one moves to twenty-four. Searching every tray with every number of holes shows what each extra square of room is worth.

Algebra

A shared root, found without finding it

Two polynomials have a root in common exactly when one determinant built from their coefficients is zero. No root is computed, nothing is approximated, and the same construction turns two equations in two unknowns into one equation in one.

Computation

A sort that never looks at the answers

Most sorting decides its next comparison from the last one. A sorting network decides them all in advance: a fixed sequence of swaps-if-out-of-order, wired up before any number arrives. Whether such a thing sorts everything can be settled by trying 2ⁿ strings of noughts and ones instead of n! orderings. Nineteen comparators sort eight numbers, and proving that nothing shorter sorts eleven took decades and a satisfiability solver. Over neighbours only, one single test, the reversed row, decides the whole question.

Algebra

The crossings that will not come out even

Draw a rearrangement as strings from one row of pegs to another and count where they cross. The count depends on how the strings are drawn; whether it is odd or even does not, and that single bit is what makes determinants exist and a sliding puzzle unsolvable.

Algebra

The only bit that survives

A shuffle can be called even or odd, and the label behaves under composition. Ask whether some cleverer label — a number out of three, or out of four — could behave the same way, and the answer is that nothing else can — one bit is exactly what a permutation gives up.

Algebra

The puzzle that is exactly half solvable

A sliding puzzle sold with two tiles swapped is not a hard puzzle; it is an impossible one, and the proof is a quantity that no slide can change. The same argument, run three times at once, says that one arrangement of a scrambled cube in twelve is reachable.

Number

The symbol is the sign of a shuffle

Multiplying every residue modulo p by a fixed number rearranges them. That rearrangement is a permutation, permutations have a sign, and the sign is exactly the Legendre symbol — so a question about squares becomes a question about crossings.

Algebra

Thirty-one moves from solved

Parity settles which half of a sliding puzzle's arrangements can be reached and is silent about how far away any of them is. Searching every reachable arrangement of the three-by-three tray answers the second question exactly — two arrangements sit thirty-one moves out — and parity turns up again, this time as a law about distance.

Algebra

When the label may be a matrix

A permutation carries exactly one bit into any commutative target, and commutativity is the restriction doing all the work. Drop it — let the label be a matrix — and what survives is a short finite table, computed here from traces and checked for orthogonality over every pair of rows.

Algebra

Which graphs let the tokens go anywhere

A sliding puzzle is a graph with a token on every vertex but one. Richard Wilson found in 1974 what every such puzzle can reach, and the answer has a surprise in it — the half the tray is stuck with is not a fact about permutations at all, but about the board being two-coloured — and one exception, a graph of seven vertices that reaches exactly 120 of 720.

The whole library · What the figures prove