Any Monotone Function Is Realized by Interlocked Polygons Authors: - - PowerPoint PPT Presentation

any monotone function is realized by interlocked polygons
SMART_READER_LITE
LIVE PREVIEW

Any Monotone Function Is Realized by Interlocked Polygons Authors: - - PowerPoint PPT Presentation

Any Monotone Function Is Realized by Interlocked Polygons Authors: Erik Demaine, Martin Demaine, and Ryuhei Uehara Algorithms 2012 Outline Introduction: Sliding Block Puzzles Interlocked Polygons Monotone Boolean Functions


slide-1
SLIDE 1

Any Monotone Function Is Realized by Interlocked Polygons

Authors: Erik Demaine, Martin Demaine, and Ryuhei Uehara

Algorithms 2012

slide-2
SLIDE 2

Outline

  • Introduction:

– Sliding Block Puzzles – Interlocked Polygons – Monotone Boolean Functions

  • PSPACE-completeness
  • Nondeterministic Constraint Logic

– Introduction

  • True Quantified Boolean Formulas (TQBF)

– Proof Idea

slide-3
SLIDE 3

Sliding Block Puzzles

  • There are many variations
  • f sliding block puzzles.
  • The idea is to go from an

initial state to a goal state through a series of valid moves.

  • 15 puzzle is one of the first

such puzzles studied.

  • Left is the goal state of the

puzzle.

slide-4
SLIDE 4

Sliding Block Puzzles

  • Rush Hour is another

sliding block puzzle variation.

  • The goal is to help a

specified car escape a traffic jam.

  • Note that in both of these

problems the less objects (i.e. tiles/cars) the easier the puzzle is to solve.

slide-5
SLIDE 5

Sliding Block Puzzles

  • 3d variants are possible

too naturally but we will see that 2d is already hard.

  • The authors introduce the

interlocked polygons problem as a generalization of such puzzles.

slide-6
SLIDE 6

Interlocked Polygons

  • Suppose we have a set of

n non-overlapping simple polygons.

  • The polygons are

interlocked if no subset can be separated arbitrarily far from the rest.

– (i.e. separated using

translations/rotations which do not cause polygons to overlap)

  • Example here.
slide-7
SLIDE 7

Interlocked Polygons

  • Suppose we have a set of

n non-overlapping simple polygons.

  • The polygons are

interlocked if no subset can be separated arbitrarily far from the rest.

– (i.e. separated using

translations/rotations which do not cause polygons to overlap)

  • Example here.
slide-8
SLIDE 8

Interlocked Polygons

  • Suppose we have a set of

n non-overlapping simple polygons.

  • The polygons are

interlocked if no subset can be separated arbitrarily far from the rest.

– (i.e. separated using

translations/rotations which do not cause polygons to overlap)

  • Example here.
slide-9
SLIDE 9

Interlocked Polygons

  • The new puzzle they

introduce is the exploding sliding block puzzle.

  • Such a puzzle asks if all

polygons of a given collection of polygons can be free.

slide-10
SLIDE 10

Interlocked Polygons

  • If one allows removing

polygons from the set, an interlocked set of polygons can become free.

  • Removing polygons from

the set cannot cause a free set to become interlocked.

  • They use these properties

to reduce solving a monotone boolean function to the interlocked polygon problem.

slide-11
SLIDE 11

Hardness Reduction

The authors want to say something about the hardness of this new problem.

Exploding Sliding Block Puzzle

Hard? Notes on Reductions

slide-12
SLIDE 12

Hardness Reduction

The authors want to say something about the hardness of this new problem. Similar to the lowerbound proofs they are going to reduce solving a known hard problem to solving this problem.

Exploding Sliding Block Puzzle

Hard? Notes on Reductions

slide-13
SLIDE 13

Hardness Reduction

The authors want to say something about the hardness of this new problem. Similar to the lowerbound proofs they are going to reduce solving a known hard problem to solving this problem. We begin by considering reducing from an easy problem which is related to the problem they will eventually reduce to solving the Exploding Sliding Block Problem.

