Model Checking Lower Bounds for Simple Graphs Michael Lampis KTH - - PowerPoint PPT Presentation

model checking lower bounds for simple graphs
SMART_READER_LITE
LIVE PREVIEW

Model Checking Lower Bounds for Simple Graphs Michael Lampis KTH - - PowerPoint PPT Presentation

Model Checking Lower Bounds for Simple Graphs Michael Lampis KTH Royal Institute of Technology July 8th, 2013 Algorithmic Meta-Theorems Positive results Negative results Problem X is tractable. Problem X is hard. Model Checking Lower


slide-1
SLIDE 1

Model Checking Lower Bounds for Simple Graphs

Michael Lampis KTH Royal Institute of Technology

July 8th, 2013

slide-2
SLIDE 2

Algorithmic Meta-Theorems

Model Checking Lower Bounds 2 / 22

Positive results

  • Problem X is tractable.

Negative results

  • Problem X is hard.
slide-3
SLIDE 3

Algorithmic Meta-Theorems

Model Checking Lower Bounds 2 / 22

Positive results

  • Problem X is tractable.

Negative results

  • Problem X is hard.
  • An algorithmic meta-theorem is a statement of the form:

“All problems in a class C are tractable”

slide-4
SLIDE 4

Algorithmic Meta-Theorems

Model Checking Lower Bounds 2 / 22

Positive results

  • Problem X is tractable.

Negative results

  • Problem X is hard.
  • An algorithmic meta-theorem is a statement of the form:

“All problems in a class C are tractable”

  • Meta-theorems are great! (more in a second)
slide-5
SLIDE 5

Algorithmic Meta-Theorems

Model Checking Lower Bounds 2 / 22

Positive results

  • Problem X is tractable.

Negative results

  • Problem X is hard.
  • An algorithmic meta-theorem is a statement of the form:

“All problems in a class C are tractable”

  • Meta-theorems are great! (more in a second)

Main objective of today’s talk: barriers to meta-theorems: “There exists a problem in class C that is hard”

slide-6
SLIDE 6

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
slide-7
SLIDE 7

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.

Example: ∃S∀x∀yE(x, y) → (x ∈ S ↔ y ∈ S)

slide-8
SLIDE 8

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
slide-9
SLIDE 9

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
  • More graphs?
  • Wider classes of problems?
  • Faster?
slide-10
SLIDE 10

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
  • More graphs?
  • Wider classes of problems?
  • Faster?

Meta-theorems for clique-width, local treewidth,. . .

slide-11
SLIDE 11

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
  • More graphs?
  • Wider classes of problems?
  • Faster?

This can be extended to optimization versions of MSO.

slide-12
SLIDE 12

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
  • More graphs?
  • Wider classes of problems?
  • Faster?

Faster than linear time?

slide-13
SLIDE 13

Good news so far

Model Checking Lower Bounds 3 / 22

  • Most famous meta-theorem: Courcelle’s theorem

All MSO-expressible properties are solvable in linear time on graphs

  • f bounded treewidth.
  • Can we do better?
  • More graphs?
  • Wider classes of problems?
  • Faster?

Faster than linear time? This is the main question we are concerned with today.

slide-14
SLIDE 14

Some bad news

Model Checking Lower Bounds 4 / 22

  • Courcelle’s theorem:

There exists an algorithm which, given an MSO formula φ and a graph G with treewidth w decides if G | = φ in time f(w, φ)|G|.

slide-15
SLIDE 15

Some bad news

Model Checking Lower Bounds 4 / 22

  • Courcelle’s theorem:

There exists an algorithm which, given an MSO formula φ and a graph G with treewidth w decides if G | = φ in time f(w, φ)|G|.

  • But the function f is a tower of exponentials!
slide-16
SLIDE 16

Some bad news

Model Checking Lower Bounds 4 / 22

  • Courcelle’s theorem:

There exists an algorithm which, given an MSO formula φ and a graph G with treewidth w decides if G | = φ in time f(w, φ)|G|.

  • But the function f is a tower of exponentials!
  • Unfortunately, this is not Courcelle’s fault.

Thm: If G | = φ can be decided in f(w, φ)|G|c for elementary f then P=NP . [Frick & Grohe ’04]

slide-17
SLIDE 17

Some bad news

Model Checking Lower Bounds 4 / 22

  • Courcelle’s theorem:

