Imagine you have a hundred million web pages and you want to find all the pairs that are nearly identical — plagiarism, mirrors, near-duplicate news articles. Comparing every pair naively costs comparisons: with that is operations. Hopeless.
MinHash and Locality-Sensitive Hashing (LSH) are the two ideas that make this problem tractable.
The core insight: instead of comparing documents directly, shrink each one into a tiny sketch (a few hundred integers) such that the probability two sketches collide on a single position equals the Jaccard similarity of the original sets. Then LSH groups items into buckets — items in the same bucket are candidates worth checking, everything else is ignored.
The technique was introduced by Andrei Broder in 1997 while working on AltaVista's web-crawl deduplication. It remains one of the most elegant and practically important ideas in data engineering.
Comments
Loading comments...