Skip to content
Eight Items

Fifty notes on pointers that never lead back

The longest chain

What the Third Number Measures

Climb from every item, count the items touched, take the largest. That single number is the third of the three, and it is the one that has to be worked out.

2 097 152 arrangements

Home · The longest chain · Reference

Pick an item. Climb its pointer to the next item, and that one's pointer to the next, until you reach an item pointing nowhere. Count the items you stood on, including the one you started from and the top you finished at.

Do that from every item in turn. The largest count you get is the arrangement's depth, and it is the third of the three numbers.

If a review stage repeatedly exceeds its estimate, coordinators can review the official documentation and inspect dependencies before changing capacity. For a separate reference connected with mathematics, research practice or conference work, see Fields Institute.

Three depths on one page

LEVELSSHAPEPAGEWITH dSHARE1238 / 1 / 3items / tops / depth2 097 15250 568about 1 in 41123458 / 1 / 5items / tops / depth2 097 152757 68036 per cent123456788 / 1 / 8items / tops / depth2 097 15240 320about 1 in 52
  • one band for each level, counted from the top down
  • one cell for each item, sitting inside the cell of the item it points at
  • a hairline where one cell ends and the next begins
  • the number of bands is the longest chain, which is the third of the three numbers

Three arrangements are drawn. Every row has the same number of items. Which item sits where is the drawing's own choice and carries no meaning.

The same page three times over, at three different depths. The page total is identical in all three rows; only the column changes, and it changes by a factor of fifteen.

Both figures are recomputed from the three numbers by the drawing itself: the page from a binomial coefficient and a power, the column by summing over level profiles. Nothing here is looked up.

Counted in items, not moves

A lone top has a depth of one here. An item pointing straight at a top has a depth of two. A chain of eight items has a depth of eight.

The alternative convention counts moves rather than items and gives one less in every case. Neither is more correct. This record counts items, says so, and is consistent about it; a note in the part on limits sets out why and what changes if you prefer the other.

It is the number you have to work for

The first two numbers are visible. Count the items; count the ones pointing nowhere. Nothing is hidden.

Depth is not visible. You have to trace, and you have to trace from every item, because the longest climb may not start where you expect. An arrangement can have six items sitting one step below the top and one item sitting five steps below, and its depth is six whatever the other six items do.

That asymmetry is the reason the record is organised the way it is. Pages are what you can see; columns are what tracing tells you.

The same page, the same two million and ninety-seven thousand, one hundred and fifty-two arrangements — and the column at a depth of five is fifteen times the column at eight.

What it does not measure

Depth is a maximum, not an average and not a typical value.

An arrangement with a depth of eight has at least one climb of eight items. It may have exactly one, with everything else sitting flat beside it. Nothing in the third number distinguishes a single long chain from a collection of long chains.

It also says nothing about width. Two arrangements of eight items with one top and a depth of four can look entirely different — one with the items spread evenly over four levels, another with six on the second level and single items trailing below.

Both are counted. Both have the same three numbers. The record cannot tell them apart and does not try.

The range it can take

On any page the depth runs between a floor and a ceiling, both of which the first two numbers determine.

The floor is two, except on the page where every item is a top, and there it is one.

The ceiling is items less tops, plus one — the deepest possible arrangement being one where the tops occupy the first level and every level below holds a single item.

Eight items with one top: depth two to eight, seven columns. Eight items with five tops: depth two to four, three columns. Eight items with seven tops: depth two only, one column.

Tracing it by hand

The definition is easy to state and slightly fiddly to apply, so here it is on a small case.

Six items. The first points nowhere. The second and third point at the first. The fourth points at the second. The fifth points at the fourth. The sixth points at the third.

Climb from each in turn. From the first: one item. From the second: two. From the third: two. From the fourth: three. From the fifth: four. From the sixth: three.

The largest is four, so the depth is four.

Notice that four of the six climbs gave an answer smaller than the depth, and that the climb giving the answer started at the fifth item, which is in no way distinguished until you trace it. That is why every item has to be tried: there is no way to know in advance which one sits deepest.

The drawings make this visible at a glance, which is their whole point. Six items at a depth of four give four bands, and the fifth item's cell sits in the fourth. No climbing required.

Where the arrangements sit in that range

Not evenly, and not at the shallow end.

On the page drawn above — eight items, one top — the column at a depth of two holds eight arrangements. The column at five holds seven hundred and fifty-seven thousand six hundred and eighty. The column at eight holds forty thousand three hundred and twenty.

The shape is a hump, placed somewhere in the middle, with a very thin tail at the shallow end and a thicker one at the deep end. Where the hump sits, and why it is never where people expect, is the subject of the last part of this record.

Near this one