What it costs to know

Which choice the cost lives in

A backtracking search takes two decisions at every step — which thing to decide, and what to decide about it. The literature is almost entirely about the first. On these crease patterns the whole of the cost was in the second, and the structural improvement everybody reaches for first makes matters worse on fifty-two patterns out of eighty-seven.

Assumes The difficulty was in the coin and A proof in one pass.

Every backtracking search takes two decisions at every node and they are not the same kind of decision at all.

The first is a variable choice: of everything still undecided, which to decide next. The second is a value choice: having picked something, what to try for it first. Both are free — any choice of either yields a correct search — and both change the cost, sometimes enormously.

Almost all the attention goes to the first. That is where the named heuristics live, it is where a problem’s structure most obviously enters, and it is the one a search’s author will have thought about. On the crease patterns here it turned out to be the wrong half.

The circuits a lettering orients, on the rhombille patchThe rhombille tessellation patch with each crease drawn heavier the more of the arc graph's 126 independent circuits it lies on, from 1 to 24. The circuits are a property of the drawing: a lettering points each arc and cannot move it.heavier means the crease lies on more independent circuits157 panels, 282 arcs, circuit rank 126; circuits run from 4 to 26 arcs
Fig. 1 The structure a variable heuristic would read: each crease drawn heavier the more of the pattern’s independent circuits it lies on. The rhombille patch’s arc graph has a hundred and twenty-six of them, running from four arcs long to twenty-six, and this picture is fixed by the drawing rather than by any lettering.

What each choice can do, in principle

The two decisions have different jobs, and the difference is easiest to see by asking what a perfect version of each would achieve.

A perfect value choice never guesses wrong. It walks straight from the empty lettering to a complete consistent one, deciding each crease correctly the first time, and the search costs one node per decision with no backtracking whatever. That is only available when a solution exists; a perfect value choice on a pattern with no lettering saves nothing at all, because there is no correct answer to guess.

A perfect variable choice never wastes a subtree. It picks, at every node, something that will be contradicted immediately if the current commitments are doomed — so a doomed region is abandoned at once instead of being explored, which is the whole economics of a refusal that fires early. That helps most when there is nothing to find, and helps a search that is going to succeed only by shortening the wrong turns it takes on the way.

So the two are not competing improvements to one thing. They are aimed at opposite outcomes, and a search that is going to succeed needs the value order while a search that is going to fail needs the variable order.

There is an asymmetry hidden in that pairing which is worth pulling out before any measurement. A value choice is only ever wrong about a decision that had a right answer, so it can be judged against the solution. A variable choice has no right answer to be judged against — any order is complete — and its quality is entirely a statement about the shape of the tree it produces. That is why the variable choice attracts theory and the value choice attracts shrugs, and it is also why the value choice is the one that quietly goes unexamined.

The standard variable rule, and the structural one

The search here already uses the standard variable rule: branch at the vertex with the fewest labellings still available. It is the oldest heuristic in the subject and the reasoning is sound, and it is the same rule the construction that draws these patterns uses to find their letters in the first place — a vertex with two surviving labellings is nearly decided, so deciding it is nearly free of guesswork, and a contradiction surfaces close to the decision that caused it.

The structural alternative comes from what a contradiction actually is here. A lettering is inconsistent when the arcs it forces close a circle, and a circle has to run round a circuit of the panel graph. So the creases that lie on many independent circuits are the creases most likely to be involved in any contradiction the pattern has, and branching on those first should surface contradictions earlier.

The circuits are cheap to find. A spanning tree of the arc graph leaves out one edge per independent circuit, each of which closes exactly one circuit with the tree path between its ends, and counting how many of those pass through each crease is one pass over the tree. On the rhombille patch that is a hundred and twenty-six circuits over two hundred and eighty-two creases, computed in a few milliseconds.

The circuits a lettering orients, on the hexagonal patchThe hexagonal tessellation patch with each crease drawn heavier the more of the arc graph's 54 independent circuits it lies on, from 0 to 17. The circuits are a property of the drawing: a lettering points each arc and cannot move it.heavier means the crease lies on more independent circuits77 panels, 130 arcs, circuit rank 54; circuits run from 4 to 16 arcs
Fig. 2 The same reading on the hexagonal patch, which is half the size. Fifty-four independent circuits over a hundred and thirty arcs, the shortest four arcs long and the longest sixteen. The structure is real and it is different from patch to patch.

Both rules are defensible and both have the same shape of argument behind them: surface the contradiction early. They disagree about where a contradiction is likely to be. The standard rule says it is near whatever is most constrained; the structural rule says it is near whatever the circuits run through. On a problem whose constraints are local and whose contradictions are global, the second sounds like the better bet, and a crease pattern is exactly such a problem — the vertex conditions are local and the circle they cannot see is not.

