Reconfiguration of Satisfying Assignments and Subset Sums: Easy to - - PowerPoint PPT Presentation

reconfiguration of satisfying assignments and subset sums
SMART_READER_LITE
LIVE PREVIEW

Reconfiguration of Satisfying Assignments and Subset Sums: Easy to - - PowerPoint PPT Presentation

Reconfiguration of Satisfying Assignments and Subset Sums: Easy to Find, Hard to Connect x in x in x in x y z y in z in z in F F t F F t F F t 0 y out y out z out T T T Jean Cardinal, Erik Demaine, David Eppstein, Robert Hearn,


slide-1
SLIDE 1

x y z yin zin xin F F yout zin xin F F t T yout xin F F t T zout T t0

Reconfiguration of Satisfying Assignments and
 Subset Sums: Easy to Find, Hard to Connect

Jean Cardinal, Erik Demaine, David Eppstein, Robert Hearn, Andrew Winslow

slide-2
SLIDE 2

Reconfiguration:
 a SAT Example

slide-3
SLIDE 3

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

slide-4
SLIDE 4

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

x1 = F x2 = F x3 = T

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T)

flip x3

slide-5
SLIDE 5

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

x1 = F x2 = F x3 = T

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T)

flip x3

x1 = T x2 = F x3 = T

(T ∨ ¬F) ∧ ∧ (¬T ∨ F ∨ T) (¬T ∨ ¬F ∨ ¬T)

flip x1

slide-6
SLIDE 6

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

x1 = F x2 = F x3 = T

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T)

flip x3

x1 = T x2 = F x3 = T

(T ∨ ¬F) ∧ ∧ (¬T ∨ F ∨ T) (¬T ∨ ¬F ∨ ¬T)

flip x1

Keeping formula satisfied

slide-7
SLIDE 7

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

x1 = T x2 = T x3 = F

(T ∨ ¬T) ∧ ∧ (¬T ∨ T ∨ F) (¬T ∨ ¬F ∨ ¬F)

slide-8
SLIDE 8

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

x1 = F x2 = F x3 = F

(F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F)

x1 = T x2 = T x3 = F

(T ∨ ¬T) ∧ ∧ (¬T ∨ T ∨ F) (¬T ∨ ¬F ∨ ¬F)

Impossible

slide-9
SLIDE 9

FFF FFT FTF FTT TFF TFT TTF TTT

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

slide-10
SLIDE 10

FFF FFT FTF FTT TFF TFT TTF TTT

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

slide-11
SLIDE 11

FFF FFT TFT TTF

Formula: (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)

slide-12
SLIDE 12

Reconfiguration:
 a Subset Sum Example

slide-13
SLIDE 13

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12

slide-14
SLIDE 14

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12 5 + 7 = 12 S = {5, 7}

swap 2, 3 with 5

slide-15
SLIDE 15

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12 5 + 7 = 12 S = {5, 7}

swap 2, 3 with 5

5 + 3 + 4 = 12 S = {5, 3, 4}

swap 7 with 3, 4

slide-16
SLIDE 16

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12 5 + 7 = 12 S = {5, 7}

swap 2, 3 with 5

5 + 3 + 4 = 12 S = {5, 3, 4}

swap 7 with 3, 4

Keeping sum equal to target sum

slide-17
SLIDE 17

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12 5 + 7 = 12 S = {5, 7}

swap 2, 3 with 5

5 + 3 + 4 = 12 S = {5, 3, 4}

swap 7 with 3, 4

S = {2, 3, 7} 2 + 3 + 7 = 12 S = {2, 4, 6} 5 + 3 + 4 = 12

⇒ ⇒

Keeping sum equal to target sum

slide-18
SLIDE 18

Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12

S = {2, 3, 7} 2 + 3 + 7 = 12 5 + 7 = 12 S = {5, 7}

swap 2, 3 with 5

5 + 3 + 4 = 12 S = {5, 3, 4}

swap 7 with 3, 4

S = {2, 3, 7} 2 + 3 + 7 = 12 S = {2, 4, 6} 5 + 3 + 4 = 12

⇒ ⇒

Impossible Keeping sum equal to target sum

slide-19
SLIDE 19

3SAT Reconfiguration Problem

slide-20
SLIDE 20

Input:

  • An instance of 3SAT Φ.
  • A satisfying assignment A of Φ.
  • A satisfying assignment B of Φ.

