The Complexity of homomorphism and Constraint Satisfaction Problems - - PowerPoint PPT Presentation

the complexity of homomorphism and constraint
SMART_READER_LITE
LIVE PREVIEW

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-1
SLIDE 1

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 Presented by Jenny Lam

slide-2
SLIDE 2

Main theorem

Assume FPT = W[1].

slide-3
SLIDE 3

Main theorem

Assume FPT = W[1]. For every recursively enumerable class C

  • f relational structures of bounded arity
slide-4
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
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
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
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
SLIDE 8

Graph homomorphism

slide-9
SLIDE 9

Graph homomorphism

slide-10
SLIDE 10

Graph homomorphism

slide-11
SLIDE 11

Graph homomorphism

slide-12
SLIDE 12

Graph homomorphism

slide-13
SLIDE 13

Relational structures

A finite universe A finite set of relations

slide-14
SLIDE 14

Relational structures

A finite universe A finite set of relations A R ⊆ Ar

slide-15
SLIDE 15

Relational structures

A finite universe A finite set of relations A R ⊆ Ar arity

slide-16
SLIDE 16

Relational structures

A finite universe A finite set of relations A R ⊆ Ar

slide-17
SLIDE 17

Relational structures

A finite universe A finite set of relations A R ⊆ Ar Examples: graphs, CSPs, databases

slide-18
SLIDE 18

Relational structures

size of structure = number of relations + size of universe + sum of relation sizes weighted by arity

slide-19
SLIDE 19

Relational structures

Homomorphism A − → B h : A − → B for all relations RA a ∈ RA ⇐ ⇒ h(a) ∈ RB

slide-20
SLIDE 20

Homomorphism problem

HOM(–,–) Instance: two relational structures A and B Problem: is there a homomorphism from A to B?

slide-21
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
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
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
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
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
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
SLIDE 27

Homomorphic equivalence

slide-28
SLIDE 28

Homomorphic equivalence

slide-29
SLIDE 29

Homomorphic equivalence

slide-30
SLIDE 30

Homomorphic equivalence

slide-31
SLIDE 31

Homomorphic equivalence

slide-32
SLIDE 32

Homomorphic equivalence

slide-33
SLIDE 33

Homomorphic equivalence

slide-34
SLIDE 34

Homomorphic equivalence

slide-35
SLIDE 35

Homomorphic equivalence

slide-36
SLIDE 36

Homomorphic equivalence

slide-37
SLIDE 37

Homomorphic equivalence

slide-38
SLIDE 38

Treewidth

slide-39
SLIDE 39

Treewidth

slide-40
SLIDE 40

Treewidth

slide-41
SLIDE 41

Treewidth

4 3 2 2 3 width = 4 - 1 = 3

slide-42
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
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
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
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
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
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
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
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
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
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
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
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
SLIDE 54

Parametrized complexity

Parametrized problem yes/no problem a parametrization of the problem

slide-55
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
SLIDE 56

Parametrized complexity

Parametrized problem yes/no problem a parametrization of the problem

slide-57
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
SLIDE 58

Fixed-parameter tractability

X The input: (Downey, Fellows, Parametrized Complexity) Classical complexity theory

slide-59
SLIDE 59

Fixed-parameter tractability

The input: (Downey, Fellows, Parametrized Complexity) Parametrized complexity k X nα contribution to

  • verall complexity
slide-60
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
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
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
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
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
SLIDE 65

W-hierarchy

FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . .

slide-66
SLIDE 66

W-hierarchy

FPT = W [0] ⊆ W [1] ⊆ W [2] ⊆ . . . p-Clique is W[1]-complete under FPT-reductions.

slide-67
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
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
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
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
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
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
SLIDE 73

Constraint satisfaction problems

A CSP is a triplet (V , D, C) V : variables D: domain of the variables C: constraints

slide-74
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
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
SLIDE 76

Constraint satisfaction problems

I = (V , D, C) Hypergraph Universe: V Relations: scopes of relations in C

slide-77
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
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
SLIDE 79

CSP satisfiability as homomorphism problem

(a ∨ b ∨ c) ∧ (b ∨ c ∨ d) ∧ (a ∨ d)

slide-80
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
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
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
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
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
SLIDE 85

A subexponentional lower bound

CSPs of bounded treewidth k nO(k) can be solved in time

slide-86
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
SLIDE 87

Probabilistic Inference

Positive Inference Instance: a Bayesian network, evidence e, query variable x Problem: does Pr(x|e) > 0 hold?

slide-88
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
SLIDE 89

The necessity of bounded treewidth

Proof. Reduce Constraint Satisfaction preserving treewidth. to Positive Inference

slide-90
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
SLIDE 91

TW reduction of CSP to Bayesian network

X1 X3 X4 X2

slide-92
SLIDE 92

TW reduction of CSP to Bayesian network

X1 X3 X4 X2 R1 R4 R3 R2

slide-93
SLIDE 93

TW reduction of CSP to Bayesian network

X1 X3 X4 X2 R1 R4 R3 R2 A

slide-94
SLIDE 94

TW reduction of CSP to Bayesian network

X1 X3 X4 X2 R1 R4 R3 R2

slide-95
SLIDE 95

TW-reduction of CSP to Bayesian network

X1 X3 X4 X2 R1 R4 R3 R2

slide-96
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
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
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
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
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
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
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
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
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
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
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

they have bounded treewidth. effective Bayesian inference.