English

Improved Time-Space Tradeoffs for 3SUM-Indexing

Data Structures and Algorithms 2026-04-27 v2

Abstract

3SUM-Indexing is a preprocessing variant of the 3SUM problem that has recently received a lot of attention. The best known time-space tradeoff for the problem is TS3=n6T S^3 = n^{6} (up to logarithmic factors), where nn is the number of input integers, SS is the length of the preprocessed data structure, and TT is the running time of the query algorithm. This tradeoff was achieved in [KP19, GGHPV20] using the Fiat-Naor generic algorithm for Function Inversion. Consequently, [GGHPV20] asked whether this algorithm can be improved by leveraging the structure of 3SUM-Indexing. In this paper, we exploit the structure of 3SUM-Indexing to give a time-space tradeoff of TS=n2.5T S = n^{2.5}, which is better than the best known one in the range n3/2Sn7/4n^{3/2} \ll S \ll n^{7/4}. We further extend this improvement to the kkSUM-Indexing problem-a generalization of 3SUM-Indexing-and to the related kkXOR-Indexing problem, where addition is replaced with XOR. we improve the known time-space tradeoff for the Jumbled Indexing problem, which is a well-known data structure problem related to 3SUM-Indexing. Our improvement comes from an alternative way to apply the Fiat-Naor algorithm to 3SUM-Indexing. Specifically, we exploit the structure of the function to be inverted by decomposing it into "sub-functions" with certain properties. This allows us to apply an improvement to the Fiat-Naor algorithm (which is not directly applicable to 3SUM-Indexing), obtained in [GGPS23] in a much larger range of parameters. We believe that our techniques may be useful in additional application-dependent optimizations of the Fiat-Naor algorithm.

Cite

@article{arxiv.2512.04258,
  title  = {Improved Time-Space Tradeoffs for 3SUM-Indexing},
  author = {Itai Dinur and Alexander Golovnev},
  journal= {arXiv preprint arXiv:2512.04258},
  year   = {2026}
}
R2 v1 2026-07-01T08:08:31.155Z