Exploding Sliding Block Puzzle Satisfied Monotone Boolean Formula

Hard? Notes on Reductions

slide-14
SLIDE 14

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) Notes on Reductions

slide-15
SLIDE 15

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 Notes on Reductions

slide-16
SLIDE 16

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T Notes on Reductions

slide-17
SLIDE 17

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T Notes on Reductions

slide-18
SLIDE 18

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T T F T Notes on Reductions

slide-19
SLIDE 19

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T T F T T Notes on Reductions

slide-20
SLIDE 20

Satisfied Monotone Boolean Formula

You are given a Monotone Boolean Formula and a set of assignments for the variables. (Monotone indicates that variables only appear as positive literals in the formula) This is a Satisfied Monotone Boolean Formula if the formula evaluates to TRUE for the given assignments of the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T T T T T T T T T F F F F F F F F F F F F T T T T T F F F Notes on Reductions

slide-21
SLIDE 21

Monotone Boolean Functions

  • What is a Monotone

Boolean Function?

– All variables appear as

positive literals.

– (Only ANDs and ORs

allowed.)

  • Thus, a variable being

assigned as true cannot cause the function to become false.

slide-22
SLIDE 22

Reduction Gadgets: Frame

  • All of the gadgets are

constructed in a frame.

  • This frame ensures that

the set of polygons can be separated iff the polygon A can be moved left.

  • The variables of f appear

as polygons on the left hand side of the frame.

  • Removing them

corresponds to setting them to true.

slide-23
SLIDE 23

Reduction Graph

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x2 x1 x3

Notes on Reductions

slide-24
SLIDE 24

Reduction Graph

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 ∧ x2 x2 x1 AND x3

Notes on Reductions

slide-25
SLIDE 25

Reduction Graph

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 ∧ x2 x2 x1 (x1 ∧ x2) ∨ x3 AND OR x3

Notes on Reductions

slide-26
SLIDE 26

Reduction Graph

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 ∧ x2 x2 x1 x1 ∨ x2 (x1 ∧ x2) ∨ x3 AND OR OR x3

Notes on Reductions

slide-27
SLIDE 27

