|
ADS
Algorithms and Data Structures
|
Hashing with random tables, beyond the book: More...
#include "ADS/Contract.h"#include <array>#include <atomic>#include <bit>#include <cstddef>#include <cstdint>#include <limits>#include <ranges>#include <vector>#include "ADS/dictionary/impl/RandomHashing.tpp"Go to the source code of this file.
Classes | |
| class | ADS::SplitMix64 |
| the generator SplitMix64, a UniformRandomBitGenerator More... | |
| class | ADS::ZobristTable |
| a random word for each pair \( ( f , v ) \) of a feature and a value More... | |
| class | ADS::TabulationHash |
| the simple tabulation hashing of the keys of 64 bits More... | |
Namespaces | |
| namespace | ADS |
Functions | |
| constexpr std::uint64_t | ADS::splitmix64 (std::uint64_t x) |
| the mix of SplitMix64: a bijection of the words of 64 bits | |
| constexpr std::uint64_t | ADS::fibonacciPlace (std::uint64_t h, int b) |
| the place of the hash \( h \) in a table of \( 2^b \) places, its top \( b \) bits after the product by \( \lfloor 2^{64} / \phi \rfloor \) | |
Hashing with random tables, beyond the book:
The contracts [see Contract.h]: \( 1 \le b \le 64 \) for fibonacciPlace(), at least a feature and a value for ZobristTable, and the features and the values within it. The functions are defined in RandomHashing.tpp.