SkillAgentSearch skills...

CharikarLSH

Implementation of Moses Charikar's LSH scheme in C++

Install / Use

/learn @emchristiansen/CharikarLSH
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

An implementation of the lookup phase of the locality senstive hashing scheme described in "Similarity Estimation Techniques from Rounding Algorithms" by Moses Charikar (2002). This code will take a set of equal-length bitstrings and perform approximate nearest-neighbor searches against the set in sublinear time.

This code does not hash non bitstring data into bitstring form. You'll have to do that yourself.

To use, first construct an index using CharikarUtil::mkCharikarStripes. Then query the index using CharikarUtil::findNearest. Look at main.cpp for example usage.

////////////////////////////////////////////////////////////////////////////////

The code is written in such a way that it should be very easy to port to pure C.

MIT License.

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated4y ago
Forks2

Languages

C++

Security Score

55/100

Audited on Jan 17, 2022

No findings