What it costs to know

A shallow machine pays in states, not folds

A machine allowed to take only a few layers of the pile at a time reaches fewer folded states, and the natural fear is that it also reaches the ones it does by much longer sequences. Walked breadth first, so that every state's shortest sequence is found, it does not. On unevenly creased strips every state takes exactly one fold per crease at every depth, because no two creases ever lie on one line. On strips of equal stamps a shallower machine needs one fold more for a minority of states and two more for eight of the 924 states at seven stamps — and never more than the crease count, which no machine can exceed.

Assumes The easiest strip needs the deepest reach and Deciding is not making.

The easiest strip needs the deepest reach gave the machines in this line of argument a dial. A machine folding a strip may take a block of layers from the top or the bottom of the pile, and the dial is how many: at one it is the patient machine, which reaches four folded states of any strip, and at the pile’s full depth it is the machine that may choose, which reaches all of them. Every strip measured was complete one layer short of the whole pile, and the evenly creased strip — the one the machine that takes everything folds perfectly — needed the deepest reach of all.

It ended on a worry it could not settle. A shallower machine that reaches a state must reach it by doing less at each move, and a completeness that takes a hundred folds to use is not much of a completeness. The reach table counted states and said nothing about sequences.

The worry can be answered by walking the same tree of moves in a different order. The answer is that it was the wrong worry: depth buys states, and almost nothing else.

How many folds each state takesFor evenly and unevenly creased strips, the fewest, mean and most folds in the shortest sequence that produces each folded state, with the crease count beside it. On uneven strips every state takes exactly one fold per crease; on even ones folds can take several creases at once and the fastest state takes the logarithm of the stamp count. The machine that takes every layer needs exactly as many folds for every state it reaches.the shortest sequence of folds to each state, for the machine that may choose its blockfewest, mean and most over every state of every marking; the last column compares the machine that takes everythingstripstatescreasesfewestmeanmostall layers4 equal stamps32322.753the same5 equal stamps100433.404the same6 equal stamps288534.045the samecreases at .20 .55 .708333.003reaches nonecreases at .15 .40 .50 .8516444.004reaches nonecreases at .13 .31 .62 .7824444.004reaches nonecreases at .40 .50 .62 .7212444.004reaches nonecreases at .08 .24 .28 .35 .7248555.005reaches nonea fold uses at least one crease, so no sequence is longer than the crease count
Fig. 1 For strips of four, five and six equal stamps and five unevenly creased strips: the fewest, mean and most folds in the shortest sequence that produces each folded state, for the machine that may take any block, with the crease count beside them. On every uneven strip every state takes exactly its crease count; the machine that takes the whole pile needs exactly the same number of folds for every state it reaches.

Breadth first, so the first arrival is the shortest

The earlier count walked the tree of fold sequences depth first. That finds every state a machine can reach and says nothing about how quickly, because a depth-first walk arrives at a state by whatever sequence it happens to try first.

A breadth-first walk tries every sequence of one fold, then every sequence of two, and so on. The first time a finished state appears, the sequence that produced it is as short as any can be, and marking it then gives every state its shortest sequence in one pass. Two piles that are identical — the same pieces of strip at the same positions in the same order — are the same node however they were reached, so the walk expands each once.

Two facts bound every number before any walk is run.

No sequence is longer than the crease count. A simple fold consumes at least one crease, because a fold line has to pass through a crease on every layer it takes, and a folded crease stays folded. A strip of six stamps has five creases, so no machine takes more than five folds to anything.

No sequence on equal stamps is shorter than log2n\lceil \log_2 n \rceil. A fold at a stamp boundary leaves a pile at least half as wide as before, and a finished pile is one stamp wide, so halving has to happen at least that many times. For four stamps that is two folds, for five to eight it is three.

The first figure reads both bounds off the measurement. On four, five and six equal stamps the fastest state takes exactly two, three and three folds, which is the logarithm; the slowest takes exactly the crease count.

On an uneven strip, one crease per fold

The uneven rows are the plainest result in the table, and the easiest to explain. Every state of every unevenly creased strip takes exactly as many folds as the strip has creases, at every depth. The strip with five creases at 0.08, 0.24, 0.28, 0.35 and 0.72 has forty-eight folded states, and all forty-eight take five folds whatever the machine.

A fold takes two creases at once only if they lie on the same line at the moment of folding — two layers of the pile each creased at exactly the point where the fold is made. For that to happen the two creases have to have been brought to the same position by the folds before, which on a strip means that some pattern of the segment lengths adds up to zero. Equal stamps do that constantly, because every crease is a whole number of stamp widths from every other. Unequal spacings generically never do, and on the five strips measured they never did.

