TOPICS
Search

3SUM Problem


The 3SUM problem asks whether a given collection of n numbers contains three distinct elements whose sum is zero. Its integer and real variants are fundamental problems in the study of algorithms. The 3SUM hypothesis asserts that no algorithm solves the problem in time O(n^(2-epsilon)) for any fixed epsilon>0.

Alman and Vassilevska Williams (2026) reported a deterministic algorithm with running time O(n^(1.9992)) for integers of magnitude bounded by a polynomial in n, on a random access machine with O(logn)-bit words. Their method also gives a truly subcubic all-pairs shortest path algorithm. They state that known reductions extend the refutation of the 3SUM hypothesis to the real-input version.

Alman and Vassilevska Williams (2026) state that Anthropic's Claude discovered the core algorithm, which they checked, simplified, and extended. They also report a Lean 4 formalization and take responsibility for the results.


See also

Algorithm, All-Pairs Shortest Path, Polynomial Time

Explore with Wolfram|Alpha

References

Alman, J. and Vassilevska Williams, V. "Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs." 5 Oct 2026. https://arxiv.org/abs/2610.06783.

Cite this as:

Weisstein, Eric W. "3SUM Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/3SUMProblem.html

Subject classifications