Files
wizapp-stdlib/documents/hash_tables_refs.md
T
Abdelrahman Said 222eb006e6
Release / release (push) Successful in 3s
Add extra reference for robin hood hash tables
2026-09-06 22:53:34 +01:00

3.1 KiB
Raw Blame History

Hash Tables References

SwissTable

64-bit hash from 128-bit hash

MurmurHash3 and SipHash return 128 bits. SwissTable expects 64 bits. XOR folding is the approach to use:

uint64_t fold_128_to_64(uint128_t hash) {
    return (uint64_t)(hash >> 64) ^ (uint64_t)(hash & 0xFFFFFFFFFFFFFFFF);
}

Robin Hood

Robin Hood vs SwissTable

Hybrid Open-Addressing/Separate-Chaining

Double Hashing