Overview
Locality-Sensitive Hashing supports approximate nearest-neighbor search by using hash families aligned with a similarity metric.
Hashes similar items into the same buckets with higher probability than dissimilar items.
Compact metadata for implementation and discovery.
Locality-Sensitive Hashing supports approximate nearest-neighbor search by using hash families aligned with a similarity metric.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k)
Average
O(k n)
Worst
O(k n)
Space
O(k n)
P[h(a) = h(b)] increases with similarity(a, b)Defines the hash behavior used to create candidate matches.
Show matched positions, dynamic-programming cells, or candidate buckets.
Locality-Sensitive Hashing should be used with the assumptions and tradeoffs of approximate Similarity Search in mind.
What each reference supports for this entry.
Original locality-sensitive hashing reference for sublinear approximate nearest-neighbor search.
Open sourceLarge-scale data-mining reference covering Locality-Sensitive Hashing similarity estimation, sketching, or vector comparison use case.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
LSH can use MinHash signatures for approximate set similarity search.
LSH supports approximate search, while suffix arrays support exact substring search.