{"slug": "3sum-and-apsp-and-eth-oh-my", "title": "3SUM and APSP and ETH, Oh My!", "summary": "Anthropic has obtained an O(n^1.9992) algorithm for 3SUM, breaking the long-held conjecture that the problem has no subquadratic algorithm, according to a blog post that assumes recent results by OpenAI and Anthropic contain correct proofs. The post notes the result as one of three favorite hardness assumptions — 3SUM, APSP, and the Exponential Time Hypothesis — that \"had a bad month,\" and cites a writeup by J. Alman and V. The author also references the Unique Game Conjecture being proven true, making the tally 1-for-4.", "body_md": "(Throughout this post I will assume that the recent results by OpenAI and Anthropic contain correct proofs of what they claim.)\n\nI wrote the following about 2 years ago but did not post it. It's dated, but that's the point.\n\nBEGIN DOCUMENT FROM TWO YEARS AGO\n\nWhy do we think $P\\ne NP$?\n\na) Lots of people have worked on SAT and other NP-complete problems, without getting them in P. This is not mathematical evidence but it is worth noting.\n\nb) If SAT is in P then *all* problems in NP are in P.  This implication is one reason I think $P\\ne NP$ is true.  I find this more compelling than (a), though it's still not a proof.\n\nc) Just my opinion: I think SAT is not in P.\n\n-------------------------\n\n3SUM is the following problem: Given integers $a_1,\\ldots,a_n$ is there a triple of indices $i< j < k $ such that $a_i + a_j + a_k = 0$? There is a clever algorithm for this problem that takes $O(n^2)$ time. It is conjectured that 3SUM has no subquadratic algorithm (that is, for every fixed $\\epsilon>0$ there is no $O(n^{2-\\epsilon})$ algorithm). (My spellcheck doesn't think subquadratic is a word. Are they right?)\n\nThis conjecture is widely believed. There is a notion of 3SUM-hardness and 3SUM-completeness. $ A \\le B $ if there is a linear time function $f$ such that $x\\in A$ iff $f(x)\\in B$. A problem $A$ is 3SUM-complete if both $A\\le 3SUM$ and $3SUM \\le A$.\n\nThere are around 15-20 3SUM-complete problems. Either they are all subquadratic (which includes 3SUM being subquadratic) or none are subquadratic. Given the conjecture, none of them are subquadratic. That is the common belief.\n\nWhy do we think 3SUM has no subquadratic algorithm?\n\na) Lots of people have worked on 3SUM without getting it into subquadratic time. This is not mathematical evidence but it is worth noting.\n\nb) Darn! There is no Cook-Levin-type theorem for 3SUM.\n\nc) Just my opinion: I think 3SUM is not subquadratic. I only wish there were a Cook-Levin-type theorem for this belief. I doubt this is possible.\n\n--------------------------\n\nAPSP (All Pairs Shortest Paths) is the following problem: Given a weighted graph $G$, find, for all pairs, the cost of the shortest path. There is an $O(n^3$) algorithm for APSP. It is widely believed that there is no subcubic algorithm for APSP (that is, for every fixed $\\epsilon>0$ there is no $O(n^{3-\\epsilon})$ algorithm). This conjecture is widely believed. There is a notion of APSP-hardness and APSP-completeness. $ A \\le B $ if there is a linear time function $f$ such that $x\\in A$ iff $f(x) \\in B$. A problem $A$ is APSP-complete if both $A\\le APSP$ and $APSP \\le A$. (My spellcheck doesn't think subcubic is a word. Are they right?)\n\nThere are around 15-20 problems that are APSP-complete. Either they are all subcubic (which includes APSP being subcubic) or none are subcubic. Given the conjecture, none of them are subcubic. That is the common belief.\n\nWhy do we think APSP has no subcubic algorithm?\n\n(a) and (b) similar to that for 3SUM. I state (c)\n\nc) Just my opinion: I think APSP is not subcubic. I only wish there were a Cook-Levin-type theorem for this belief. I doubt this is possible.\n\n---------------------------\n\nETH (Exponential Time Hypothesis) Not only is 3SAT not in P but 3SAT on $n$ variables requires $2^{\\Omega(n)}$ time. ETH is widely believed.\n\nInformally, if ETH is true, and $A$ is NP-complete by a linear reduction, then $A$ requires exponential time. There are many such NP-complete problems.\n\nc) Just my opinion: I think 3SAT requires $2^{cn}$ time for some $c$. I only wish there was a Cook-Levin-type theorem for this belief. I doubt this is possible.\n\nEND DOCUMENT FROM TWO YEARS AGO\n\nThree of my favorite hardness assumptions had a bad month. I'm glad the Unique Game Conjecture was proven true so I am 1-for-4 rather than 0-for-3 (if it were still open) or 0-for-4 (if it was refuted).\n\n1) Anthropic has obtained an $O(n^{1.9992})$ algorithm for 3SUM. Darling thinks this result is hilarious.\n\nA writeup of this by J. Alman and V.V. Williams is [here](https://arxiv.org/pdf/2610.06783).  \n\n2) Anthropic has obtained an $O(n^{2.9995})$ algorithm for APSP with integer weights (with no negative cycles). Darling, thinks this result is hilarious. (Spell check thinks Antrhopic is a word. Are they right?)\n\nThe same writeup in item (1) also contains this result.\n\n3) OpenAI has obtained a $2^{O(n\\log\\log n/\\sqrt{\\log n})}$ algorithm for 3SAT Darling thinks this result is hilarious. I agree with her. (My spellcheck things OpenAI is not a word. Are they right?)\n\nOpenAI's announcement is [here](https://openai.com/index/building-scientific-understanding-with-academic-communities/).\n\nLance blogged about it [here](https://blog.computationalcomplexity.org/2026/10/the-exponential-time-refutation.html).\n\nSo now what?\n\n0) All of these results are being looked at by experts.\n\n1) 1.9992 is close to 2. And we still think 3SUM can't get that much better. could conjecture that, for every fixed $\\epsilon$, there is no $O(n^{1.5-\\epsilon})$ algorithm for $3SUM$.\n\nAssuming the conjecture, for every fixed $\\epsilon$, for every 3SUM-complete problem $A$ is no $O(n^{1.5-\\epsilon}$ algorithm for $A$.\n\nAt least until AI gives an $O(n^{1.499999}$ algorithm for 3SUM.\n\n2) Similar for APSP and, say, $O(n^{2.5})$.\n\n3) ETH. Replace with the following: there exists $0<c<1$ such that there is no $O(2^{n^c})$ algorithm for $3SAT$. Or something else like it.\n\n4) We can Regard this as good news. All of those problems that are 3SUM-complete are now known to have subquadratic complexity. Similar for APSP and ETH. Yeah(?)", "url": "https://wpnews.pro/news/3sum-and-apsp-and-eth-oh-my", "canonical_source": "https://blog.computationalcomplexity.org/2026/11/3sum-and-apsp-and-eth-oh-my.html", "published_at": "2026-11-01 20:23:06+00:00", "updated_at": "2026-11-01 20:50:42.426165+00:00", "lang": "en", "topics": ["ai-research", "artificial-intelligence"], "entities": ["Anthropic", "OpenAI", "J. Alman", "V.", "Darling"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/3sum-and-apsp-and-eth-oh-my", "markdown": "https://wpnews.pro/news/3sum-and-apsp-and-eth-oh-my.md", "text": "https://wpnews.pro/news/3sum-and-apsp-and-eth-oh-my.txt", "jsonld": "https://wpnews.pro/news/3sum-and-apsp-and-eth-oh-my.jsonld"}}