The Reduction Web
The last three lessons each followed one thread: SETH through orthogonal vectors to edit distance, 3SUM to geometry, APSP to negative triangle. Put together, the known fine-grained reductions form a directed graph, the reduction web, whose sources are a few conjectures and whose other nodes are problems with conditional lower bounds. This lesson draws the web, uses a program to answer "what would a faster algorithm for X refute?", and lists what is known about the relations between the sources. Every edge below is a published reduction, stated without proof.
The three main clusters
SETH (k-SAT, 2^n) 3SUM (n^2) APSP (n^3)
| | |
v v v
Orthogonal Vectors (n^2) Convolution 3SUM (n^2) Negative Triangle (n^3)
| | | | | | | | |
v v v v v v v v v
Edit LCS Frechet Diameter triangle collinear min-plus radius replacement
dist. dist. (3/2-approx) listing points, ... product median paths, ...
(m^{4/3})
3SUM --------> Exact (Zero-Weight) Triangle <-------- APSP- SETH cluster. CNF-SAT reduces to OV by split and list (Orthogonal Vectors and the Split-and-List Reduction); OV reduces to edit distance (Backurs and Indyk, 2015), LCS and dynamic time warping (Abboud, Backurs and Vassilevska Williams, 2015; Bringmann and Künnemann, 2015), discrete Fréchet distance (Bringmann, 2014), regular expression matching (Backurs and Indyk, 2016), and to distinguishing graph diameter 2 from 3 in sparse graphs, which rules out a -approximation in time (Roditty and Vassilevska Williams, 2013).
- 3SUM cluster. 3SUM reduces to geometric problems (Gajentaan and Overmars, 1995; 3SUM and 3SUM-Hardness), and through Convolution 3SUM to triangle listing and to dynamic data structure problems (Pătrașcu, 2010; Kopelowitz, Pettie and Porat, 2016).
- APSP cluster. The subcubic equivalence class of APSP, Negative Triangle and Subcubic Equivalence (Vassilevska Williams and Williams, 2010).
- A meeting point. EXACT TRIANGLE (is there a triangle of total weight exactly 0?) is hard under both the 3SUM and the APSP conjectures (Vassilevska Williams and Williams, 2009/2013; Pătrașcu, 2010): a truly subcubic algorithm for it would refute both.
Asking the web questions
A faster algorithm for a problem refutes every conjecture from which the problem is reachable. Stored as a graph, the question is a reverse reachability search. The program encodes a portion of the web (each edge "A → B" means A reduces to B, so a fast algorithm for B gives one for A) and answers both directions: which conjectures a problem's lower bound rests on, and which problems inherit a lower bound from a conjecture.
web = {
"SETH": ["OV", "k-dominating set"],
"OV": ["edit distance", "LCS", "Frechet distance", "DTW", "diameter 3/2-approx", "regex matching"],
"3SUM": ["convolution 3SUM", "collinear points", "exact triangle"],
"convolution 3SUM": ["triangle listing", "dynamic reachability"],
"collinear points": ["minimum area triangle"],
"APSP": ["min-plus product", "negative triangle", "radius", "exact triangle"],
"min-plus product": ["APSP"],
"negative triangle": ["APSP", "metricity", "replacement paths"],
}
conjectures = ["SETH", "3SUM", "APSP"]
def reachable(start):
seen, stack = {start}, [start]
while stack:
for b in web.get(stack.pop(), []):
if b not in seen:
seen.add(b)
stack.append(b)
return seen
def refuted_by_fast(problem):
return [c for c in conjectures if problem in reachable(c)]
for p in ["edit distance", "triangle listing", "radius", "exact triangle", "minimum area triangle", "OV"]:
print(f"a polynomially faster {p:22} -> refutes {', '.join(refuted_by_fast(p))}")
print()
for c in conjectures:
hard = sorted(reachable(c) - {c})
print(f"{c} implies lower bounds for {len(hard)} problems: {', '.join(hard)}")a polynomially faster edit distance -> refutes SETH
a polynomially faster triangle listing -> refutes 3SUM
a polynomially faster radius -> refutes APSP
a polynomially faster exact triangle -> refutes 3SUM, APSP
a polynomially faster minimum area triangle -> refutes 3SUM
a polynomially faster OV -> refutes SETH
SETH implies lower bounds for 8 problems: DTW, Frechet distance, LCS, OV, diameter 3/2-approx, edit distance, k-dominating set, regex matching
3SUM implies lower bounds for 6 problems: collinear points, convolution 3SUM, dynamic reachability, exact triangle, minimum area triangle, triangle listing
APSP implies lower bounds for 6 problems: exact triangle, metricity, min-plus product, negative triangle, radius, replacement paths
The APSP rows show cycles in the web: APSP, min-plus product and negative triangle reduce to each other, which is what equivalence means. Exact triangle is the one problem in this sample reachable from two conjectures.
How the sources relate
Are SETH, 3SUM and APSP one conjecture in disguise? Nobody knows a reduction between any two of them, and there is evidence that simple ones do not exist:
- NSETH (Carmosino, Gao, Impagliazzo, Mihajlin, Paturi and Schneider, 2016) says that even co-nondeterministic algorithms cannot refute -CNF formulas in time. 3SUM and APSP have fast co-nondeterministic certificates (an certificate for "no 3SUM solution", and similar for negative triangle), so under NSETH there are no deterministic fine-grained reductions from SAT to 3SUM or APSP.
- In the other direction, 3SUM and APSP are polynomial problems with no known way to encode exponential search.
So the web has (at least) three independent roots, and a lower bound is only as strong as the conjecture behind it. That is why papers say "under SETH" or "under the 3SUM conjecture" rather than just "hard".
Other nodes
Further conjectures in use (stated):
| Conjecture | Statement | Example consequences |
|---|---|---|
| -Clique | no algorithm for -clique (and no combinatorial ) | context-free grammar parsing, RNA folding (Abboud, Backurs and Vassilevska Williams, 2015) |
| Combinatorial BMM | no "combinatorial" Boolean matrix multiplication | many dynamic graph problems |
| OMv | online Boolean matrix-vector multiplication needs total time (Henzinger, Krinninger, Nanongkai and Saranurak, 2015) | tight bounds for dynamic shortest paths, connectivity variants |
| Hitting Set / Set Cover conjecture | no for set cover with elements | parameterized problems "as hard as" set cover (Cygan et al., 2012) |
The -clique conjecture connects back to the first half of the course: under ETH, -clique has no algorithm (Tight Lower Bounds from ETH and SETH), and the fine-grained version pins down the constant in the exponent.
Reading a conditional lower bound
When you meet a claim such as "no algorithm for problem X":
- Which conjecture? SETH, 3SUM, APSP, or another node. Different roots, different strength of belief.
- Which model and input range? Real RAM or word RAM, integer weights polynomially bounded or not, alphabet size, deterministic or randomized.
- What is still allowed? Log-factor improvements, approximation, special cases (small answer, sparse inputs), and parameterized algorithms in a second parameter.
- Is the reduction tight? A reduction producing instances of size only gives an -type bound for a quadratic problem; the precise exponent of the conditional bound depends on the reduction's blow-up.
The last point is plain arithmetic, and worth doing once. Suppose a source problem is conjectured to need time , a reduction maps an instance of size to one instance of the target of size , and the target has a hypothetical algorithm in time . The source is then solved in , which contradicts the conjecture only when . So the conditional bound for the target is .
cases = [
("OV (n^2) -> LCS, size n log n ~ n^1", 2, 1.0),
("3SUM (n^2) -> collinear points, size n", 2, 1.0),
("APSP (n^3) -> min-plus, size n", 3, 1.0),
("3SUM (n^2) -> a target of size n^1.5", 2, 1.5),
("3SUM (n^2) -> pairwise sums, size n^2", 2, 2.0),
]
for name, a, s in cases:
print(f"{name:42} conditional lower bound N^{a / s:.3f}")OV (n^2) -> LCS, size n log n ~ n^1 conditional lower bound N^2.000
3SUM (n^2) -> collinear points, size n conditional lower bound N^2.000
APSP (n^3) -> min-plus, size n conditional lower bound N^3.000
3SUM (n^2) -> a target of size n^1.5 conditional lower bound N^1.333
3SUM (n^2) -> pairwise sums, size n^2 conditional lower bound N^1.000
The last row is the wasteful reduction of Fine-Grained Reductions: a lower bound of for a problem that is already linear says nothing.
Test yourself
In the reduction web, what does an edge from A to B mean?
- B is easier than A in every model
- A reduces to B by a fine-grained reduction, so a polynomially faster algorithm for B gives one for A
- A and B are NP-complete
- B is a special case of A
Which problem in the course is hard under both the 3SUM and the APSP conjectures?
- Edit distance
- Exact (zero-weight) triangle
- Orthogonal vectors
- Collinear points
Why are deterministic fine-grained reductions from SAT to 3SUM considered unlikely?
- Because 3SUM is NP-hard
- Because under NSETH they cannot exist: 3SUM has fast co-nondeterministic certificates while -SAT is conjectured not to
- Because 3SUM is linear time
- Because SAT is in P
Which of the following is still allowed under a SETH-based lower bound for edit distance?
- An exact algorithm
- A near-linear time constant-factor approximation
- An exact algorithm
- An exact algorithm