Generator

Two floors, 8 distinct values among 256

Rendered here at the parameters it defaults to, with every essay that calls it — which is the same list as the blast radius of changing it.
Two floors, 8 distinct values among 256Every sort's comparison count on an input drawn from 8 distinct values, on a logarithmic axis, with both floors marked. The right-hand line is log₂(n!) = 1,684 bits, which is the floor every table quotes. The left-hand line is the log of the multinomial — 739 bits — which is the number of outcomes a sort must actually separate, and it is 2.28 times lower. Merge sort sits exactly on the right-hand line and is 2.28 times above the left-hand one.the floor that applieslog₂(n!)Merge sort2.3×1,682Shellsort2.3×1,714Merge sort + cutoff2.6×1,938Heapsort4.2×3,101Quicksort, first6.6×4,887Quicksort, random7.2×5,291Quicksort, median-37.8×5,728Insertion sort18.5×13,644Bubble sort43.1×31,820Selection sort44.2×32,6408 distinct values, n = 256, seededthe two floors are 2.28× apart

Two floors, 8 distinct values among 256

Every sort's comparison count on an input drawn from 8 distinct values, on a logarithmic axis, with both floors marked. The right-hand line is log₂(n!) = 1,684 bits, which is the floor every table quotes. The left-hand line is the log of the multinomial — 739 bits — which is the number of outcomes a sort must actually separate, and it is 2.28 times lower. Merge sort sits exactly on the right-hand line and is 2.28 times above the left-hand one.

Drawn at 700 × 418, wide on the page. Everything above is what entropy-floor returns with no arguments; the caption is the generator's own, computed from the numbers in the drawing rather than written beside it.

2 essays call entropy-floor. The drawing above is what it returns with no arguments at all; every call below passes it something, because a placement that passes nothing draws whichever member of the family the generator happens to default to rather than the one its essay argues about — which is what optcheck and figfill exist to catch.

Where it is called

Changing this generator changes every one of these figures.

The library, page 2 of 5 — where entropy-floor sits