Files
wizapp-stdlib/documents/hash_tables_refs.md
T
Abdelrahman Said 60467d56b9
Release / release (push) Successful in 4s
Add paper for robin hood hashing
2026-09-01 21:35:58 +01:00

3.0 KiB

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