There exists an algorithm which, given an MSO formula φ and a graph G with treewidth w decides if G | = φ in time f(w, φ)|G|.

  • But the function f is a tower of exponentials!
  • Unfortunately, this is not Courcelle’s fault.

Thm: If G | = φ can be decided in f(w, φ)|G|c for elementary f then P=NP . [Frick & Grohe ’04]

  • In fact, Frick and Grohe’s lower bound applies to FO logic on trees!
slide-18
SLIDE 18

There is still hope

Model Checking Lower Bounds 5 / 22

This is bad! Can we somehow escape the Frick and Grohe lower bound?

slide-19
SLIDE 19

There is still hope

Model Checking Lower Bounds 5 / 22

This is bad! Can we somehow escape the Frick and Grohe lower bound?

slide-20
SLIDE 20

There is still hope

Model Checking Lower Bounds 5 / 22

This is bad! Can we somehow escape the Frick and Grohe lower bound? Recently, a series of meta-theorems that evade it give “better” parameter dependence.

  • For vertex cover, neighborhood diversity, max-leaf [L. ’10]
  • For twin cover [Ganian ’11]
  • For shrub-depth [Ganian et al. ’12]
  • For tree-depth [Gajarsk´

y and Hliˇ nen´ y ’12]

slide-21
SLIDE 21

There is still hope

Model Checking Lower Bounds 5 / 22

This is bad! Can we somehow escape the Frick and Grohe lower bound? Recently, a series of meta-theorems that evade it give “better” parameter dependence.

  • For vertex cover, neighborhood diversity, max-leaf [L. ’10]
  • For twin cover [Ganian ’11]
  • For shrub-depth [Ganian et al. ’12]
  • For tree-depth [Gajarsk´

y and Hliˇ nen´ y ’12] Predominant idea: Removing isomorphic parts of the graph, when we have too many

slide-22
SLIDE 22

There is still hope

Model Checking Lower Bounds 5 / 22

This is bad! Can we somehow escape the Frick and Grohe lower bound? Recently, a series of meta-theorems that evade it give “better” parameter dependence.

  • For vertex cover, neighborhood diversity, max-leaf [L. ’10]
  • For twin cover [Ganian ’11]
  • For shrub-depth [Ganian et al. ’12]
  • For tree-depth [Gajarsk´

y and Hliˇ nen´ y ’12] Predominant idea: Removing isomorphic parts of the graph, when we have too many

What’s next?

slide-23
SLIDE 23

Let’s destroy all hope!

Model Checking Lower Bounds 6 / 22

  • In this talk the pendulum swings again.
  • Main goal: prove hardness results even

more devastating than Frick& Grohe.

  • Motivation: If we know what we can’t

do, we might find things we can do.

slide-24
SLIDE 24

Let’s destroy all hope!

Model Checking Lower Bounds 6 / 22

  • In this talk the pendulum swings again.
  • Main goal: prove hardness results even

more devastating than Frick& Grohe.

  • Motivation: If we know what we can’t

do, we might find things we can do. Today: Three new hardness results.

  • Threshold graphs
  • Paths
  • Bounded-height trees
slide-25
SLIDE 25

Threshold Graphs

slide-26
SLIDE 26

More background

Model Checking Lower Bounds 8 / 22

Theorem:

  • MSO1 expressible properties can be decided in linear time on graphs
  • f bounded clique-width [Courcelle, Makowsky, Rotics ’00]
slide-27
SLIDE 27

More background

Model Checking Lower Bounds 8 / 22

Theorem:

  • MSO1 expressible properties can be decided in linear time on graphs
  • f bounded clique-width [Courcelle, Makowsky, Rotics ’00]
  • Trees have clique-width 3.

Frick&Grohe → non-elementary dependence.

  • Graphs with clique-width 1 are easy for MSO1.
slide-28
SLIDE 28

More background

Model Checking Lower Bounds 8 / 22

Theorem:

  • MSO1 expressible properties can be decided in linear time on graphs
  • f bounded clique-width [Courcelle, Makowsky, Rotics ’00]
  • Trees have clique-width 3.

Frick&Grohe → non-elementary dependence.

  • Graphs with clique-width 1 are easy for MSO1.

What about clique-width 2?

slide-29
SLIDE 29

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.
slide-30
SLIDE 30

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.

u

slide-31
SLIDE 31

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.

uj

slide-32
SLIDE 32

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.

uju

