What is a good hash function for a collection (i.e., multi-set) of integers?

后端 未结 6 1232
不知归路
不知归路 2021-02-05 06:03

I\'m looking for a function that maps a multi-set of integers to an integer, hopefully with some kind of guarantee like pairwise independence.

Ideally, memory usage woul

6条回答
  •  伪装坚强ぢ
    2021-02-05 06:52

    I asked this same question on cstheory.stackexchange.com and got a good answer:

    https://cstheory.stackexchange.com/questions/3390/is-there-a-hash-function-for-a-collection-i-e-multi-set-of-integers-that-has

提交回复
热议问题