Subquadratic 3SUM and Subcubic APSP
Breakthroughs in Computational Complexity: Subquadratic 3SUM and Subcubic APSP
This technical report summarizes the findings of the paper "Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs," authored by Josh Alman and Virginia Vassilevska Williams.
🚀 The Core Achievement
The authors have achieved the first-ever polynomial improvements over the standard "textbook" algorithms for two fundamental problems in computer science: 3SUM and All-Pairs Shortest Paths (APSP).
Performance Benchmarks
The following table outlines the new deterministic time complexities achieved for these problems:
| Problem | Constraints | New Time Complexity |
|---|---|---|
| 3SUM | integers of polynomial size | |
| APSP | Directed -vertex graphs, polynomially bounded weights |
📉 Impact on Theoretical Hypotheses
By leveraging established reductions, this research effectively validates refutes several long-standing conjectures and hypotheses. The following are no longer held as absolute bounds:
The real-valued 3SUM hypothesisThe real-valued APSP hypothesisThe Exact Triangle hypothesisZero-Weight -Clique hypothesesThree rectangular hinted Online Matrix--Vector conjectures(proposed by van den Brand, Nanongkai, and Saranurak)
Note: These results also provide polynomial speedups for a wide array of other related computational problems.
🛠️ The Technical Engine: Thin Matrix Products
The foundation of these breakthroughs is a novel algorithm designed for thin matrix products.
Mathematical Definition
Let's define the parameters of the operation:
- Let be an integer matrix of size .
- Let be an integer matrix of size .
- Constraint: .
- Let be a set of target positions where .
The algorithm computes the entries for all with a complexity of:
This is significantly more efficient than the naive approach of computing individual inner products or simply writing out the entire resulting matrix .
Implementation Logic
The authors developed this by adapting a specific variant of Coppersmith's rectangular matrix multiplication. Specifically, they utilized:
- A ten-multiplication identity derived from Schönhage.
- A modification to ensure the algorithm only performs operations essential for the entries specified in .
# Conceptual representation of the target computation
def compute_thin_product(X, Y, W):
# X: N x D, Y: D x N, W: set of (i, j)
# Optimized via modified Coppersmith/Schönhage identity
results = {}
for (i, j) in W:
results[(i, j)] = optimized_inner_product(X[i], Y[:, j])
return results
🕸️ Graph Theory Interpretation
When viewed through the lens of graph theory, this algorithm solves the All-Edges Sparse Triangle problem in truly subquadratic time. This applies specifically to sparse lopsided tripartite graphs meeting these criteria:
- Two partitions contain vertices.
- One partition contains vertices.
- The exponent must be .
Reduction Pipeline
The logical flow of the discovery can be visualized as follows:
📦 Additional Contributions
Beyond the primary algorithms, the authors introduce a data structure version of their work. This allows for the querying of single entries of the product without requiring the set to be known in advance.
Document Metadata
- arXiv ID:
2610.06783 - Submission Date: October 5, 2026
- Length: 76 pages
- Categories:
cs.DS(Data Structures and Algorithms),cs.CC(Computational Complexity)
![]()