Complexity of real 3SUM

Given n real numbers, 3SUM asks whether three input elements sum to zero. The time bound depends on the permitted operations on real numbers and on whether the algorithm may make random choices.

Why it matters and what counts as progress

Why it matters: Real 3SUM is a source for conditional lower bounds. A deterministic subquadratic algorithm gives a polynomial saving on exact real inputs without relying on random sampling.

What counts as progress: State the allowed operations, running time and randomization and error guarantees. A truly subquadratic bound has exponent at most 2−ε2-\varepsilon for a fixed ε>0\varepsilon >0.

How the problem developed

  1. 2022 · Triangle reductions [3]

    Timothy M. Chan, Virginia Vassilevska Williams and Yinzhan Xu Developed reductions from real 3SUM to sparse triangle problems.

  2. 5 Oct 2026 · Truly subquadratic Las Vegas algorithm [2]

    Josh Alman, Virginia Vassilevska Williams and Anthropic Combined earlier reductions with faster selected-entry matrix multiplication.

  3. 30 Oct 2026 · Deterministic real 3SUM [1]

    Timothy M. Chan, Reina Itakura, Zhiyuan Ma, Yuancheng Yu and ChatGPT Sol 6.1 Gave a deterministic O(n1⋅9998)O(n^{1}\cdot ^{9998}) algorithm from selected triangle counts.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

Faster integer 3SUM by subset convolution

Timothy M. Chan, Reina Itakura, Zhiyuan Ma, Yuancheng Yu

For three sets of n polynomially bounded integers, the subset-convolution algorithm solves 3SUM in O(n1⋅965)O(n^{1}\cdot ^{965}) Monte Carlo time with error probability O(1/n)O(1/n), without matrix multiplication or FFT. For every fixed odd k≥5k\ge 5, a vector-convolution extension solves k-SUM on polynomially bounded integers in O(n(⌈k/2⌉−εk))O(n^{(\lceil k/2\rceil -\varepsilon _{k})}) Monte Carlo time for some εk>0\varepsilon _{k}>0. Separate deterministic reductions to counting triangles through specified edges give O(n1⋅9998)O(n^{1}\cdot ^{9998}) for real 3SUM and O(n2⋅9997)O(n^{2}\cdot ^{9997}) for real APSP.

AI involvementAI-led
ImportanceNotable
Technical verificationFormal (human)
Human understandingExplained
Paper date:

Sources

  1. 3SUM Made Simpler (Without Matrix Multiplication), k-SUM Hypothesis Refuted for Odd k, and Real 3SUM/APSP Derandomized
  2. Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs
  3. Hardness for Triangle Problems under Even More Believable Hypotheses
Publication history