#elastic #hashing #hash #hashtable #elastichash

elastic_hash_rs

Elastic Hashing from Optimal Bounds for Open Addressing without Reordering

1 unstable release

0.1.0 Feb 11, 2025

#908 in Algorithms

Download history 106/week @ 2025-02-11

106 downloads per month

MIT license

7KB
96 lines

elastic_hash_rs

Port of MWARDUNI/ElasticHashing to Rust

Based on "Optimal Bounds for Open Addressing Without Reordering - Martin Farach-Colton, Andrew Krapivin, William Kuszmaul" which is readable https://arxiv.org/pdf/2501.02305 and was written about https://www.quantamagazine.org/undergraduate-upends-a-40-year-old-data-science-conjecture-20250210/.

This code is minimal and not yet optimized. Ideas for improvement:

  • an actually good API, like hashbrown
  • no-std support with a pluggable Allocator
  • performance (SIMD??????????)

Dependencies

~1.5MB
~19K SLoC