Finding faster quantum algorithms with agents and formal verification
deepmind.google·3d ago

TL;DR
Unix engineers, led by Douglas McIlroy, ingeniously fit a 250kB dictionary into just 64kB of RAM for the Unix spell checker using advanced compression techniques.
✦ Why It Matters
Explore specialized data structures and compression techniques to optimize memory usage in your projects.
Key Takeaways
How It Works
McIlroy's approach involved a stemming algorithm to reduce words to their base forms, followed by a Bloom filter for fast lookups. As the dictionary expanded, he switched to a compressed hashing scheme that stored differences between sorted hash codes, leveraging Golomb coding for efficient compression.
Related