Metraipolis › archive › dc_b073084dc63c

3SUM — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/3SUM
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-15T16:43:24.820Z
SHA-256 of the archived text
2d582dfd5e30bc32c899175c2b68e92d06434a40b1e102a2273893b24eae940a
Stable URL of this page
https://metraipolis.com/documento/dc_b073084dc63c

How to cite

3SUM — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/3SUM (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_b073084dc63c (Metraipolis archive dc_b073084dc63c, sha256 2d582dfd5e30bc32c899175c2b68e92d06434a40b1e102a2273893b24eae940a)
BibTeX
@misc{dcb073084dc63c,
  title = {3SUM — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/3SUM},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_b073084dc63c; sha256 2d582dfd5e30bc32c899175c2b68e92d06434a40b1e102a2273893b24eae940a},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/3SUM. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In computational complexity theory, the 3SUM problem asks if a given set of n {\displaystyle n} real numbers contains three elements that sum to zero. A generalized version, k {\displaystyle k} -SUM, asks the same question on k {\displaystyle k} elements, rather than simply 3. 3SUM can be easily solved in O ( n 2 ) {\displaystyle O(n^{2})} time, and matching Ω ( n ⌈ k / 2 ⌉ ) {\displaystyle \Omega (n^{\lceil k/2\rceil })} lower bounds are known in some specialized models of computation (Erickson 1999). It was conjectured that any deterministic algorithm for the 3SUM requires Ω ( n 2 ) {\displaystyle \Omega (n^{2})} time. In 2014, the original 3SUM conjecture was refuted by Allan Grønlund and Seth Pettie who gave a deterministic algorithm that solves 3SUM in O ( n 2 / ( log n / log log n ) 2 / 3 ) {\displaystyle O(n^{2}/({\log n}/{\log \log n})^{2/3})} time. Additionally, Grønlund and Pettie showed that the 4-linear decision tree complexity of 3SUM is O ( n 3 / 2 log n ) {\displaystyle O(n^{3/2}{\sqrt {\log n}})} . These bounds were subsequently improved. In 2020 (improved on in 2026) the best known algorithm for 3SUM runs in O ( n 2 ( log log n ) O ( 1 ) / log 2 n ) {\displaystyle O(n^{2}(\log \log n)^{O(1)}/{\log ^{2}n})} time. Kane, Lovett, and Moran showed that the 6-linear decision tree complexity of 3SUM is O ( n log 2 n ) {\displaystyle O(n{\log ^{2}n})} . The latter bound is tight (up to a logarithmic factor). It was conjectured that 3SUM is unsolvable in O ( n 2 − Ω ( 1 ) ) {\displaystyle O(n^{2-\Omega (1)})} expected time, refuted in 2026. When the elements are integers in the range [ − N , … , N ] {\displaystyle [-N,\dots ,N]} , 3SUM can be solved in O ( n + N log N ) {\displaystyle O(n+N\log N)} time by representing the input set S {\displaystyle S} as a bit vector, computing the set S + S {\displaystyle S+S} of all pairwise sums as a discrete convolution using the fast Fourier transform, and finally comparing this set to S {\displaystyle S} . In an October 2026 preprint, Josh Alman and Virginia Vassilevska Williams reported a deterministic algorithm solving 3SUM on polynomially bounded integers in O ( n 1.9992 ) {\displaystyle O(n^{1.9992})} time in the word RAM model, and an algorithm solving 3SUM on real numbers in O ( n 1.998 ) {\displaystyle O(n^{1.998})} expected time in the real RAM model. The authors state that these results refute the integer and real-valued versions of the 3SUM conjecture (and refute other conjectures). The paper credits an internal research version of Claude with discovering the core algorithm (it also verified the paper’s main results using the Lean 4 proof assistant with the Mathlib library). Alman and Vassilevska Williams state that Anthropic shared a description of the algorithm with them, and compensated them for extending and writing up the results. The new result spurred more research. Days later on 12 October Ruhollah Majdoddin published a preprint with better bounds for 3SUM (and many other problems

Tema degli esploratori: ricerca e scienza aperta (deposito sistematico; ricerca «preprint»).
Fonte: Wikipedia in inglese, voce «3SUM» — https://en.wikipedia.org/wiki/3SUM
Wikidata Q4636407 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q4636407
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/3SUM?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1380415502, consultata il 2026-10-15T16:07:51.219Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: f2e4987eeb0dafa495644efa7bd2858b710a907c56c87028e586b7903b4d335e