TExcelTAD

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

text
  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 (32−ε)(\frac{3}{2} - \varepsilon)-approximation in O(m2−δ)O(m^{2 - \delta}) 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.

python · try it yourself
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 kk-CNF formulas in 2(1−ε)n2^{(1-\varepsilon)n} time. 3SUM and APSP have fast co-nondeterministic certificates (an O~(n1.5)\tilde O(n^{1.5}) 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
kk-Clique no O(n(ω/3−ε)k)O(n^{(\omega/3 - \varepsilon) k}) algorithm for kk-clique (and no combinatorial O(nk−ε)O(n^{k - \varepsilon})) context-free grammar parsing, RNA folding (Abboud, Backurs and Vassilevska Williams, 2015)
Combinatorial BMM no "combinatorial" O(n3−ε)O(n^{3 - \varepsilon}) Boolean matrix multiplication many dynamic graph problems
OMv online Boolean matrix-vector multiplication needs n3−o(1)n^{3 - o(1)} total time (Henzinger, Krinninger, Nanongkai and Saranurak, 2015) tight bounds for dynamic shortest paths, connectivity variants
Hitting Set / Set Cover conjecture no O∗((2−ε)n)O^*((2 - \varepsilon)^n) for set cover with nn elements parameterized problems "as hard as" set cover (Cygan et al., 2012)

The kk-clique conjecture connects back to the first half of the course: under ETH, kk-clique has no f(k)no(k)f(k) n^{o(k)} 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 O(n2−ε)O(n^{2 - \varepsilon}) algorithm for problem X":

  1. Which conjecture? SETH, 3SUM, APSP, or another node. Different roots, different strength of belief.
  2. Which model and input range? Real RAM or word RAM, integer weights polynomially bounded or not, alphabet size, deterministic or randomized.
  3. What is still allowed? Log-factor improvements, approximation, special cases (small answer, sparse inputs), and parameterized algorithms in a second parameter.
  4. Is the reduction tight? A reduction producing instances of size n1.5n^{1.5} only gives an n4/3n^{4/3}-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 nan^{a}, a reduction maps an instance of size nn to one instance of the target of size N=nsN = n^{s}, and the target has a hypothetical algorithm in time NtN^{t}. The source is then solved in nstn^{st}, which contradicts the conjecture only when st<ast < a. So the conditional bound for the target is Na/sN^{a/s}.

python · try it yourself
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 N1N^1 for a problem that is already linear says nothing.

Test yourself

In the reduction web, what does an edge from A to B mean?

  1. B is easier than A in every model
  2. A reduces to B by a fine-grained reduction, so a polynomially faster algorithm for B gives one for A
  3. A and B are NP-complete
  4. B is a special case of A

Which problem in the course is hard under both the 3SUM and the APSP conjectures?

  1. Edit distance
  2. Exact (zero-weight) triangle
  3. Orthogonal vectors
  4. Collinear points

Why are deterministic fine-grained reductions from SAT to 3SUM considered unlikely?

  1. Because 3SUM is NP-hard
  2. Because under NSETH they cannot exist: 3SUM has fast co-nondeterministic certificates while kk-SAT is conjectured not to
  3. Because 3SUM is linear time
  4. Because SAT is in P

Which of the following is still allowed under a SETH-based n2−o(1)n^{2 - o(1)} lower bound for edit distance?

  1. An O(n1.9)O(n^{1.9}) exact algorithm
  2. A near-linear time constant-factor approximation
  3. An O(n1.5)O(n^{1.5}) exact algorithm
  4. An O(n)O(n) exact algorithm