D
desktop
Maybe not specific related to C++ but inspired by the recent discussions
about unordered_set in the upcoming C++x0 release.
When using universal hashing a new hash-function from a family of
hash-functions is used to map a key into the table.
Lets assume that hash-function H1 has been used to map key k1 to the
table and H2 to map k2 to the table.
I would now like to make a lookup on k1. But from the point of view of
lookup how does it know which hash-function to use?
about unordered_set in the upcoming C++x0 release.
When using universal hashing a new hash-function from a family of
hash-functions is used to map a key into the table.
Lets assume that hash-function H1 has been used to map key k1 to the
table and H2 to map k2 to the table.
I would now like to make a lookup on k1. But from the point of view of
lookup how does it know which hash-function to use?