TExcelTAD
Home › Parameterized & Fine-Grained Complexity › Tight Lower Bounds from ETH and SETH

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 2o(n)2^{o(n)} bounds

The textbook NP-hardness reductions from 3-SAT are usually linear: a formula with nn variables and mm clauses becomes an instance of size O(n+m)O(n + m). Combined with sparsification (m=O(n)m = O(n)), a 2o(N)2^{o(N)} algorithm for the target, where NN is its size, would give a 2o(n)2^{o(n)} algorithm for 3-SAT. Hence, under ETH, there are no 2o(N)2^{o(N)} algorithms for

  • INDEPENDENT SET, CLIQUE, VERTEX COVER on graphs with NN vertices and O(N)O(N) edges;
  • 3-COLORING, HAMILTONIAN CYCLE, DOMINATING SET, FEEDBACK VERTEX SET on sparse graphs;
  • SUBSET SUM with NN numbers (with numbers of O(N)O(N) bits).

The reduction of Clique and Vertex Cover maps mm clauses to 3m3m vertices; the program builds its independent-set version (a triangle per clause, edges between complementary literals) and checks it against brute force.

python · try it yourself
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 x1,x2,x3x_1, x_2, x_3, so it is unsatisfiable, and the graph has no independent set of size mm. The graph always has 3m3m vertices, linear in the formula. So under ETH independent set has no 2o(N)2^{o(N)} algorithm on NN-vertex graphs, and since vertex cover of size k≤Nk \le N is the complement question, vertex cover has no 2o(k)⋅nO(1)2^{o(k)} \cdot n^{O(1)} algorithm under ETH: the single-exponential algorithms of the first section are optimal up to the base.

Clique: no f(k)⋅no(k)f(k) \cdot n^{o(k)}

ETH says even more about clique: not only is it not FPT, the exponent of nn must grow linearly with kk.

Theorem (Chen, Huang, Kanj and Xia, 2006; stated with a proof sketch). Under ETH there is no algorithm for kk-CLIQUE running in time f(k)⋅no(k)f(k) \cdot n^{o(k)} for any computable ff.

Sketch. Reduce 3-COLORING on a graph HH with NN vertices and O(N)O(N) edges (which has no 2o(N)2^{o(N)} algorithm under ETH) to kk-CLIQUE. Split the vertices of HH into kk groups of about N/kN / k. For each group, create one vertex for every proper 3-coloring of that group: at most 3N/k3^{N/k} per group. Join two such vertices from different groups if their colorings are compatible on the edges between the two groups. Then HH is 3-colorable iff the new graph GG has a kk-clique, and GG has n≤k⋅3N/kn \le k \cdot 3^{N/k} vertices. An f(k)⋅nk/s(k)f(k) \cdot n^{k / s(k)} algorithm, with ss unbounded, would take time about f(k)⋅3N/s(k)f(k) \cdot 3^{N / s(k)}; choosing kk as a slowly growing function of NN makes this 2o(N)2^{o(N)}, contradicting ETH. □\square

The program carries out the construction on small graphs and checks it.

python · try it yourself
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 N/kN/k vertices contributes at most 3N/k3^{N/k} clique vertices: the exponential is moved from the instance into the graph size, while the parameter kk stays small. The same idea shows that ETH implies FPT ≠\ne W[1].

A catalogue of tight bounds

Problem Algorithm Matching lower bound Hypothesis
3-SAT, nn variables O(1.308n)O(1.308^n) no 2o(n)2^{o(n)} ETH
vertex cover, parameter kk O∗(1.2738k)O^*(1.2738^k) no 2o(k)nO(1)2^{o(k)} n^{O(1)} ETH
kk-clique nO(k)n^{O(k)} no f(k)no(k)f(k) n^{o(k)} ETH
planar independent set, dominating set, Hamiltonian cycle 2O(n)2^{O(\sqrt{n})} no 2o(n)2^{o(\sqrt{n})} ETH
independent set, treewidth tt O∗(2t)O^*(2^t) no O∗((2−ε)t)O^*((2 - \varepsilon)^t) SETH
dominating set, treewidth tt O∗(3t)O^*(3^t) no O∗((3−ε)t)O^*((3 - \varepsilon)^t) SETH
qq-coloring, treewidth tt O∗(qt)O^*(q^t) no O∗((q−ε)t)O^*((q - \varepsilon)^t) SETH
kk-dominating set nk+o(1)n^{k + o(1)} for k≥7k \ge 7 no O(nk−ε)O(n^{k - \varepsilon}) for any k≥3k \ge 3 SETH
orthogonal vectors, edit distance, LCS n2n^2 no n2−εn^{2 - \varepsilon} SETH

Sources (stated): treewidth bounds by Lokshtanov, Marx and Saurabh (2011); kk-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 O∗((2−ε)t)O^*((2 - \varepsilon)^t) algorithm, Lokshtanov, Marx and Saurabh reduce CNF-SAT with nn variables to independent set on a graph with a path decomposition of width t=n+O(1)t = n + O(1). Each variable becomes a long path whose two maximum independent sets encode true and false; clause gadgets hang between the paths. An O∗((2−ε)t)O^*((2 - \varepsilon)^t) algorithm would then decide the formula in O∗((2−ε)n)O^*((2 - \varepsilon)^n) time for all clause widths, refuting SETH. The precision of the bound, base 2 exactly, comes from width t=n+O(1)t = n + O(1): any reduction that loses a constant factor in the width, t=cnt = cn, would only rule out 2t/c2^{t/c}.

Test yourself

Why does a linear reduction from 3-SAT to a problem PP rule out 2o(N)2^{o(N)} algorithms for PP under ETH?

  1. Because PP is in NP
  2. Because after sparsification the formula has m=O(n)m = O(n) clauses, so the instance size is N=O(n)N = O(n) and a 2o(N)2^{o(N)} algorithm would solve 3-SAT in 2o(n)2^{o(n)} time
  3. Because linear reductions preserve approximation
  4. Because PP has a kernel

What lower bound for kk-CLIQUE follows from ETH?

  1. No polynomial algorithm
  2. No f(k)⋅no(k)f(k) \cdot n^{o(k)} algorithm for any computable ff
  3. No O(n3)O(n^3) algorithm
  4. No 2kn2^k n algorithm, but 1.5kn1.5^k n is possible

In the reduction from 3-coloring to kk-clique, what are the clique graph's vertices?

  1. The vertices of HH
  2. Proper 3-colorings of each of the kk groups of about N/kN/k vertices
  3. The edges of HH
  4. All 3N3^N colorings

Under which hypothesis is the O∗(2t)O^*(2^t) independent set algorithm for treewidth tt optimal in its base?

  1. ETH
  2. SETH
  3. P ≠\ne NP
  4. The 3SUM conjecture