The circuits a lettering orients, on the square patchThe square tessellation patch with each crease drawn heavier the more of the arc graph's 36 independent circuits it lies on, from 1 to 10. The circuits are a property of the drawing: a lettering points each arc and cannot move it.heavier means the crease lies on more independent circuits49 panels, 84 arcs, circuit rank 36; circuits run from 4 to 12 arcs
Fig. 3 The same reading on the smallest of the patches: thirty-six independent circuits over eighty-four arcs. The structural rule reads this and branches on the heaviest creases first, which on this patch changes nothing at all.

What the structural rule costs

It costs more. Not on one patch — on most of them.

One order decides what a yes costs, the other what a no costsNodes visited by the same lettering search on three twist tessellation patches, under two rules for choosing which crease to decide next. Branching on the creases that lie on many independent circuits buys nothing when a lettering exists, and on the two patches where none exists the two rules swap places by four orders of magnitude.the bar is nodes visited, on a logarithmic scalesame search, same conditions — only the rule for choosing the next crease differs1101001e+31e+41e+5rhombille patch, turn 0.35 · a lettering exists · fewest labellings left80rhombille patch, turn 0.35 · a lettering exists · most independent circuits84rhombille, turn 0.15 · none exists · fewest labellings left511,999rhombille, turn 0.15 · none exists · most independent circuits63hexagonal, turn 0.15 · none exists · fewest labellings left15hexagonal, turn 0.15 · none exists · most independent circuits2,047on a yes the structural rule buys nothing; on a no it is worth four orders of magnitude, in whichever direction the pattern decides
Fig. 4 The two variable rules on three patches, on a logarithmic scale. The top pair is a patch that has a lettering, and the structural rule buys nothing there. The lower two pairs are patches that have none, and they are the subject of a separate argument.

Over the eighty-seven patches of the uniform grid that have a consistent lettering, branching on the circuits is never cheaper than the standard rule and is worse on fifty-two. The worst case is the triangular patch, where a search that costs at most fifty-one steps under the standard rule costs two thousand three hundred and ninety-four under the structural one — a factor of forty-seven, paid for reading the pattern’s own structure.

That is not a small effect and it is not noise. It reproduces on every seed and on every patch size, and it is in the direction nobody expects.

Why the better-informed rule loses

The reason is the paragraph above about what each choice is for.

A pattern that has a lettering has one that the propagation is quite good at walking toward, provided the search keeps deciding creases whose letters are nearly forced. The fewest-labellings rule does exactly that: it decides the least free thing available, so most of its decisions are not really guesses and the propagation does the rest.

Branching on circuit participation ignores how free a crease is. A crease on many circuits may have both letters wide open, and choosing it is a genuine two-way guess taken early, before the propagation has narrowed anything. The search then commits to a large region on the strength of a coin-flip-shaped decision, and the standard rule’s whole virtue — that its decisions are nearly forced — has been given away in exchange for information that only pays if the answer is no.

There is a second cost and it is subtler. The fewest-labellings rule is adaptive: what it picks depends on what has already been decided, so it follows the propagation around the sheet. Circuit participation is computed once from the drawing and never changes, so the structural rule is a fixed order, and a fixed order cannot notice that the region it is about to enter has already been settled.

One node per panel: the tapered leaf, at six geometriesNodes visited against panels, for 4 crease patterns of one family searched under a constant letter order. Every point lies on or under the diagonal, which is a search that never backtracks.each point is one pattern: panels across, nodes up0010102020one node per panelnodes visitedpanels3 columns to 6 columns, and not one backtrack anywhere in the family
Fig. 5 What the standard rule achieves when it is left alone: on the leaf patterns, one step per panel exactly, at every size. There is no room above this for a better variable rule to find, which is part of why a different rule can only lose.

A useful way to see it: the fewest-labellings rule is not really choosing a variable at all. It is choosing the variable the propagation has already nearly chosen, which makes it a way of following the deduction rather than steering it. The structural rule steers, and steering is only valuable when the deduction is going nowhere. On these patterns the deduction goes almost everywhere — the search decides a hundred and fifty panels’ worth of letters from a few dozen genuine decisions — so steering it is interference.

That reading also predicts where the structural rule would win, and the prediction turns out to be right. It wins exactly where the deduction has nothing to follow, which is a pattern with no consistent lettering at all: there the propagation never converges on anything and the search is genuinely guessing, so the guesses may as well be aimed. That case is a separate essay because it does not behave as a smaller version of this one.

Fifty-two to nothing

The comparison’s numbers deserve one line of statistics, because “never cheaper and worse on fifty-two” is the sort of result that could still be a run of luck and here is not.

Of the eighty-seven patches, thirty-five are ties and fifty-two are decisive. All fifty-two go the same way.

