Skip to content

Add a new LSH family for Hamming distance #20

Description

@kernelmethod

What similarity measure is this hash function for?
Hamming distance

Describe the hash function
This is a single-bit hash function for bit vectors (i.e. BitArrays in Julia). It is extremely straightforward to compute: we choose a random index i into the vectors, and x[i] becomes the hash. The collision probability for a pair of vectors is their Hamming distance divided by the length of the vectors.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions