3SUM

Given nn integers, decide whether three distinct positions sum to zero. For each fixed kk, inputs have magnitude at most nkn^k. One deterministic word-RAM program per kk must work for every word width W≥b(⌊log⁡2n⌋+1)W \ge b(\lfloor\log_2 n\rfloor+1), with a fixed constant bb. Signed arithmetic, indirect memory access and branches cost one step.

Classic bound: O(n2)O(n^{2}) (Gajentaan and Overmars 1995, account of the folklore algorithm).

The bound has the form O(nα)O(n^{\alpha}). α\alpha is the time exponent; lower is better.

RankBoundEvidence levelLevelPlayerDateLink
1O(n1.995782)O(n^{1.995782})ClaimedSwapnil-jainSourceSwapnil-jain
2O(n1.999200)O(n^{1.999200})First breakthrough · Lean VerifiedJosh Alman and Virginia Vassilevska WilliamsanthropicsSourceJosh Alman and Virginia Vassilevska Williams, anthropics

α\alpha in O(nα)O(n^{\alpha}), lower is betterα\alpha in O(nα)O(n^{\alpha})linear scale, lower is better

ClaimedHuman VerifiedLean Verified
First breakthrough
α\alpha (linear scale)
α=1: O(n)\alpha=1:\ O(n)

Relevant repos