So on an uneven strip the depth of the machine has one effect only. The patient machine reaches four states in five folds each; the machine that may choose reaches forty-eight in five folds each. What the extra depth buys is which pile of layers ends up where, and not a single fold of speed.

Reach against the depth the machine may holdFor each strip, how many of its folded states a machine can produce when it may take at most one layer, at most two, and so on up to the whole pile. Every row reaches everything before the last column, so the move that takes the whole pile is never the one that completes it.states reached, against how many layers the machine may takethe heading is the block depth, always reaching the top or the bottom of the pilestrip123456creases at .20 .55 .704all 8all 8all 8creases at .15 .40 .50 .854all 16all 16all 16all 16creases at .13 .31 .62 .784820all 24all 24creases at .40 .50 .62 .7244all 12all 12all 12creases at .08 .24 .28 .35 .724162028all 48all 48the whole pile is the rightmost column of each row, and no row needs it
Fig. 2 For the unevenly creased strips, how many folded states a machine reaches as the number of layers it may take rises from one to the pile’s full depth. Depth adds states on every strip, though not at every step — one strip gains nothing from a second layer — and the table above shows none of the states it adds costs an extra fold.

That separates two things the machine models have always mixed. A move’s power is how many layers it may hold, and a move’s reach is how many creases it can fold at once. On an uneven strip the second is always one, so every move is equally slow, and the only difference between machines is what they can put where.

The patient machine is the slowest and the narrowest at once

The two ends of the dial make the shape of the result easiest to see.

At depth one — the patient machine — a fold takes exactly one layer, so it folds exactly one crease, and every sequence is the crease count long. It reaches four states on every strip, the accordion folded from either end and either face. It is as slow as any machine can be on every state it reaches, and it reaches the fewest.

At full depth — the machine that may choose — it reaches every state, and on equal stamps some of them in the logarithm of the stamp count. It is the fastest and the widest.

Three machines, asked what they can produceFor each strip and each of the three machine models, how many of the strip's folded states a sequence of that machine's folds can produce. The machine that may choose its block reaches all of them everywhere; the machine that takes one layer reaches four wherever it is asked; and the machine that takes everything is the only one whose answer depends on how the strip is creased.the pale bar is every folded state the strip has; the dark one is what the machine reachesthree machines on the same strips, and none of them is the flat-folding theorem3 equal stamps · takes every layerall 123 equal stamps · takes one layer4 of 123 equal stamps · takes any block reaching an edgeall 124 equal stamps · takes every layerall 324 equal stamps · takes one layer4 of 324 equal stamps · takes any block reaching an edgeall 325 equal stamps · takes every layerall 1005 equal stamps · takes one layer4 of 1005 equal stamps · takes any block reaching an edgeall 1006 equal stamps · takes every layerall 2886 equal stamps · takes one layer4 of 2886 equal stamps · takes any block reaching an edgeall 288counted over every marking of the strip that folds flat at all
Fig. 3 How many folded states each of the three machines produces on strips of three to six equal stamps: the machine that takes every layer, the one that takes one, and the one that may take any block reaching an edge. The last reaches everything; the one-layer machine reaches four on every strip.

It would be natural to read those two ends as one trade — a machine that holds more gets more and gets it faster — and to expect the dial to move both together. On uneven strips the dial moves only the reach; speed is pinned at the crease count from one end to the other. On equal stamps it moves both, but not together: by depth four on six stamps the speed has already arrived and the reach has not, and the depths that complete the reach add states at full speed. The two quantities have different thresholds, and the one a folder would worry about arrives first.

On equal stamps, depth is also speed — a little

Equal stamps are where folds can take several creases at once, and so where the worry had a chance. A machine that may take a block of four layers can fold four stacked creases in one motion; one that may take two cannot.

What a shallow machine pays in folds, on 6 stampsFor each depth a machine may reach into the pile, the states of a strip of 6 equal stamps it produces, split by how many more folds its shortest sequence needs than the machine that may take any block. Almost every state costs nothing extra, and none costs more than a fold or two.what a shallow machine pays in folds, state by state, on 6 equal stampsthe pale bars are states with no extra cost, the dark ones the states a shallow machine takes longer overdepth 14as short as at full depth, of 4 reacheddepth 252as short as at full depth, of 60 reacheddepth 2, 1 more81 more fold than at full depthdepth 3140as short as at full depth, of 172 reacheddepth 3, 1 more321 more fold than at full depthdepth 4236as short as at full depth, of 236 reacheddepth is how many layers a fold may take from the top or bottom; full depth reaches all 288 states
Fig. 4 For each depth a machine may reach into the pile, the states of a strip of six equal stamps it produces, split by how many more folds its shortest sequence needs than the machine that may take any block. At depth two, 8 of 60 states need one more fold; at depth three, 32 of 172; at depth four none do.

