Tight Lower Bounds from ETH and SETH
The Exponential Time Hypothesis and SETH stated the two hypotheses. Their value lies in what they imply: lower bounds that match known algorithms, often exactly. This lesson collects the main consequences and works through two reductions in code. Every result below is conditional, and the hypothesis is named each time.
Linear reductions transfer bounds
The textbook NP-hardness reductions from 3-SAT are usually linear: a formula with variables and clauses becomes an instance of size . Combined with sparsification (), a algorithm for the target, where is its size, would give a algorithm for 3-SAT. Hence, under ETH, there are no algorithms for
- INDEPENDENT SET, CLIQUE, VERTEX COVER on graphs with vertices and edges;
- 3-COLORING, HAMILTONIAN CYCLE, DOMINATING SET, FEEDBACK VERTEX SET on sparse graphs;
- SUBSET SUM with numbers (with numbers of bits).
The reduction of Clique and Vertex Cover maps clauses to vertices; the program builds its independent-set version (a triangle per clause, edges between complementary literals) and checks it against brute force.
import random
from itertools import combinations, product
def random_3cnf(n, m, rng):
return [tuple(rng.choice([1, -1]) * v for v in rng.sample(range(1, n + 1), 3)) for _ in range(m)]
def sat(n, F):
return any(all(any((l > 0) == a[abs(l) - 1] for l in c) for c in F) for a in product([False, True], repeat=n))
def to_independent_set(F):
V = [(i, j) for i in range(len(F)) for j in range(3)] # one vertex per literal occurrence
E = set()
for i in range(len(F)):
E |= {frozenset(((i, a), (i, b))) for a, b in combinations(range(3), 2)} # clause triangle
for (i, a), (j, b) in combinations(V, 2):
if F[i][a] == -F[j][b]:
E.add(frozenset(((i, a), (j, b)))) # x and not x conflict
return V, E
def has_independent(V, E, k):
"""exhaustive search; a triangle holds at most one chosen vertex, so pick one per clause"""
by_clause = [[v for v in V if v[0] == i] for i in range(k)]
def go(i, chosen):
if i == k:
return True
return any(go(i + 1, chosen + [v]) for v in by_clause[i]
if all(frozenset((v, u)) not in E for u in chosen))
return go(0, [])
rng = random.Random(9)
print(" n m satisfiable |V| = 3m |E| independent set of size m")
cases = [(n, random_3cnf(n, m, rng)) for n, m in [(4, 10), (5, 15), (6, 18)]]
cases.append((3, [(a * 1, b * 2, c * 3) for a in (1, -1) for b in (1, -1) for c in (1, -1)])) # all 8 sign patterns
for n, F in cases:
m = len(F)
V, E = to_independent_set(F)
print(f"{n:2} {m:3} {sat(n, F)!s:11} {len(V):9} {len(E):5} {has_independent(V, E, m)}") n m satisfiable |V| = 3m |E| independent set of size m
4 10 True 30 80 True
5 15 True 45 140 True
6 18 True 54 169 True
3 8 False 24 72 False
The last formula contains all eight clauses on , so it is unsatisfiable, and the graph has no independent set of size . The graph always has vertices, linear in the formula. So under ETH independent set has no algorithm on -vertex graphs, and since vertex cover of size is the complement question, vertex cover has no algorithm under ETH: the single-exponential algorithms of the first section are optimal up to the base.
Clique: no
ETH says even more about clique: not only is it not FPT, the exponent of must grow linearly with .
Theorem (Chen, Huang, Kanj and Xia, 2006; stated with a proof sketch). Under ETH there is no algorithm for -CLIQUE running in time for any computable .
Sketch. Reduce 3-COLORING on a graph with vertices and edges (which has no algorithm under ETH) to -CLIQUE. Split the vertices of into groups of about . For each group, create one vertex for every proper 3-coloring of that group: at most per group. Join two such vertices from different groups if their colorings are compatible on the edges between the two groups. Then is 3-colorable iff the new graph has a -clique, and has vertices. An algorithm, with unbounded, would take time about ; choosing as a slowly growing function of makes this , contradicting ETH.
The program carries out the construction on small graphs and checks it.
import random
from itertools import combinations, product
def proper(coloring, edges):
return all(coloring[a] != coloring[b] for a, b in edges if a in coloring and b in coloring)
def three_colorable(N, edges):
return any(proper(dict(enumerate(c)), edges) for c in product(range(3), repeat=N))
def to_clique(N, edges, k):
groups = [list(range(N))[i::k] for i in range(k)]
nodes = [] # (group index, coloring dict of that group)
for gi, g in enumerate(groups):
for cols in product(range(3), repeat=len(g)):
col = dict(zip(g, cols))
if proper(col, edges):
nodes.append((gi, col))
adj = {i: set() for i in range(len(nodes))}
for i, j in combinations(range(len(nodes)), 2):
(gi, ci), (gj, cj) = nodes[i], nodes[j]
if gi != gj and proper({**ci, **cj}, edges):
adj[i].add(j); adj[j].add(i)
return nodes, adj
def has_k_clique(adj, k, nodes):
def go(cands, size):
if size == k:
return True
for v in sorted(cands):
if go(cands & adj[v] & {u for u in cands if u > v}, size + 1):
return True
return False
return go(set(adj), 0)
rng = random.Random(1)
print(" N |E(H)| k 3-colorable clique vertices k-clique")
for N, p in [(9, 0.35), (9, 0.6), (10, 0.45), (12, 0.3)]:
edges = [(a, b) for a, b in combinations(range(N), 2) if rng.random() < p]
for k in [3]:
nodes, adj = to_clique(N, edges, k)
print(f"{N:2} {len(edges):6} {k:2} {three_colorable(N, edges)!s:11} {len(nodes):15} {has_k_clique(adj, k, nodes)}") N |E(H)| k 3-colorable clique vertices k-clique
9 16 3 True 57 True
9 21 3 False 48 False
10 14 3 True 72 True
12 25 3 True 141 True
Each group of vertices contributes at most clique vertices: the exponential is moved from the instance into the graph size, while the parameter stays small. The same idea shows that ETH implies FPT W[1].
A catalogue of tight bounds
| Problem | Algorithm | Matching lower bound | Hypothesis |
|---|---|---|---|
| 3-SAT, variables | no | ETH | |
| vertex cover, parameter | no | ETH | |
| -clique | no | ETH | |
| planar independent set, dominating set, Hamiltonian cycle | no | ETH | |
| independent set, treewidth | no | SETH | |
| dominating set, treewidth | no | SETH | |
| -coloring, treewidth | no | SETH | |
| -dominating set | for | no for any | SETH |
| orthogonal vectors, edit distance, LCS | no | SETH |
Sources (stated): treewidth bounds by Lokshtanov, Marx and Saurabh (2011); -dominating set by Pătrașcu and Williams (2010); planar problems via the planar separator theorem for the algorithm and grid-like reductions for the bound (the "square root phenomenon"); the last row is the subject of the fine-grained section, starting with Fine-Grained Reductions.
How SETH lower bounds for treewidth look (sketch)
To show that independent set has no algorithm, Lokshtanov, Marx and Saurabh reduce CNF-SAT with variables to independent set on a graph with a path decomposition of width . Each variable becomes a long path whose two maximum independent sets encode true and false; clause gadgets hang between the paths. An algorithm would then decide the formula in time for all clause widths, refuting SETH. The precision of the bound, base 2 exactly, comes from width : any reduction that loses a constant factor in the width, , would only rule out .
Test yourself
Why does a linear reduction from 3-SAT to a problem rule out algorithms for under ETH?
- Because is in NP
- Because after sparsification the formula has clauses, so the instance size is and a algorithm would solve 3-SAT in time
- Because linear reductions preserve approximation
- Because has a kernel
What lower bound for -CLIQUE follows from ETH?
- No polynomial algorithm
- No algorithm for any computable
- No algorithm
- No algorithm, but is possible
In the reduction from 3-coloring to -clique, what are the clique graph's vertices?
- The vertices of
- Proper 3-colorings of each of the groups of about vertices
- The edges of
- All colorings
Under which hypothesis is the independent set algorithm for treewidth optimal in its base?
- ETH
- SETH
- P NP
- The 3SUM conjecture