I am trying to implement count-min sketch with JavaScript. As I need some hash functions, I can not figure out which ones I can/should/must use. Any suggestions?
If this question is stupid, I'd appreciate a hint. Thanks
I think the solution is universal hashing, where you chose random hashfunctions out of a family of hashfunctions. When
Then
is universal.
There is plenty of information online, starting with Wikipedia (https://en.wikipedia.org/wiki/Universal_hashing).