A Faster Algorithm for Finding Closest Pairs in Hamming Metric

Andre Esser, Robert Kübler, Floyd Zweydinger
2/4/2021
cs.DS

Official code: FloydZ/NNAlgorithm (0 stars, C++, last commit 2023-02-10).

Abstract

We study the Closest Pair Problem in Hamming metric, which asks to find the pair with the smallest Hamming distance in a collection of binary vectors. We give a new randomized algorithm for the problem on uniformly random input outperforming previous approaches whenever the dimension of input points is small compared to the dataset size.

Show full abstract

For moderate to large dimensions, our algorithm matches the time complexity of the previously best-known locality sensitive hashing based algorithms. Technically our algorithm follows similar design principles as Dubiner (IEEE Trans. Inf. Theory 2010) and May-Ozerov (Eurocrypt 2015). Besides improving the time complexity in the aforementioned areas, we significantly simplify the analysis of these previous works. We give a modular analysis, which allows us to investigate the performance of the algorithm also on non-uniform input distributions. Furthermore, we give a proof of concept implementation of our algorithm which performs well in comparison to a quadratic search baseline. This is the first step towards answering an open question raised by May and Ozerov regarding the practicability of algorithms following these design principles.

View on arXivView PDF

Code Implementations(1)

FloydZ/NNAlgorithmOfficial100%

fast c++ header only implementation of nearest neighbor algorithm in hamming metric

00C++, PythonOct 3, 20213 years ago

Similar Papers

Cite this paper

@article{esser2021faster,
  title  = {A Faster Algorithm for Finding Closest Pairs in Hamming Metric},
  author = {Andre Esser and Robert Kübler and Floyd Zweydinger},
  year   = {2021},
  eprint = {2102.02597},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.02597}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.02597.svg)](https://codeofpaper.com/paper/2102.02597)

Discussion