Abstract
The $k$-SUM problem is a fundamental challenge in computational complexity, often forcing a choice between slow brute-force methods with minimal memory or fast meet-in-the-middle approaches with high memory requirements. This paper introduces a deterministic self-reduction technique that allows for efficient time-space tradeoffs without the use of randomized hashing. Notably, the authors prove that the 3-SUM Conjecture is equivalent to a "weaker" version involving restricted memory, effectively lowering the threshold for proving fundamental lower bounds in computer science.
Introduction
The $k$-SUM problem asks whether a given set of $n$ numbers contains $k$ elements that sum to zero. For $k=3$, this problem serves as a benchmark for proving lower bounds across various fields, including computational geometry and dynamic data structures. Traditionally, algorithms have occupied two extremes: $O(n^k)$ time with $O(k \log n)$ space, or $O(n^{k/2})$ time with $\Omega(n^{k/2})$ space. While recent advancements have yielded "slightly subquadratic" algorithms for 3-SUM, they typically rely on large lookup tables or randomized hashing. This work provides a deterministic path to achieving high speed with low memory usage.
Methodology: Deterministic Self-Reduction
The core of this work is a deterministic self-reduction that decomposes a large $k$-SUM instance into smaller, independent subproblems.
Input Partitioning
The algorithm begins by dividing the input into $g$ blocks, each of size approximately $n/g$. This partitioning is crucial for managing memory, as it allows the algorithm to process smaller chunks of data sequentially.
The Domination Lemma
To avoid checking every possible combination of these blocks—which would be computationally prohibitive—the authors employ the Domination Lemma. This combinatorial tool defines a partial ordering on tuples of numbers, proving that only $O(kg^{k-1})$ subproblems are "non-trivial" (capable of containing a zero sum). This significantly prunes the search space.
Space-Efficient Selection
To perform this division without the memory overhead of a full sort, the authors utilize a modified median-of-medians approach ($s$-SELECT). This allows for the retrieval of the $s$-th smallest element in $O(n)$ time using only $O(s)$ auxiliary space.
Key Insights and Results
The most significant theoretical contribution is the equivalence of conjectures. The authors demonstrate that the standard 3-SUM Conjecture (no truly subquadratic algorithm exists) is equivalent to the "Small-Space" 3-SUM Conjecture. This implies that if any truly subquadratic algorithm exists, one must also exist that uses significantly less space (e.g., $O(n^{0.51})$).
Performance Benchmarks
- 3-SUM Efficiency: A deterministic algorithm achieving $O(n^2 \frac{\log \log n}{\log n})$ time with $O(\sqrt{\frac{n \log n}{\log \log n}})$ space.
- General $k$-SUM: For $k \geq 4$, the problem can be solved in $O(n^{k-2+2/k})$ time using $O(\sqrt{n})$ space.
- Derandomization: The paper successfully derandomizes previous algorithms, such as Wang’s algorithm, achieving $O(n^2)$ time with $O(\sqrt{n})$ space.
Conclusion
This research proves that space is "cheap" for the 3-SUM problem, showing that polylogarithmic time improvements can be maintained even under strict memory constraints. While the current techniques do not yet extend to Convolution 3-SUM due to its reliance on complex randomized hashing, the work sets a new standard for deterministic algorithms in the word-RAM and real-RAM models. Future research may explore whether similar deterministic strategies can handle the "false positives" inherent in randomized algebraic algorithms.
Summary updated