Under the null hypothesis that the two rules are equally good — that each decisive comparison is a coin toss — the chance of fifty-two heads is 2522^{-52}, about one in four and a half thousand million million. Nothing about the sweep’s design needs defending against that.

What the ties say

The thirty-five ties are not noise either, and reading them says why the two rules can agree so often on patterns where one is catastrophically worse.

A tie means the two orders cost the same, which happens when the search barely branches at all — the propagation settles nearly every crease and the few that remain are settled in an order that does not matter. Forty per cent of the patches are in that regime, and it is the same regime the cost-per-panel constant describes: about seven creases in ten are deduced rather than decided.

So the population splits into patches where there is nothing for a variable rule to do and patches where there is something and the structural rule does it badly. There is no third group.

Which forecloses the hybrid

That has a consequence worth stating, because the natural response to “usually worse” is to use both.

A portfolio — run the standard rule and the structural rule and take whichever finishes first — is worth something only if there is some instance where the second wins. On these eighty-seven there is none. The structural rule’s expected value is not merely negative; it has no upside at all on this population, so no combination, weighting or switching rule can extract value from it on patterns that have a lettering.

That is a stronger negative than a mean comparison would give, and it is the reason the essay can recommend leaving the variable rule alone rather than recommending a mixture. A rule that never wins is not a rule to keep for the cases where it might.

The qualification is the one the essay makes elsewhere and is worth repeating here: on patterns that have a lettering. Where there is nothing to find the same rule is worth four orders of magnitude, and the sign of that four is decided by the pattern rather than by the rule.

The measurement that would have been misleading

Had the structural rule been tried on one patch, the answer could easily have come out the other way. On the square patch it is a wash — twenty-five to twenty-seven steps either way — and on the rhombille under a randomised value order it looked, for a while, mildly promising.

What settles it is the grid: eighty-seven patterns with a lettering, swept over tiling, turn angle and pleat width rather than chosen. Fifty-two losses, thirty-five ties, no wins. A single-patch comparison here would have been a coin toss dressed as a result, and this is the same failure the collection has recorded before about populations assembled from whatever was to hand.

It is also the failure the collection’s own instrument made in an earlier round of this work. Two hundred draws produced two noughts, one of which was a genuine absence and one of which was a sampling accident, and nothing in the sampler could tell them apart. A comparison between two heuristics on one instance is the same object at a smaller scale: the answer it gives is a fact about which instance was reached for, and the only repair is a population somebody has to declare in advance.

What the coin was buyingThe number of distinct letterings returned by the same search under three orders, on one tessellation patch. A coin at every choice returns a different lettering nearly every run; a constant returns the same one every time, which is what the cheaper cost is paid for.the bar is how many DIFFERENT letterings 20 runs returneda coin at every choice1414 of 20 runs found onea constant, with the coin only on the creases no vertex constrains120 of 20 runs found onea constant at every choice120 of 20 runs found oneon the rhombille patch, 157 panels and 282 creases
Fig. 6 And what removing the coin costs, on the same patch: twenty runs returning one lettering instead of twenty. The value order is where the cost lives and it is where the variety lives too.

Where the cost really was

With the variable rule left alone, the value rule is the whole story on these patterns. Replacing the search’s coin with a constant removes the rhombille patch’s tail entirely: eighty steps on every seed against a median of two hundred and fifty and a worst run of fifteen thousand eight hundred and seventy-two.

The coin's forty answers and the constant's one, on the rhombille patchNode counts for 40 runs of one lettering search on one crease pattern of 157 panels and 282 creases, ranked. Under the search's own random choice of which letter to try first the cost runs from 86 to 15872 with 15 runs unfinished; under a constant choice every run costs 80.the dot is one run's cost, ranked; the rule is the constant order1001e+31e+4nodes visited40 seeds, ranked by cost80 nodes, every seed15 unfinished at 20,000same pattern, same conditions, same test at every node — the only difference is which letter is tried first
Fig. 7 The value choice, measured the same way the variable choice was. Forty runs, ranked; the rule is what the same search costs when the coin is taken out of it.

So the accounting for these patterns is stark. The variable choice: no improvement available, and a plausible one available that costs a factor of forty-seven. The value choice: three orders of magnitude, from a change that consists of deleting a coin toss.

There is one more thing worth noticing about that asymmetry, because it is the reverse of the usual advice. A search that has a heavy-tailed cost distribution is normally taken as evidence that the instance is hard, and the standard responses — restarts, portfolios, randomisation — all treat the distribution as given. Here the distribution was not given. It was produced by the search, in the half of the search nobody had looked at, and every response that took it as given was answering a question about the instrument.

What generalises and what does not

The narrow finding is about crease patterns and is safe: on this family, with this propagation, the value order dominates.

