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})ClaimedSwapnilSourceSwapnil
2O(n1.99896)O(n^{1.99896})ClaimedqawbecrdteySourceqawbecrdtey
3O(n1.9992)O(n^{1.9992})First breakthrough · Lean Verified
Show authors
Source
Show authors

α\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)

The dashed line marks the classic bound O(n2)O(n^{2}). The trivial lower bound α=1\alpha=1 (O(n)O(n)) is below this range.

Relevant repos