On six stamps the machine that may choose reaches all 288 states, with shortest sequences of three, four or five folds. Restricted to blocks of two layers it reaches sixty, and fifty-two of those sixty take exactly as many folds as they do at full depth; eight take one more. At three layers it reaches 172, and 140 are as fast as ever while 32 take one more fold. At four it reaches 236, every one of them at full speed.

The cost of shallowness in folds is therefore one fold, on a minority of states, and it vanishes before the depth at which the reach does. Depth four on six stamps is already as fast as full depth on everything it reaches, and still misses 52 states — which is the reach table’s point made again from the other side: what the last layers of depth buy is states.

Seven stamps, and the first state two folds dearer

What a shallow machine pays in folds, on 7 stampsFor each depth a machine may reach into the pile, the states of a strip of 7 equal stamps it produces, split by how many more folds its shortest sequence needs than the machine that may take any block. Almost every state costs nothing extra, and none costs more than a fold or two.what a shallow machine pays in folds, state by state, on 7 equal stampsthe pale bars are states with no extra cost, the dark ones the states a shallow machine takes longer overdepth 14as short as at full depth, of 4 reacheddepth 268as short as at full depth, of 100 reacheddepth 2, 1 more321 more fold than at full depthdepth 3264as short as at full depth, of 368 reacheddepth 3, 1 more1041 more fold than at full depthdepth 4508as short as at full depth, of 612 reacheddepth 4, 1 more961 more fold than at full depthdepth 4, 2 more82 more folds than at full depthdepth 5796as short as at full depth, of 796 reacheddepth is how many layers a fold may take from the top or bottom; full depth reaches all 924 states
Fig. 5 The same split for a strip of seven equal stamps. One more fold is common at depths two to four; two more appears for the first time, on eight states at depth four; and at depth five every one of the 796 states reached is as fast as at full depth.

Seven stamps has 924 folded states, and the pattern holds with one addition. At depth two the machine reaches a hundred states, thirty-two of them one fold dearer than at full depth. At depth three it reaches 368 and 104 are one fold dearer. At depth four it reaches 612; ninety-six are one fold dearer and eight are two folds dearer — the first states in any strip measured whose shortest sequence grows by more than one when the machine loses depth. At depth five the machine reaches 796, all at full speed.

Two folds is the largest penalty anywhere in the measurement, and it arrives on eight states out of 924, at the one depth where the machine is shallow enough to lose speed and deep enough to reach them at all. The bound on it is the crease count: no state on seven stamps takes more than six folds from any machine, and the fastest take three.

The machine that takes everything is exactly as fast

The last column of the first figure is the quietest and the most surprising. The all-layers machine — which must fold every layer the fold line crosses, and which on equal stamps up to six reaches every state there is — needs exactly the same number of folds as the machine that may choose, for every state it reaches. Its 288 states on six stamps have the same shortest sequences, state for state, as the some-layers machine’s 288.

That is not what its restriction would suggest. Being forced to fold everything under the line sounds like a machine that must take detours; on equal stamps the detours never cost anything, because taking the whole pile at a stamp boundary is always a legal fold and folds every stacked crease at once. Its restriction costs it states on uneven strips, where it reaches none, and costs it nothing in speed on the strips where it reaches anything.

Where the machine catches up found the all-layers machine complete on equal stamps to six and missing states at seven. The sequence measurement adds that where it is complete, it is also optimal — a guillotine brake on a strip of six equal stamps can make every folded state in the fewest folds any machine can.

Why the penalty is so small

A shallow machine loses speed only when the fastest sequence needs a fold that takes more layers than it may hold, and that requires two things at once: several creases stacked on one line, and no equally short sequence that folds them in smaller blocks.

The first is common on equal stamps and the second is rare. A block of four stacked creases that a shallow machine cannot take in one fold can usually be taken as two blocks of two in two folds — one extra fold — and the fold that would have taken four was one of only log2n\lceil \log_2 n \rceil to n1n - 1 folds in the sequence. Splitting one deep fold into two shallow ones costs one, and doing it twice costs two, which is what the eight states at seven stamps do.

The largest a penalty could be is set by how many deep folds a fastest sequence contains, and a fastest sequence on seven stamps is three folds long. The penalty cannot outgrow the thing it is a penalty on.

