Daniel J. Bernstein personal blog

Crit-bit Trees: the best way to store sets

A crit-bit tree can be used as a high-speed associative array. For example, an array mapping 54 to 1, 19 to 2, 99 to 3, 85 to 4, and 88 to 5 can be stored as a crit-bit tree containing 54=1, 19=2, 99=3, 85=4, and 88=5. The smallest string in the crit-bit tree larger than 85= is 85=4.
Points
106
HN comments
81
Submissions
2
Cited by
14 commenters

Math & AlgorithmsSoftware Engineering2011

On Hacker News

SubmittedTitle on HNPointsComments
Sep 19, 2011Crit-bit Trees: the best way to store sets by bumbledraven10640
Dec 17, 2013Crit-bit trees by siromoney9841

Cited in comments

Linked from 15 Hacker News comments by 14 different people, from Jan 2008 to Jul 2025.

Most recent:

Search every comment that links here →

More from Daniel J. Bernstein

All 9 posts →

Related posts from the same era