slide-33
SLIDE 33

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.

ujuj

slide-34
SLIDE 34

Threshold Graphs

Model Checking Lower Bounds 9 / 22

A graph is a threshold graph if it can be constructed with the following

  • perations:
  • Add a new vertex and connect it to everything.
  • Add a new vertex and connect it to nothing.

ujuj Thm: Threshold graphs have clique-width 2.

slide-35
SLIDE 35

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :
  • G : uuj
slide-36
SLIDE 36

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :
  • G : uuj uj
slide-37
SLIDE 37

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :

1

  • G : uuj uj

ujj

slide-38
SLIDE 38

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :

1 1

  • G : uuj uj

ujj ujj

slide-39
SLIDE 39

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :

1 1

  • 0. . .
  • G : uuj uj

ujj ujj

  • uj. . .
slide-40
SLIDE 40

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :

1 1

  • 0. . .
  • G : uuj uj

ujj ujj

  • uj. . .

This allows us to interpret the string property as a graph question.

slide-41
SLIDE 41

Hardness for threshold graphs

Model Checking Lower Bounds 10 / 22

We use the following result of Frick& Grohe:

  • There is no elementary-dependence model-checking algorithm for

FO logic on binary strings. Given a string w we construct a threshold graph G

  • w :

1 1

  • 0. . .
  • G : uuj uj

ujj ujj

  • uj. . .

This allows us to interpret the string property as a graph question. Thm: There is no elementary-dependence model-checking algorithm for FO logic on threshold graphs.

slide-42
SLIDE 42

Consequences

Model Checking Lower Bounds 11 / 22

Recall some of the “good” graph classes we know

  • Some are closed under complement (neighborhood diversity,

shrub-depth)

  • Some are closed under union (tree-depth)
slide-43
SLIDE 43

Consequences

Model Checking Lower Bounds 11 / 22

Recall some of the “good” graph classes we know

  • Some are closed under complement (neighborhood diversity,

shrub-depth)

  • Some are closed under union (tree-depth)
  • None are closed under both operations. . .

Any class of graph closed under both operations must contain threshold graphs.

slide-44
SLIDE 44

Paths

slide-45
SLIDE 45

Why paths?

Model Checking Lower Bounds 13 / 22

Main question:

  • Is there an elementary-dependence algorithm for MSO1 on paths?

Equivalent question:

  • Is there an elementary-dependence algorithm for MSO1 on unary

strings? Why?

  • Do Frick and Grohe really need all trees?
  • FO is easy on paths.
  • MSO is hard on binary strings/colored paths.
  • MSO for max-leaf is open!
slide-46
SLIDE 46

Why would this be easy?

Model Checking Lower Bounds 14 / 22

  • MSO on paths = Regular language over unary alphabet
  • FO is easy
  • Reduction seems impossible. . .

“Normal” reduction:

  • Start with n-variable 3-SAT
  • Construct graph G with |G| = nc
  • Construct formula φ with |φ| = log∗ n
  • Prove YES instance ↔ G |

= φ Problem: New instance would be encodable with O(log n) bits. We are making a sparse NP-hard language!

slide-47
SLIDE 47

How the reduction can work

Model Checking Lower Bounds 15 / 22

Key idea: do not use P=NP but EXP=NEXP

  • Motivation: reduction must construct exponential-size graph, so

should be allowed exponential time.

slide-48
SLIDE 48

How the reduction can work

Model Checking Lower Bounds 15 / 22

Key idea: do not use P=NP but EXP=NEXP

  • Motivation: reduction must construct exponential-size graph, so

should be allowed exponential time. Plan:

  • Start with an NEXP-complete problem and n bits of input.
  • Construct a path on 2nc vertices.
  • Construct a formula φ with |φ| = log∗ n.
  • Prove YES instance ↔ G |

= φ. Elementary parameter dependence gives EXP=NEXP .

slide-49
SLIDE 49

How the reduction can work

Model Checking Lower Bounds 15 / 22

Key idea: do not use P=NP but EXP=NEXP

  • Motivation: reduction must construct exponential-size graph, so

should be allowed exponential time. Plan:

  • Start with an NEXP-complete problem and n bits of input.
  • Construct a path on 2nc vertices.
  • Construct a formula φ with |φ| = log∗ n.
  • Prove YES instance ↔ G |

= φ. Elementary parameter dependence gives EXP=NEXP .

  • Formula will be somewhat larger, but still small enough.
