I am trying to write code that will do "fuzzy hashing". That is: I want several hash inputs to be on the same output so that I can quickly and easily search, etc. If A hashes to 1 and C hashes to 1, it will be trivial for me to know that A is equivalent to C.
Creating such a hash function seems difficult, so I was wondering if anyone had experience with CMPH or GPERF, and could go through creating a function that would lead to this hash function.
Thanks in advance! Stephen
@Ben
In this case, the matrices are boolean, but I can easily pack them into 64-bit integers. Rotations, translations, etc. The input does not matter and should be screened out. Thus:
000
111
000
Is equivalent
111
000
000
and
001
001
001
(simplification)
@Kinopiko
- "" , , (... ). , . .
@Jason
.
000
010
000
000
011
000