There is a matching statement at the other end of the scale. The fastest possible sequence on equal stamps halves the pile at every fold, and only a machine deep enough to take the whole folded half can do that; a machine restricted to two layers can halve a pile of four and not a pile of eight. So the logarithmic floor is reserved for deep machines, and on long enough strips a shallow machine would pay on every state near the floor. That is the regime seven stamps is only beginning to enter, and it is why the first two-fold penalty appears there and not earlier: on six stamps the fastest sequences are three folds against a floor of three, and on seven they are still three against the same floor, with one more stamp to halve.

Which depth each strip needed, beside what it cost

How much of the pile a machine has to be allowed to holdFor each strip, the smallest number of layers a machine must be allowed to take — always reaching the top or the bottom of the pile — before it can produce every folded state the strip has. The evenly creased strips need one less than their segment count; the uneven ones need between two and that.how deep into the pile the machine has to be allowed to reach before it reaches every stateone layer is the patient machine and the full depth is the machine that may choose3 equal stamps22 of a possible 3 · 12 states4 equal stamps33 of a possible 4 · 32 states5 equal stamps44 of a possible 5 · 100 states6 equal stamps55 of a possible 6 · 288 statescreases at .20 .55 .7022 of a possible 4 · 8 statescreases at .15 .40 .50 .8522 of a possible 5 · 16 statescreases at .13 .31 .62 .7844 of a possible 5 · 24 statescreases at .40 .50 .62 .7233 of a possible 5 · 12 statescreases at .08 .24 .28 .35 .7255 of a possible 6 · 48 statesthe even strips are the ones that need the most, and they are the ones the machine that takes everything does best on
Fig. 6 For every strip, the smallest depth at which a machine reaches all its folded states. The equal-stamp strips need one less than their segment count and the uneven ones between two and that — the measurement the sequence walk is set against.

The reach table and the sequence table measure the same machines and they disagree about which strips are hard. By reach, the equal-stamp strips are the demanding ones: six stamps needs a depth of five before every state is available. By speed, the equal-stamp strips are the only ones where depth helps at all, and where it helps it helps by a fold.

So the strip that needs the deepest reach is also the only strip on which reach and speed are connected. On an uneven strip a deeper machine buys states and nothing else; on an equal one it buys states and, occasionally, one fold. The oldest open problem counts the foldings of equal stamps precisely because they are the case where everything lines up, and lining up is what makes a fold able to do more than one thing — the same property makes them expensive to reach and cheap to fold.

What the walk assumes

A fold is an ideal simple fold. It takes a contiguous block from the top or bottom of the pile, turns everything on one side of a line through 180°, and never tears a piece away from the one joined to it — the same model the fold a machine can make introduced and every later comparison used.

A sequence is counted in folds, not in time or motion. A fold that takes six layers counts once, the same as one that takes one, though no hand or brake would find them equally easy.

A state is the pile’s observable order. Two piles that differ only in the order of stamps that never lie over one another are one state, as in the count counts labels, and a finished state must respect the strip’s marking.

What the measurement does not reach

It stops at seven stamps. The breadth-first walk at every depth on seven stamps takes most of two minutes, and eight would take far longer; the claim that the penalty never exceeds two folds is a claim about the strips measured.

It measures the shortest sequence and not the typical one. A machine searching blind would take longer than the shortest sequence, and the depth that makes a search easy is a different question from the depth that makes the answer short.

And it says nothing about machines that fold more than one line at a time. A machine that can only crimp takes two adjacent creases as a single move; its sequences are counted in crimps, and whether its reach trades against length the same way is not measured here.

Still open: what the missed states have in common

The sequence measurement settles the worry about length and puts the weight back on the other half of the reach table.

The all-layers machine misses twenty-eight of the 924 states on seven stamps — fourteen, each with the same pile turned over — and the machine that may choose reaches every one of them in at most six folds. Nothing about length explains the misses, since the all-layers machine is as fast as any machine on what it does reach. What the fourteen have in common is a question about the piles themselves, and it is the one that would say what the even strip’s completeness at six actually rested on.

Sideways from here, the one-crease-per-fold result on uneven strips is a statement about coincidence, and coincidence has a price elsewhere in this subject. The cost is in the coincidences finds a search’s cost concentrated where lengths line up. On a strip the same lining-up is what lets one fold do the work of several — so the strips that are slowest to fold are exactly the ones on which nothing coincides, and the question of whether that is the same phenomenon or an echo of it is open.

The habit worth carrying is about restrictions and what they cost. Before assuming a weaker machine is slower, check whether its moves were ever doing more than one thing. On a strip where every fold takes one crease, every machine is equally slow and the restriction can only cost reach; the speed question exists only where the input lets one move do several jobs, and even there the jobs split cheaply.

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

Every essay whose body links to this one.

The objects this essay names

Each one links to every other essay that touches it.

Breadth-first searchLayer orderingThe machine modelReachabilitySimple foldabilityStacking