Hi everybody,
I'm looking more in depth about best hash functions for learning purpose mostly.
For bool type, I saw STL is returning 0 or 1 but Java returns 1231 or 1237. The Java approach looks more solid since 1231 and 1237 are prime numbers and also large numbers so the collision would be reduced and the combination of hash would be better. Would you recommend to use the Java approach for boolean?
For the other types, char, int8, uint8, int16, uint16, int32, uint32, int64 and uint64 what would be the best approach of hash to have the best result avoiding the maximum of collison and having proper combination result?
For string the best known is ELF still nowadays if I'm correct.
Thanks a lot!