English

Faster Algorithms for Average-Case Orthogonal Vectors and Closest Pair Problems

Data Structures and Algorithms 2024-10-31 v1

Abstract

We study the average-case version of the Orthogonal Vectors problem, in which one is given as input nn vectors from {0,1}d\{0,1\}^d which are chosen randomly so that each coordinate is 11 independently with probability pp. Kane and Williams [ITCS 2019] showed how to solve this problem in time O(n2δp)O(n^{2 - \delta_p}) for a constant δp>0\delta_p > 0 that depends only on pp. However, it was previously unclear how to solve the problem faster in the hardest parameter regime where pp may depend on dd. The best prior algorithm was the best worst-case algorithm by Abboud, Williams and Yu [SODA 2014], which in dimension d=clognd = c \cdot \log n, solves the problem in time n2Ω(1/logc)n^{2 - \Omega(1/\log c)}. In this paper, we give a new algorithm which improves this to n2Ω(loglogc/logc)n^{2 - \Omega(\log\log c /\log c)} in the average case for any parameter pp. As in the prior work, our algorithm uses the polynomial method. We make use of a very simple polynomial over the reals, and use a new method to analyze its performance based on computing how its value degrades as the input vectors get farther from orthogonal. To demonstrate the generality of our approach, we also solve the average-case version of the closest pair problem in the same running time.

Keywords

Cite

@article{arxiv.2410.22477,
  title  = {Faster Algorithms for Average-Case Orthogonal Vectors and Closest Pair Problems},
  author = {Josh Alman and Alexandr Andoni and Hengjie Zhang},
  journal= {arXiv preprint arXiv:2410.22477},
  year   = {2024}
}

Comments

SOSA 2025

R2 v1 2026-06-28T19:40:19.671Z