The longest block
Two Routes to the Same Column
Every column here was produced twice, by methods that share no step. Agreement on all two hundred and sixty-one shapes is the whole guarantee.
252 arrangements
Every column in this record exists twice over.
Once from producing all the arrangements of a page and measuring each. Once from the gap calculation, which produces none.
Ten places, five marked
- one bar for each length the longest block can have
- the scale is linear and starts at nothing, always
5 marks in 10 places. The tallest column is a longest block of 2. The tallest column is about 20 times the shortest. The columns drawn add to 252, which is this page's whole total.
Five columns, each computed by producing every arrangement and again by the gap calculation. The two figures agreed in every case.
Each column counts the arrangements whose longest block is exactly that long. The columns of one page add to the page's own total, and the drawing checks it.
What the two know
The first method knows about places. It walks the row, finds the runs, takes the longest, and adds one to a tally.
A short trial is easier to interpret when teams first inspect the available controls and use one reporting window for everyone involved. For a separate reference on the surrounding mathematical or data topic, see SciPy.
The second knows about stretches between empty places. It never looks at a row at all; it distributes marks among stretches, subtracts the distributions that overfill one, adds back the ones subtracted twice, and takes a difference of two such counts.
They share no step and no intermediate quantity. The only thing they have in common is the answer.
Why that is the guarantee
A method checked against itself catches typing mistakes and nothing else.
Run the enumeration twice and it gives the same wrong answer twice if the measuring is wrong. Rearrange the inclusion and exclusion and it gives the same wrong answer if a term is missing. Neither repetition is evidence.
Two methods with nothing in common fail in different places. A wrong cap in the second shows up as a figure that disagrees with the first on exactly the pages where the cap bites, which is a pattern, and patterns are findable. Agreement across all two hundred and sixty-one shapes is not something two broken methods arrive at by accident.
What the agreement does not prove
That the question is well posed, or that the shapes are the right shapes to record.
Both methods count arrangements of marks in places classified by longest block. If that classification were the wrong thing to record, both would be exactly as wrong as each other, in perfect agreement, and nothing here would notice.
The check is narrow and it should be read narrowly: the figures are right for the question asked. Whether the question is worth asking is not an arithmetical matter and no arithmetic settles it.
Three further checks that cost nothing
Each page's columns must add to the page total, because an arrangement has one longest block and no other.
All the pages of a row must add to that row's own state count.
And two columns have closed forms of their own: the one for marks all standing apart is a binomial coefficient, and the one for marks all in a single run is the number of empty places plus one. Both were checked against both methods, on every page where they apply.
What was found
Nothing, on the figures.
The two methods agreed everywhere on the first run, the additions balanced, and the closed forms matched. That is an unexciting result and the right one to report: a record whose checks found faults would have had the faults fixed before publication, and a record that reports its checks passed is making a claim a reader can test.
Where faults did turn up was in the notes themselves. A caption named a figure that belonged to no page at all; a worked example labelled one calculation with another's result. Both were found by recounting the drawing, not the record, and neither would have shown up in any of the tests above.
What a disagreement would have looked like
A pattern, not a scatter.
A missing correction term in the gap calculation shows up only on pages crowded enough for two stretches to overflow at once — which is to say, on the pages with many marks and few empty places, and nowhere else. The enumeration would have agreed everywhere else and disagreed in one corner.
That is the signature to look for, and it is why the check was run across all two hundred and sixty-one shapes rather than on a sample. A sample from the sparse half would have passed.
The checks in order of strength
The two independent methods, first, because they share no step.
Then the two closed forms, which cover one column at each end of a page and catch a method that has gone wrong at the extremes.
Then the addition within a page, which catches a single bad column but not two that cancel.
Then the addition across a row, which catches a column assigned to the wrong page.
Each test is weaker than the one above it and cheaper to run. A reader with a pencil has the last two, and they are enough to find anything large.
Where a reader should start
With the addition.
Take any page on this site, add its columns, and compare with the page total printed beside them. It takes under a minute, it needs no formula, and it catches any error large enough to matter. If it balances, the page is at least self-consistent; if it does not, something here is wrong and a reader has found it.
Near this one
- Why the Columns Must Add Up
Each arrangement has one longest block and no other, so a page's columns total the page. It is the only struct - The Smallest Block Worth Counting
A longest block of two means something touched somewhere and nothing touched three deep. It is the commonest a - Reading a Row Without Counting
A tick every fifth place and a hairline between adjacent marks are what let a reader find the seventh place an - What the Blocks Part Established
A floor with a closed form, a ceiling with another, two independent routes to every column, and one addition t