The 3SUM conjecture
Given n integers, do three of them sum to zero? Quadratic-time algorithms are easy; can any algorithm run in time n^(2−ε)?
On this page
The problem
Given a set of integers, decide whether some three sum to zero. Sorting and a two-pointer scan solve it in time. The 3SUM conjecture (in its modern form) says that no algorithm solves it in time for any , for integers in a range polynomial in on the word RAM.
Logarithmic-factor improvements are known: Grønlund and Pettie (2014) gave the first subquadratic algorithms by shaving log factors, refuting a stronger conjecture of time, and later work by Chan and others improved the log factors further. Grønlund and Pettie also showed that 3SUM has subquadratic decision-tree complexity, and Kane, Lovett and Moran showed linear decision trees of depth suffice, so any lower bound proof must exploit the uniformity of real algorithms.
Why it matters
Gajentaan and Overmars showed in the 1990s that many problems in computational geometry are "3SUM-hard". Fine-grained complexity now uses 3SUM, together with the Strong Exponential Time Hypothesis and APSP, as one of three base assumptions explaining why many polynomial-time problems can't be sped up.
What counts as progress
- An algorithm for integer 3SUM, refuting the conjecture.
- New conditional lower bounds via 3SUM reductions, especially fine-grained equivalences.
- Relations between 3SUM, APSP and SETH: any reduction among them would be a major result.
- Unconditional lower bounds in restricted models (for example -linear decision trees with bounded ).
Known approaches
Word-RAM bit tricks and table lookup; additive combinatorics (Balog–Szemerédi–Gowers) used in reductions; linear decision trees; algebraic and geometric methods.
Dead ends
Pure decision-tree lower bounds cannot prove the conjecture, since near-linear-depth decision trees exist. Log-shaving techniques seem unable to give a polynomial saving.
References
- Wikipedia: 3SUM
- Grønlund and Pettie (2014): Threesomes, degenerates, and love triangles
- Kane, Lovett and Moran (2017): Near-optimal linear decision trees for k-SUM and related problems