Output: Whether A can be reconfigured into B.

3SAT Reconfiguration Problem

slide-21
SLIDE 21

Input:

  • 3SAT formula (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)
  • x1 = F, x2 = F, x3 = F.
  • x1 = T, x2 = F, x3 = T.

Output: Yes (can be reconfigured).

SAT Reconfiguration Problem

Input:

  • 3SAT formula (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ (¬x1 ∨ ¬x2 ∨ ¬x3)
  • x1 = F, x2 = F, x3 = F.
  • x1 = T, x2 = T, x3 = F.

Output: No (cannot be reconfigured).

slide-22
SLIDE 22

SAT Reconfiguration Problem

Theorem: the 3SAT reconfiguration problem
 is PSPACE-complete.

problems solvable in nO(1) space

PSPACE P NP

Corollary: some reconfigurations require
 exponentially many variable flips.

slide-23
SLIDE 23

SAT Variants

slide-24
SLIDE 24

not satisfied

1-in-3SAT

One-in-three (1-in-3): satisfying assignment 
 if 1 (but not 2 or 3) true literals per clause. 
 


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

x1 = F x2 = F x3 = F x4 = T

∧ ∧ (F ∨ F ∨ T) (F ∨ F ∨ T) (F ∨ F ∨ T)

satisfied satisfied satisfied

x1 = T x2 = F x3 = F x4 = T

∧ ∧ (F ∨ F ∨ T) (T ∨ F ∨ T) (T ∨ F ∨ T)

not satisfied satisfied

slide-25
SLIDE 25

Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”).

SAT Reconfiguration Problems

Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 3SAT reconfiguration problem is PSPACE-complete.

slide-26
SLIDE 26

Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”).

SAT Reconfiguration Problems

Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 3SAT reconfiguration problem is PSPACE-complete.

Is there a SAT variant whose:

  • Solving problem (“Does a satisfying assignment exist?”) is in P.
  • Reconfiguration problem is PSPACE-complete.
slide-27
SLIDE 27

Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”).

SAT Reconfiguration Problems

Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 3SAT reconfiguration problem is PSPACE-complete.

Is there a SAT variant whose:

  • Solving problem (“Does a satisfying assignment exist?”) is in P.
  • Reconfiguration problem is PSPACE-complete.

Yes, monotone planar NAE 3SAT.

slide-28
SLIDE 28

Monotone Planar NAE 3SAT

Monotone: no negated variables. Planar: graph of variables and clauses is planar.
 
 Not-All-Equal (NAE): satisfying assignment 
 if 1 or 2 (but not 3) true literals per clause. 
 


slide-29
SLIDE 29

Monotone Planar NAE 3SAT

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

slide-30
SLIDE 30

Monotone Planar NAE 3SAT

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

c1 c2 c3 c1 c2 c3 x1 x2 x3 x4

slide-31
SLIDE 31

Monotone Planar NAE 3SAT

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

x1 = T x2 = F x3 = T x4 = T

∧ ∧ (F ∨ F ∨ T) (T ∨ F ∨ T) (T ∨ F ∨ T)

satisfied satisfied satisfied

x1 = T x2 = T x3 = T x4 = F

∧ ∧ (T ∨ T ∨ F) (T ∨ T ∨ T) (T ∨ T ∨ F)

satisfied not satisfied satisfied

slide-32
SLIDE 32

Theorem: monotone planar NAE 3SAT reconfiguration
 is PSPACE-complete. Reduction is from non-deterministic constraint logic (NCL)

Monotone planar NAE 3SAT solving is in P [Moret 1988]

Monotone Planar NAE 3SAT

slide-33
SLIDE 33

weight 1 weight 2 Each node needs incoming weight ≥2

Non-Deterministic Constraint Logic (NCL)

slide-34
SLIDE 34

weight 1 weight 2 Each node needs incoming weight ≥2

Non-Deterministic Constraint Logic (NCL)

slide-35
SLIDE 35

weight 1 weight 2 Each node needs incoming weight ≥2

⇒ ⇒

Non-Deterministic Constraint Logic (NCL)

slide-36
SLIDE 36

weight 1 weight 2 Each node needs incoming weight ≥2

⇒ ⇒

NCL reconfiguration is PSPACE-complete, even for:

  • Planar, degree-3 graphs.
  • Only two types of nodes:
  • Proved by [DH 2005]

