Is there a hash function with the following properties?
int32 hash(int32, int32)If I am correct, such a function allows achieving the following goals:
The best I found so far is multiplication of 4x4 matrix of bits, but that's awkward to implement and reduces space to 16 bits.
I am grateful for any help.
Polynomial rolling hash could help:
It's easy to concat two results or substract prefix/suffix from result, as long as the length is known.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With