SLIDE 1
The Complexity of homomorphism and Constraint Satisfaction Problems - - PowerPoint PPT Presentation
The Complexity of homomorphism and Constraint Satisfaction Problems - - PowerPoint PPT Presentation
The Complexity of homomorphism and Constraint Satisfaction Problems seen from the Other Side Martin Grohe, FOCS 2003 The Necessity of Bounded Treewidth for Efficient Inference in Bayesian Networks Kwisthout, Bodlaender, van der Gaag, ECAI 2010
SLIDE 2
SLIDE 3
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
SLIDE 4
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
SLIDE 5
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
SLIDE 6
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
SLIDE 7
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 8
Graph homomorphism
SLIDE 9
Graph homomorphism
SLIDE 10
Graph homomorphism
SLIDE 11
Graph homomorphism
SLIDE 12
Graph homomorphism
SLIDE 13
Relational structures
A finite universe A finite set of relations
SLIDE 14
Relational structures
A finite universe A finite set of relations A R ⊆ Ar
SLIDE 15
Relational structures
A finite universe A finite set of relations A R ⊆ Ar arity
SLIDE 16
Relational structures
A finite universe A finite set of relations A R ⊆ Ar
SLIDE 17
Relational structures
A finite universe A finite set of relations A R ⊆ Ar Examples: graphs, CSPs, databases
SLIDE 18
Relational structures
size of structure = number of relations + size of universe + sum of relation sizes weighted by arity
SLIDE 19
Relational structures
Homomorphism A − → B h : A − → B for all relations RA a ∈ RA ⇐ ⇒ h(a) ∈ RB
SLIDE 20
Homomorphism problem
HOM(–,–) Instance: two relational structures A and B Problem: is there a homomorphism from A to B?
SLIDE 21
Homomorphism problem
HOM(C,D) Instance: two relational structures A ∈ C and B ∈ D, Problem: is there a homomorphism from A to B?
SLIDE 22
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 23
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
- f relational structures of bounded arity
SLIDE 24
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 25
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 26
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 27
Homomorphic equivalence
SLIDE 28
Homomorphic equivalence
SLIDE 29
Homomorphic equivalence
SLIDE 30
Homomorphic equivalence
SLIDE 31
Homomorphic equivalence
≡
SLIDE 32
Homomorphic equivalence
SLIDE 33
Homomorphic equivalence
SLIDE 34
Homomorphic equivalence
≡
SLIDE 35
Homomorphic equivalence
SLIDE 36
Homomorphic equivalence
≡
SLIDE 37
Homomorphic equivalence
≡
SLIDE 38
Treewidth
SLIDE 39
Treewidth
SLIDE 40
Treewidth
SLIDE 41
Treewidth
4 3 2 2 3 width = 4 - 1 = 3
SLIDE 42
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 43
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C
SLIDE 44
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C A ∈
SLIDE 45
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C tw ≤ A
SLIDE 46
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C tw ≤ A has bounded treewidth
SLIDE 47
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C
SLIDE 48
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C A ∈
SLIDE 49
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C A ∈ ≡ B
SLIDE 50
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C A ∈ B tw ≤
SLIDE 51
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. bound k C A ∈ B tw ≤ has bounded treewidth mod hom equiv
SLIDE 52
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 53
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 54
Parametrized complexity
Parametrized problem yes/no problem a parametrization of the problem
SLIDE 55
Parametrized complexity
Parametrized problem yes/no problem a parametrization of the problem p-Clique Instance: Graph G, k ∈ N Parameter: k Problem: is G has a clique of size k?
SLIDE 56
Parametrized complexity
Parametrized problem yes/no problem a parametrization of the problem
SLIDE 57
Parametrized complexity
Parametrized problem yes/no problem a parametrization of the problem p-HOM(C,D) Instance: relational structures A ∈ C, B ∈ D Parameter: |A| Problem: is there a homomorphism from A to B?
SLIDE 58
Fixed-parameter tractability
X The input: (Downey, Fellows, Parametrized Complexity) Classical complexity theory
SLIDE 59
Fixed-parameter tractability
The input: (Downey, Fellows, Parametrized Complexity) Parametrized complexity k X nα contribution to
- verall complexity
SLIDE 60
Fixed-parameter tractability
(P, k) is fixed-parameter tractable if it can be decided in time f (k) · |x|O(1)
SLIDE 61
Fixed-parameter tractability
(P, k) is fixed-parameter tractable if it can be decided in time f (k) · |x|O(1) polynomial in size of input
SLIDE 62
Fixed-parameter tractability
(P, k) is fixed-parameter tractable if it can be decided in time f (k) · |x|O(1) arbitrary (computable) in parameter
SLIDE 63
FPT-reduction
(P, k) is fpt-reducible to (P′, k′) if there is x ∈ P ⇐ ⇒ R(x) ∈ P′ R : { inputs to P} − → { inputs to P′} given x, problem R(x) can be solved in FPT-time k′(R(x)) ≤ g(k(x)) for some computable g
SLIDE 64
W-hierarchy
(P, k) ∈ W [1] if it is FPT-reducible to finding a weight k satisfying assignment to a boolean circuit of depth 1.
SLIDE 65
W-hierarchy
FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . .
SLIDE 66
W-hierarchy
FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . . p-Clique is W[1]-complete under FPT-reductions.
SLIDE 67
W-hierarchy
FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . . p-Clique is FPT-reducible to p-HOM(C,–) Does G have a k-clique? Is there a homomorphism Kk − → G?
SLIDE 68
W-hierarchy
FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . . p-HOM(C,–) is W[1]-hard if C contains all complete graphs
SLIDE 69
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 70
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. Dalmau et al, 2002. (w + 1) pebble-game
SLIDE 71
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. p-HOM(C,–) is not W[1]-hard. p-Clique to p-HOM(C,–) reduction.
SLIDE 72
Main theorem
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. p-HOM(C,–) is not W[1]-hard.
SLIDE 73
Constraint satisfaction problems
A CSP is a triplet (V , D, C) V : variables D: domain of the variables C: constraints
SLIDE 74
A 3-SAT formula as a CSP
(a ∨ b ∨ c) ∧ (b ∨ c ∨ d) ∧ (a ∨ d) V = {a, b, c, d} D = {T, F} C : a ∨ b ∨ c = {(T, T, T), (T, T, F), (T, F, T), . . .} b ∨ c ∨ d = {(T, T, T), (T, T, F), (T, F, T), . . .} a ∨ d = {(T, T), (T, F), (F, T)}
SLIDE 75
Constraint satisfaction problems
Constraint Satisfaction Instance: a CSP (V , D, C) Problem: is there an assignment V − → D satisfying all constraints in C?
SLIDE 76
Constraint satisfaction problems
I = (V , D, C) Hypergraph Universe: V Relations: scopes of relations in C
SLIDE 77
Constraint satisfaction problems
I = (V , D, C) Hypergraph Universe: V Relations: scopes of relations in C Universe: D Relations: actual relations in C Constraints
SLIDE 78
Constraint satisfaction problems
I = (V , D, C) Hypergraph Universe: V Relations: scopes of relations in C Universe: D Relations: actual relations in C Constraints ?
SLIDE 79
CSP satisfiability as homomorphism problem
(a ∨ b ∨ c) ∧ (b ∨ c ∨ d) ∧ (a ∨ d)
SLIDE 80
CSP satisfiability as homomorphism problem
(a ∨ b ∨ c) ∧ (b ∨ c ∨ d) ∧ (a ∨ d) A A = {a, b, c, d} RA = {(a, b, c)} ⊆ A3 SA = {(b, c, d)} ⊆ A3 T A = {(a, d)} ⊆ A2
SLIDE 81
CSP satisfiability as homomorphism problem
(a ∨ b ∨ c) ∧ (b ∨ c ∨ d) ∧ (a ∨ d) A A = {a, b, c, d} RA = {(a, b, c)} ⊆ A3 SA = {(b, c, d)} ⊆ A3 T A = {(a, d)} ⊆ A2 B B = {T, F} RB = {(T, T, T), . . .} SB = {(T, T, T), . . .} T B = {(T, T), . . .}
SLIDE 82
CSP result
Assume FPT = W[1]. For every recursively enumerable class C
- f relational structures of bounded arity
the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence.
SLIDE 83
CSP result
Assume FPT = W[1]. the following statements are equivalent
- 1. HOM(C,–) is in polynomial time.
- 2. p-HOM(C,–) is fixed-parameter tractable.
- 3. C has bounded treewidth modulo
homomorphic equivalence. For every recursively enumerable class C
- f graphs
SLIDE 84
CSP result
Assume FPT = W[1]. the following statements are equivalent
- 3. C has bounded treewidth modulo
homomorphic equivalence.
- 1. CSP(C) is in polynomial time.
For every recursively enumerable class C
- f graphs
SLIDE 85
A subexponentional lower bound
CSPs of bounded treewidth k nO(k) can be solved in time
SLIDE 86
A subexponentional lower bound
If there exists a recursively enumerable class G of graphs with unbounded treewidth, and a computable function f such that CSP(G) can be solved in time f (G) · |I|o(tw(G)/ log tw(G)) then ETH fails. Marx 2007, Can we beat treewidth?
SLIDE 87
Probabilistic Inference
Positive Inference Instance: a Bayesian network, evidence e, query variable x Problem: does Pr(x|e) > 0 hold?
SLIDE 88
The necessity of bounded treewidth
If there exists a computable function f such that Positive Inference can be decided in f (G) · |B|o(tw(G)/ log tw(G)) then ETH fails. G is the moralized graph of the Bayesian network B,
SLIDE 89
The necessity of bounded treewidth
Proof. Reduce Constraint Satisfaction preserving treewidth. to Positive Inference
SLIDE 90
TW-reducibility
A is tw-reducible to B if there exists a polynomial-time computable function g and a linear function l such that x ∈ A ⇐ ⇒ g(x) ∈ B tw(g(x)) = l(tw(x))
SLIDE 91
TW reduction of CSP to Bayesian network
X1 X3 X4 X2
SLIDE 92
TW reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2
SLIDE 93
TW reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 A
SLIDE 94
TW reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2
SLIDE 95
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2
SLIDE 96
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 97
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 98
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 99
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 100
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 101
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 102
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 103
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5
SLIDE 104
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5 A1 A2 A3 A4 A5 A6
SLIDE 105
TW-reduction of CSP to Bayesian network
X1 X3 X4 X2 R1 R4 R3 R2 X1 X2 X4 X6 X3 X5 A1 A2 A3 A4 A5 A6
SLIDE 106
Summary
- 3. Small treewidth is necessary for
- 2. If CSPs with large treewidth can be solved
in sub-exponential time, ETH fails.
- 1. CSPs can be solved in polynomial time iff