Reduction Graph

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 ∧ x2 x2 x1 x1 ∨ x2 (x1 ∧ x2) ∨ x3 AND OR OR ((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) AND x3

Notes on Reductions

slide-28
SLIDE 28

Reduction Gadgets: Frame

  • All of the gadgets are

constructed in a frame.

  • This frame ensures that

the set of polygons can be separated iff the polygon A can be moved left.

  • The variables of f appear

as polygons on the left hand side of the frame.

  • Removing them

corresponds to setting them to true.

slide-29
SLIDE 29

Reduction Gadgets: And/Split

  • The And and Split gadgets

are mirrors of each other.

slide-30
SLIDE 30

Reduction Gadgets: Or

slide-31
SLIDE 31

Reduction Gadgets: Turn

slide-32
SLIDE 32

Reduction Gadgets: Crossover

  • Note that for all of these gadgets the operations

are reversible. (i.e. can be undone)

slide-33
SLIDE 33

Reduction Gadgets

slide-34
SLIDE 34

Hardness Reduction

Of course, Monotone Boolean Formula is an easy problem to solve so this doesn’t say much about the difficulty of the Exploding Sliding Block Problem to reduce from it.

Exploding Sliding Block Puzzle Satisfied Monotone Boolean Formula

Hard? Notes on Reductions

slide-35
SLIDE 35

Hardness Reduction

Of course, Monotone Boolean Formula is an easy problem to solve so this doesn’t say much about the difficulty of the Exploding Sliding Block Problem to reduce from it. We now consider a more difficult problem: True Quantified Boolean Formulas

Exploding Sliding Block Puzzle Satisfied Monotone Boolean Formula

Hard? Notes on Reductions

slide-36
SLIDE 36

Hardness Reduction

Of course, Monotone Boolean Formula is an easy problem to solve so this doesn’t say much about the difficulty of the Exploding Sliding Block Problem to reduce from it. We now consider a more difficult problem: True Quantified Boolean Formulas

Exploding Sliding Block Puzzle True Quantified Boolean Formulas

PSPACE-complete Hard? Notes on Reductions

slide-37
SLIDE 37

True Quantified Boolean Formulas

True Quantified Boolean Formulas contain universal and existential quantification instead

  • f having a fixed assignment of

the variables.

∀x1∃x2∀x3 : ((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) Notes on Reductions

slide-38
SLIDE 38

True Quantified Boolean Formulas

True Quantified Boolean Formulas contain universal and existential quantification instead

  • f having a fixed assignment of

the variables.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T T T T T T T T T F F F F F F F F F F F F T T T T T F F F ∀x1∃x2∀x3 : ((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) Notes on Reductions

slide-39
SLIDE 39

True Quantified Boolean Formulas

True Quantified Boolean Formulas contain universal and existential quantification instead

  • f having a fixed assignment of

the variables. ∀x1∃x2∀x3 : ((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) evaluates to FALSE.

((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) x1 x2 x3 T T T T T T T T T T T T F F F F F F F F F F F F T T T T T F F F ∀x1∃x2∀x3 : ((x1 ∧ x2) ∨ x3) ∧ (x1 ∨ x3) Notes on Reductions

slide-40
SLIDE 40

Hardness Reduction

On last wrinkle.

Exploding Sliding Block Puzzle True Quantified Boolean Formulas

PSPACE-complete Hard? Notes on Reductions

slide-41
SLIDE 41

Hardness Reduction

On last wrinkle. They reduce from a True Quantified Boolean Formulas to a problem, NCL, which they then reduce to the Exploding Sliding Block Problem.

Exploding Sliding Block Puzzle True Quantified Boolean Formulas

PSPACE-complete Hard? Notes on Reductions

slide-42
SLIDE 42

Hardness Reduction

On last wrinkle. They reduce from a True Quantified Boolean Formulas to a problem, NCL, which they then reduce to the Exploding Sliding Block Problem.

Exploding Sliding Block Puzzle Nondeterministic Constraint Logic (NCL) True Quantified Boolean Formulas

PSPACE-complete PSPACE-complete Hard? Notes on Reductions

slide-43
SLIDE 43

Monotone Boolean Functions

  • This completes the reduction.

– Interesting gadgets but is this problem at all hard? – This reduction may suggest that the exploding sliding

block puzzle is easy.

slide-44
SLIDE 44

Monotone Boolean Functions

  • This completes the reduction.

– Interesting gadgets but is this problem at all hard? – This reduction may suggest that the exploding sliding

block puzzle is easy.

  • The authors go on to show that the exploding sliding block

puzzle is PSPACE-complete.

slide-45
SLIDE 45

Monotone Boolean Functions

  • This completes the reduction.

– Interesting gadgets but is this problem at all hard? – This reduction may suggest that the exploding sliding

block puzzle is easy.

  • The authors go on to show that the exploding sliding block

puzzle is PSPACE-complete.

– Really?

slide-46
SLIDE 46

Outline

  • Introduction:

– Sliding Block Puzzles – Interlocked Polygons – Monotone Boolean Functions

  • PSPACE-completeness
  • Nondeterministic Constraint Logic

– Introduction

  • True Quantified Boolean Formulas (TQBF)

– Proof Idea

slide-47
SLIDE 47

PSPACE-Complete?

  • PSPACE is the class of

problems which can be decided in polynomial space.

  • NP is contained in it (may

not be strict).

  • Intuitively, PSPACE-

complete problems are harder than NP-complete problems.

slide-48
SLIDE 48

PSPACE-Complete?

  • The details of the

PSPACE-Completeness proof are largely absent from this paper.

  • The authors reduce from a

problem called Nondeterministic Constraint Logic (NCL).

  • We give a quick overview
  • f this problem next and

examine why it is hard to solve.

slide-49
SLIDE 49

Outline

  • Introduction:

– Sliding Block Puzzles – Interlocked Polygons – Monotone Boolean Functions

  • PSPACE-completeness
  • Nondeterministic Constraint Logic

– Introduction

  • True Quantified Boolean Formulas (TQBF)

– Proof Idea

slide-50
SLIDE 50

Nondeterministic Constraint Logic

  • Idea:

– Given a directed graph. – Each vertex has a weight requirement it must meet. – Each edge has a weight that it contributes to one of the two vertices it's

adjacent to.

– The direction of the edge determines which vertex gets the weight. – The direction of edges can be flipped if the weight requirement is still

met on its vertices after the flip.

  • Goal:

– Decide if a given edge e in the graph can be flipped. – (through a sequence of valid flips of other edges)

slide-51
SLIDE 51

Nondeterministic Constraint Logic

  • They further restrict this

such that:

– each vertex has a

weight requirement of 2.

– each edge has weight 1

  • r 2 (red or blue

respectively).

  • The structure to the right

behaves similar to an AND.

slide-52
SLIDE 52

Nondeterministic Constraint Logic

  • They further restrict this

such that:

– each vertex has a

weight requirement of 2.

– each edge has weight 1

  • r 2 (red or blue

respectively).

  • The structure to the right

behaves similar to an OR.

slide-53
SLIDE 53

Nondeterministic Constraint Logic

  • Naturally these can be more complex with many vertices.
slide-54
SLIDE 54

Nondeterministic Constraint Logic

  • They want to show that

NCL is PSPACE-complete

  • To show this they reduce

from True Quantified Boolean Formulas (TQBF).

  • Next we introduce this

problem.

slide-55
SLIDE 55

Nondeterministic Constraint Logic

  • They want to show that

NCL is PSPACE-complete

  • To show this they reduce

from True Quantified Boolean Formulas (TQBF).

  • Next we introduce this

problem.

  • (note: this only gives the hardness

result but the other half of the completeness proof is trivial)

slide-56
SLIDE 56

True Quantified Boolean Formulas (TQBF)

  • Deciding if a fully quantified boolean formula is true is

PSPACE-complete.

  • This serves as the canonical complete problem for

PSPACE.

  • TQBF = { <F> : F is a true fully quantified boolean

formula }

slide-57
SLIDE 57

TQBF to NCL Reduction

  • To do this they create gadgets which emulate existential and

universal quantification.

  • This is possible do to the reversible nature of computations

using NCL.

slide-58
SLIDE 58

TQBF to NCL Reduction

slide-59
SLIDE 59

AND/OR NCL Variant

  • Interestingly they can show that all of their gadgets can be

built using only the simple AND and OR gadgets.

  • Thus interest in problems which simulate monotone

boolean functions.

  • These problems only need to emulate these two AND and

OR gadgets to reduce to NCL.

slide-60
SLIDE 60

Summary of Proof

  • Exploding Sliding Block Puzzle
  • AND/OR NCL
  • TQBF
slide-61
SLIDE 61

Variants of Interlocked Polygons

  • Using the AND/OR NCL

reduction one can prove PSPACE-Completeness for even simpler variants of the Exploding Sliding Block Puzzle.

  • In particular the authors

can show that the problem is hard even when all blocks are rectangles except one.

slide-62
SLIDE 62

Variants of Interlocked Polygons

slide-63
SLIDE 63

Variants of Interlocked Polygons

slide-64
SLIDE 64

Conclusions

  • Deciding if polygons are interlocked yields a

surprisingly difficult problem.

  • The framework for proving PSPACE-

completeness with NCL is impressively simple.

  • NCL was used to show many such simple

games are PSPACE-complete. So many that I couldn't even begin to cover them or all the various extensions to NCL.

slide-65
SLIDE 65

Thank You! Questions?

slide-66
SLIDE 66

NCL Cross

slide-67
SLIDE 67

NCL Latch