Generator

Probe displacement at load 0.85, 435 keys in 512 slots

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.
Probe displacement at load 0.85, 435 keys in 512 slotsHow far each key sits from the slot it hashed to, under plain linear probing and under Robin Hood. The means are identical — 2.384 both times, and they cannot differ, because the total displacement is decided by the hash and Robin Hood only decides who bears it. The worst case falls from 48 probes to 12, and the variance from 36.94 to 7.16. A table reported by its average lookup cost would show no difference at all between these two.04812162024283236404448slots from homepale: linear probing · dark: Robin Hoodmean 2.384identical for bothworst 48 → 12var 37 → 7435 keys, 512 slots, seed 20260811displacements, counted exactly

Probe displacement at load 0.85, 435 keys in 512 slots

How far each key sits from the slot it hashed to, under plain linear probing and under Robin Hood. The means are identical — 2.384 both times, and they cannot differ, because the total displacement is decided by the hash and Robin Hood only decides who bears it. The worst case falls from 48 probes to 12, and the variance from 36.94 to 7.16. A table reported by its average lookup cost would show no difference at all between these two.

Drawn at 700 × 400, wide on the page. Everything above is what displacement-spread 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 displacement-spread. 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 displacement-spread sits