The problem
Take three lists of integers: 1, 4, 7 in the first; 2, 5, 8 in the second; and 6, 9, 12 in the third. Choosing 4 and 2 gives 6, a match in the third list. The task is to decide whether any such match exists. With three entries in each of the first two lists, there are nine candidate pairs; doubling both list lengths gives four times as many pairs. Can an algorithm without random choices decide this on arbitrary growing lists with a fixed improvement in that growth rate? The integers are machine-sized: their bit counts are at most a fixed multiple of the bits needed to label list positions.[1] [2]
The 3SUM question asks whether one can decide the existence of a matching sum substantially faster than quadratic time on arbitrary input sets. Given -element integer sets , it asks whether there are , , with . In the toy sets , , , the pair certifies yes because . This page restricts numbers to bits and uses a word RAM with -bit words, so arithmetic cannot pack arbitrarily large inputs into one unit-cost word. The target is a deterministic worst-case time bound for one fixed . The saving must apply throughout the eligible input family, not just on easy examples.[1] [2]
Scope
Given three sets A, B and C of n integers with O(log n)-bit representations, decide whether a + b = c. This entry asks whether a deterministic algorithm runs in O(n^(2−ε)) time for fixed ε > 0 on a word RAM with Θ(log n)-bit words.
What remains open
Why it matters
This is a small arithmetic question that serves as a benchmark for other algorithms. Certain geometric and graph problems can encode 3SUM instances, so sufficiently fast algorithms for those problems would also make 3SUM faster. The hypothesis helps explain why apparently different tasks resist particular speedups, with the connection conditional on the stated model and the kind of reduction used.[1] [2]
The hypothesis supports precise conditional barriers through reductions, including deterministic reductions to offline set intersection and triangle-listing tasks. The computation model matters: a randomized reduction may require a hardness assumption against randomized 3SUM algorithms, stronger than the deterministic target on this page. Separating raw-input time, preprocessing time, word size and randomness keeps the resulting comparisons meaningful rather than treating every problem labelled “3SUM-hard” as having the same guarantee.[1] [2]
Definitions
3 terms
word RAM
A random-access machine model that charges basic operations on machine words as individual steps. Here words contain a number of bits proportional to the logarithm of the input-set size.[1]
fine-grained complexity
The study of detailed running-time differences among problems, often relating fixed power improvements through reductions rather than only distinguishing polynomial from exponential time.[2]
reduction
A procedure converting one computational task to another. For a fine-grained hardness implication, the conversion’s time and input-size growth must preserve the relevant speedup, and its use of randomness must be tracked.[2]
Sources
- Preprocessed 3SUM for Unknown Universes with Subquadratic Space
Notes on Preprocessed 3SUM for Unknown Universes with Subquadratic Space
July 1, 2026 conference article: selected introduction, Theorem 1 and §2 describe polynomially bounded integers, machine words and a randomized preprocessed-universe tradeoff with essentially quadratic preparation. Faster later queries do not settle the scoped deterministic raw-input problem.
- Deterministic 3SUM-Hardness
Notes on Deterministic 3SUM-Hardness
Exact October 19, 2023 arXiv v1 landing and selected served v1 PDF introduction, Hypothesis 1.1 and Theorems 1.2–1.4 supply the deterministic hypothesis and reduction motivation. Corresponding conference passages were read separately, without a claim of PDF byte identity. The fixed polynomial universe can depend on the proposed saving.