∧ ∨

Non-Deterministic Constraint Logic (NCL)

slide-37
SLIDE 37

x y z

Create a variable for orientation of each edge. Create a clause set for each node.

3SAT Reconfiguration is PSPACE-hard

∨ ∧ (x ∨ y ∨ z)

(x ∨ y) ∧ (x ∨ z) x y z

x1 x2 x3 x4 x5 x6

(¬x1 ∨ ¬x2 ∨ ¬x5) ∧ (x1 ∨ x2) ∧ (x1 ∨ x4) ∧ (x3 ∨ ¬x2) ∧ (x3 ∨ x6) ∧ (x5 ∨ ¬x4) ∧ (x5 ∨ ¬x6)

slide-38
SLIDE 38

Theorem: monotone planar NAE 3SAT reconfiguration
 is PSPACE-complete. Reduction is from non-deterministic constraint logic (NCL).

∨ x y z ≅

(x ∨ F ∨ c) ∧ (a ∨ b ∨ c) ∧ (a ∨ y ∨ F) ∧ (b ∨ z ∨ F)

∨ x y z ≅

(x ∨ y ∨ F) ∧ (x ∨ z ∨ F)

slide-39
SLIDE 39

Other easy-to-solve,
 hard-to-connect problems

slide-40
SLIDE 40

Reconfiguring planar graph 4-colorings. [Bonsma, Cerceda 2009]

Easy-to-Solve Hard-to-Connect Problems

Reconfiguring shortest paths. [Bonsma 2013]

⇒ ⇒ ⇒ ⇒ ⇒

s t s t s t

slide-41
SLIDE 41

Subset Sum

Two options for subset sum reconfiguration:

  • 1. Swap x, y and x+y, keep target sum.
  • 2. Add/remove x, keep sum in target range.

S = {2, 3, 7} S = {5, 7}

swap 2, 3 with 5

S = {5, 3, 4}

swap 7 with 3, 4

Option 1 Option 2 S = {2, 3, 7} S = {3, 7}

remove 2

S = {3, 4, 7}

add 4

Unary Input

slide-42
SLIDE 42

Subset Sum

Two options for subset sum reconfiguration:

  • 1. Swap x, y and x+y, keep target sum.
  • 2. Add/remove x, keep sum in target range.

S = {2, 3, 7} S = {5, 7}

swap 2, 3 with 5

S = {5, 3, 4}

swap 7 with 3, 4

Option 1 Option 2 S = {2, 3, 7} S = {3, 7}

remove 2

S = {3, 4, 7}

add 4

NP-hard [Ito, Demaine 2014] Unary Input

slide-43
SLIDE 43

Subset Sum

Two options for subset sum reconfiguration:

  • 1. Swap x, y and x+y, keep target sum.
  • 2. Add/remove x, keep sum in target range.

S = {2, 3, 7} S = {5, 7}

swap 2, 3 with 5

S = {5, 3, 4}

swap 7 with 3, 4

Option 1 Option 2 S = {2, 3, 7} S = {3, 7}

remove 2

S = {3, 4, 7}

add 4

NP-hard [Ito, Demaine 2014] PSPACE-complete (This work) Unary Input

slide-44
SLIDE 44

Subset Sum Reconfiguration

Theorem: subset sum reconfiguration via
 swapping x, y and x+y is strongly PSPACE-complete. Reduction is from token sliding: reconfiguring 
 independent sets via swapping adjacent vertices.

⇒ ⇒

Reconfiguration problem is PSPACE-complete, 
 even for 3-regular graphs [DH 2005]

unary input

slide-45
SLIDE 45

Conclusion

Two new “easy-to-solve, hard-to-connect” problems:

  • monotone planar NAE 3SAT
  • subset sum via swapping x, y and x+y.

Open:

  • PSPACE-hardness of subset sum via add/remove x?
  • Meta-theorems on reconfiguration for problems in P?
  • Dichotomy theorem for SAT [Gopalan et al. 2009]
slide-46
SLIDE 46

x y z yin zin xin F F yout zin xin F F t T yout xin F F t T zout T t0

Reconfiguration of Satisfying Assignments and
 Subset Sums: Easy to Find, Hard to Connect

Jean Cardinal, Erik Demaine, David Eppstein, Robert Hearn, Andrew Winslow