Approximate all-pairs Hamming distances and 0-1 matrix multiplication
Abstract
Arslan showed that computing all-pairs Hamming distances is easily reducible to arithmetic 0-1 matrix multiplication (IPL 2018). We provide a reverse, linear-time reduction of arithmetic 0-1 matrix multiplication to computing all-pairs distances in a Hamming space. On the other hand, we present a fast randomized algorithm for approximate all-pairs distances in a Hamming space. By combining it with our reduction, we obtain also a fast randomized algorithm for approximate 0-1 matrix multiplication. Next, we present an output-sensitive randomized algorithm for a minimum spanning tree of a set of points in a generalized Hamming space, the lower is the cost of the minimum spanning tree the faster is our algorithm. Finally, we provide - approximation algorithms for the -center clustering and minimum-diameter -clustering problems in a Hamming space that are substantially faster than the known -approximation ones when both and are super-logarithmic.
Cite
@article{arxiv.2504.14723,
title = {Approximate all-pairs Hamming distances and 0-1 matrix multiplication},
author = {Miroslaw Kowaluk and Andrzej Lingas and Mia Persson},
journal= {arXiv preprint arXiv:2504.14723},
year = {2025}
}
Comments
18 pages