Top "Hash-function" questions

A hash function is an algorithm that maps large data sets of keys to smaller data sets of a fixed length.

A good hash function to use in interviews for integer numbers, strings?

I have come across situations in an interview where I needed to use a hash function for integer numbers or …

java hash-function
How can I use a C++ unordered_set for a custom class?

How can I store objects of a class in an unordered_set? My program needs to frequently check if an …

c++ unordered-set hash-function
"Fastest" hash function implemented in Java, comparing part of file

I need to compare two different files of the instance "File" in Java and want to do this with a …

java performance comparison hash-function
djb2 by Dan Bernstein for c++

I've tried to translate djb2 hash function from c-code unsigned long hash(unsigned char *str) { unsigned long hash = 5381; int c; …

c++ hash hash-function
C++11 Hash function for any enum type

I am writing a hash function for my object. I already can hash containers, and combine hashes, thanks to Generic …

c++ templates enums c++11 hash-function