Indexing the archive…
Your Universe of Digital Possibilities
Sort twelve stones with a two-pan balance. Each weighing says only which is heavier — and the judge, honest but never helpful, always keeps alive the larger half of the orderings still possible. Twelve stones can lie in 479,001,600 orders; one answer at most halves them, so no strategy, yours or the machine’s, finishes in fewer than ⌈log₂ 12!⌉ = 29 weighings (Ford & Johnson, 1959). The best method known uses 30. The one door is to read each weight — the key itself — and then it takes none at all. This instrument ends at that wall, on purpose.
A sort that only compares is a binary decision tree: each weighing branches two ways and every one of the n! orderings needs a leaf of its own. A tree of depth d has at most 2d leaves, so the worst case needs ⌈log2 n!⌉ weighings — 29 for twelve stones, whatever the method.
A question splits the C orderings still possible into the two that each answer allows. An adversary who always gives the answer with more survivors leaves C′ ≥ C/2, so each weighing removes at most one bit — and the count, starting at n!, cannot reach 1 in fewer than ⌈log2 n!⌉ weighings.
Ford and Johnson’s count: insert the lighter partners in Jacobsthal order so every binary search runs over 2k − 1 slots and wastes nothing. It meets the floor for every n up to 11 and misses it by one at twelve (F = 30 against 29) — where the true least, S(12), is also 30.
A sort that only compares is a binary decision tree: every weighing branches two ways, and every ordering of the stones must end at its own leaf. A tree of depth d has at most 2^d leaves, so n! orderings need depth ⌈log₂ n!⌉ — the information-theoretic floor, which the judge here enforces live by always keeping the larger half. Steinhaus posed the question of the fewest comparisons; Ford and Johnson’s merge-insertion (1959) came closest, and for twelve stones it needs 30, which exhaustive search later showed is the true least (Knuth’s volume 3 tells the story). The door is exact: give up comparing and read the keys — counting sort — and the floor is gone. Nothing about the wall moved; the scale did. What sorting costs is The Rank’s neighbour; what a squeeze can’t do to a file is The Squeeze’s — the same pigeonhole, counted in names instead of weighings — and the next wall, The Ack, asks what two generals can ever know.