The wide version — value ordering matters more than variable ordering — is not supported and is probably false in general. What the measurement here really shows is something about the propagation: these vertex conditions are strong enough that the standard variable rule is already near-perfect, which leaves nothing for a better variable rule to win and everything for a value rule that avoids the few genuine guesses. On a problem whose constraints propagate weakly the balance would go the other way, and the literature this borrows from is largely about such problems.

The transferable statement is smaller and more useful: measure both choices separately before improving either. The one that will be improved is not reliably the one that is costing, and a search’s author is systematically more likely to have thought about the wrong one — because the variable choice is where the interesting structure is, and interesting structure is not the same thing as expensive structure.

The other half of the transferable statement is about where to look for the coin. A value choice does not always announce itself as a coin toss. It can be a default that was never thought about — the first element of a list, the smaller of two integers, whatever the enumeration happens to produce first — and a default is a constant, which by the argument here is fine. The dangerous case is the one that looks responsible: a value choice randomised deliberately, for a reason that has nothing to do with cost, by somebody who has correctly noticed that determinism loses something. That is what happened here, the reason was good, and the price was three orders of magnitude in the worst case.

Which theorem was checked, and how

None of the above changes what the search decides. Every arrangement measured here returns a lettering that passes the four conditions at every interior vertex and forces no circle in a folded sheet rebuilt from scratch, and every arrangement that exhausts its tree without finding one agrees with every other arrangement that exhausts — which is what makes a completed exhaustion a proof rather than a report. The orders differ in cost and never in verdict, which is checked across the whole grid rather than assumed — an ordering heuristic that changed an answer would be a defect of the most serious kind, since it would mean the search was not exploring what it claims to.

Where a twist tessellation has no consistent letteringEvery combination of 4 tilings and 8 turn angles, each patch searched to a verdict. A green cell has a lettering that agrees with itself; a magenta cell has none, proved by exhausting the search rather than by failing to find one.each cell is one patch, searched to a verdictgreen: a lettering exists · magenta: none exists, by exhaustion0.150.250.350.50.70.91.11.3turn angle, in radianssquare2626262626262626elongated1515323231313232hexagonal1515394545464545triangular1515393939373737the number in a cell is the nodes the search visited; 6 of 32 patches have no lettering at all
Fig. 8 The grid the comparison is taken over: four tilings by eight turn angles, each patch searched to a verdict. The verdicts are what must agree between orders; the costs are what may differ.

What a folder gets out of it

Nothing directly, and that is worth saying rather than hiding, because this collection’s rule is that the paper corroborates and never carries.

A folder handed the rhombille patch and asked to work out its letters does not run a backtracking search. They look at a vertex, see what the sectors force, mark it, move to a neighbour, and keep going — which is the propagation, done by hand, and it settles most of the sheet exactly as it settles most of the search. Where the propagation stops, a folder guesses, and if the guess is bad they discover it two vertices later and rub something out.

What a folder does not do is guess badly a hundred times in a row and unwind a quarter of the sheet each time. They carry context: a sense of which way the pleats are running, which the search does not have and which is doing the same job a good value order does. So the finding has a hand version after all, and it is the ordinary one — the difference between somebody who has folded a tessellation before and somebody who has not is not that the first knows more theorems. It is that the first guesses right.

The printed shelf, searchedHow many nodes a search visits before returning a consistent lettering, for every pattern this collection prints at true scale. None of them requires a single backtrack: the count is one node per panel, which is the number of decisions and no more.the bar is how many nodes the search visitedon every pattern this collection prints at true scaleThe preliminary base88 panels · 8 creases · no backtrackThe Miura fold2424 panels · 38 creases · no backtrackThe square twist99 panels · 12 creases · no backtrackThe hexagon twist1313 panels · 18 creases · no backtrackThe Yoshimura pattern6065 panels · 86 creases · no backtrackFold and cut — the triangle67 panels · 6 creases · no backtrackThe tapered corrugation2828 panels · 45 creases · no backtrackThe waterbomb tessellation5152 panels · 76 creases · no backtrackone node per panel is a search that never took a letter back — the decisions simply propagated
Fig. 9 The patterns the collection prints, each searched for a lettering. Every one of them costs one step per panel with no backtracking at all: on the patterns a person would actually fold, the question this essay is about does not arise.

Where the ladder goes next

The variable choice has not finished. It buys nothing on a pattern with a lettering, and on a pattern with none it is worth four orders of magnitude — in whichever direction the pattern decides, which is what makes it a measurement rather than a recommendation. And the coin the value order removed was buying something after all, which the count of distinct witnesses prices.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

The 8 essays that link to this one and share the most of its objects, of 14 that link here.

The objects this essay names

Each one links to every other essay that touches it.

AssignmentBacktrackingConstraint propagationCycle spaceHeuristicSearchSearch costWorst-case analysis