Preprocessed 3SUM: From Reals to Integers
Nick Fischer, Jonas Schmidt
Abstract
The Preprocessed 3SUM problem asks to preprocess a set A of n numbers so that we can quickly decide whether a query subset A' ⊂eq A contains a solution a+b=c. The best known query bounds differ substantially between integer and real inputs. For integers, a series of advances with near-quadratic preprocessing reduced the query time from O(n13/7) [Chan, Lewenstein; STOC '15] to O(n11/6) [Chan, Vassilevska W., Xu; STOC '23], and finally to O(n3/2) [Kasliwal, Polak, Sharma; SOSA '25]. For reals, only the first of these bounds has been achieved, by adapting the corresponding integer algorithm [Fischer; SODA '25]. Is this gap inherent to the more limited tools available for real inputs? We give a randomized real-to-integer reduction with O(n2) preprocessing overhead and no asymptotic increase in query time. This yields O(n2) preprocessing and O(n3/2) query time for real inputs, closing the gap. We show how to extend our result to the setting where one set is unknown at preprocessing time. Our reduction is conceptually simple, and relies on an interesting technical toolkit around old and new tools from sparse linear algebra. More broadly, it suggests a route to real-to-integer reductions for other additive problems.
Create a lesson
Related papers
Near-Optimal Parallel M-Matrix Scaling
Chih-Hung Liu, Aaron Sidford, Ta-Wei Tu
Subgraph Counting with Local Node Differential Privacy
Sofya Raskhodnikova, Adam Smith, Connor Wagaman et al.
Tree Edit Distance: Near-Linear-Time Approximate, Sublinear, and Dynamic
Bingbing Hu, Tomasz Kociumaka, Jakob Nogler et al.
Per-State Signatures and Mean Time-to-Failure: An Algorithm for Systems With Simultaneous Failures
Guido Lagos, Simón Ávila
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Jakob Nogler, Agnès Totschnig, Virginia Vassilevska Williams
Parameterized Complexity of Isometric Path Cover: Treewidth and Diameter
Dibyayan Chakraborty, Oscar Defrain, Florent Foucaud et al.