slide-50
SLIDE 50

Rough sketch

Model Checking Lower Bounds 16 / 22

  • Start with an NEXP Turing machine, n bits of input. Does it accept?
  • The machine runs in time T = 2nc.
  • Is there a transcript (of length T 2) that proves acceptance?
slide-51
SLIDE 51

Rough sketch

Model Checking Lower Bounds 16 / 22

  • Start with an NEXP Turing machine, n bits of input. Does it accept?
  • The machine runs in time T = 2nc.
  • Is there a transcript (of length T 2) that proves acceptance?
slide-52
SLIDE 52

Rough sketch

Model Checking Lower Bounds 16 / 22

  • Start with an NEXP Turing machine, n bits of input. Does it accept?
  • The machine runs in time T = 2nc.
  • Is there a transcript (of length T 2) that proves acceptance?
slide-53
SLIDE 53

Rough sketch

Model Checking Lower Bounds 16 / 22

  • Start with an NEXP Turing machine, n bits of input. Does it accept?
  • The machine runs in time T = 2nc.
  • Is there a transcript (of length T 2) that proves acceptance?
  • We have to be able to express the property “these vertices are at

distance T”.

  • We have to do it with log∗ n quantifiers.
slide-54
SLIDE 54

Rough sketch

Model Checking Lower Bounds 16 / 22

  • Start with an NEXP Turing machine, n bits of input. Does it accept?
  • The machine runs in time T = 2nc.
  • Is there a transcript (of length T 2) that proves acceptance?
  • We have to be able to express the property “these vertices are at

distance T”.

  • We have to do it with log∗ n quantifiers.
  • This is possible by encoding counting in binary. . .
slide-55
SLIDE 55

Consequences

Model Checking Lower Bounds 17 / 22

Unless EXP=NEXP:

  • Max-leaf is hard
  • Graph classes closed under edge sub-divisions are hard
  • Graph classes closed under induced subgraphs with unbounded

(dense)∗ diameter are hard

slide-56
SLIDE 56

Trees of bounded height

slide-57
SLIDE 57

Why trees of bounded height?

Model Checking Lower Bounds 19 / 22

This class of graphs is important for two recent meta-theorems:

  • Shrub-depth in “When trees grow low: Shrubs and fast MSO1”

[Ganian et al. MFCS ’12]

  • Tree-depth in “Faster deciding MSO properties of trees of fixed

height, and some consequences” [Gajarsk´ y and Hliˇ nen´ y FSTTCS ’12] In both cases the main tool is the following: MSO model-checking for q quantifiers on trees of height h colored with t colors can be done in exp(h+1)(O(q(t + q)) time.

slide-58
SLIDE 58

Lower bound sketch

Model Checking Lower Bounds 20 / 22

Thm: h + 1 levels of exponentiation are exactly necessary. Rough idea: use Frick& Grohe proof for trees, use (few colors) to cut down their height.

  • Start from an n-variable 3-SAT instance.
  • Construct a tree of height h. Use t = log(h)(n) colors.
  • Construct a formula with q = O(h) quantifiers.
  • Prove equivalence between instances.
slide-59
SLIDE 59

Lower bound sketch

Model Checking Lower Bounds 20 / 22

Thm: h + 1 levels of exponentiation are exactly necessary. Rough idea: use Frick& Grohe proof for trees, use (few colors) to cut down their height.

  • Start from an n-variable 3-SAT instance.
  • Construct a tree of height h. Use t = log(h)(n) colors.
  • Construct a formula with q = O(h) quantifiers.
  • Prove equivalence between instances.

Argument: an algorithm running in exp(h+1)(o(t)) would run in 2o(n) here, disproving ETH.

slide-60
SLIDE 60

Conclusions - Open problems

Model Checking Lower Bounds 21 / 22

  • Three natural barriers to future improvements.
  • Paths are probably the toughest to work around.

Future work

  • (Uncolored) tree-depth?
  • Height of tower for paths?
slide-61
SLIDE 61

Conclusions - Open problems

Model Checking Lower Bounds 21 / 22

  • Three natural barriers to future improvements.
  • Paths are probably the toughest to work around.

Future work

  • (Uncolored) tree-depth?
  • Height of tower for paths?
  • Other logics?!?
slide-62
SLIDE 62

Thank you!

Model Checking Lower Bounds 22 / 22

Thank you!