Jeffrey M. Barber

Tombstone

QuickNeighborhood

Nov 2007 · age 25

What it was

A one-file algorithm study with a single question: among ten thousand random points in a unit cube, which pairs sit within radius r of each other, and can you find them without comparing all fifty million pairs or building a grid or a tree? Jeff's answer was to cut the point set with a plane and sort every point into four bands by signed distance: far below, just below, just above, far above. Pairs inside one half are found by recursing on that half. Pairs that cross the plane can only come from the two thin inner bands, so a second routine splits those two slabs again and pairs only adjacent bands. A counting sort does the partition in place. A benchmark counted distance tests rather than seconds, and the whole thing was published as one C++ file under an MIT licence.

Wins, for the age

What it taught

Genealogy

Ancestors: none on record. It stands alone, a single evening's idea finished at dawn. Descendants: none on record. The write-up it was meant to become never arrived.

Epitaph

Here lies QuickNeighborhood, which proved its point in comparisons counted and then freed memory it never owned.