reconfiguration of satisfying assignments and subset sums
play

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,


  1. 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, Andrew Winslow

  2. Reconfiguration: 
 a SAT Example

  3. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F

  4. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F ⇒ flip x 3 x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T) x 2 = F x 3 = T

  5. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F ⇒ flip x 3 x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T) x 2 = F x 3 = T ⇒ flip x 1 x 1 = T (T ∨ ¬F) ∧ ∧ (¬T ∨ F ∨ T) (¬T ∨ ¬F ∨ ¬T) x 2 = F x 3 = T

  6. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F ⇒ flip x 3 x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ T) (¬F ∨ ¬F ∨ ¬T) x 2 = F Keeping formula satisfied x 3 = T ⇒ flip x 1 x 1 = T (T ∨ ¬F) ∧ ∧ (¬T ∨ F ∨ T) (¬T ∨ ¬F ∨ ¬T) x 2 = F x 3 = T

  7. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F ⇒ ⇒ x 1 = T (T ∨ ¬T) ∧ ∧ (¬T ∨ T ∨ F) (¬T ∨ ¬F ∨ ¬F) x 2 = T x 3 = F

  8. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) x 1 = F (F ∨ ¬F) ∧ ∧ (¬F ∨ F ∨ F) (¬F ∨ ¬F ∨ ¬F) x 2 = F x 3 = F ⇒ Impossible ⇒ x 1 = T (T ∨ ¬T) ∧ ∧ (¬T ∨ T ∨ F) (¬T ∨ ¬F ∨ ¬F) x 2 = T x 3 = F

  9. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) FTT TTT FFT TFT FTF TTF FFF TFF

  10. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) FTT TTT FFT TFT FTF TTF FFF TFF

  11. Formula: (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) FFT TFT TTF FFF

  12. Reconfiguration: 
 a Subset Sum Example

  13. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12

  14. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ swap 2, 3 with 5 S = {5, 7} 5 + 7 = 12

  15. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ swap 2, 3 with 5 S = {5, 7} 5 + 7 = 12 ⇒ swap 7 with 3, 4 5 + 3 + 4 = 12 S = {5, 3, 4}

  16. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ swap 2, 3 with 5 Keeping sum S = {5, 7} 5 + 7 = 12 equal to target sum ⇒ swap 7 with 3, 4 5 + 3 + 4 = 12 S = {5, 3, 4}

  17. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ swap 2, 3 with 5 Keeping sum S = {5, 7} 5 + 7 = 12 equal to target sum ⇒ swap 7 with 3, 4 5 + 3 + 4 = 12 S = {5, 3, 4} S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ ⇒ 5 + 3 + 4 = 12 S = {2, 4, 6}

  18. Subset: {2, 3, 4, 5, 6, 7, 8} Target sum: 12 S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ swap 2, 3 with 5 Keeping sum S = {5, 7} 5 + 7 = 12 equal to target sum ⇒ swap 7 with 3, 4 5 + 3 + 4 = 12 S = {5, 3, 4} S = {2, 3, 7} 2 + 3 + 7 = 12 ⇒ Impossible ⇒ 5 + 3 + 4 = 12 S = {2, 4, 6}

  19. 3SAT Reconfiguration Problem

  20. 3SAT Reconfiguration Problem Input: • An instance of 3SAT Φ . • A satisfying assignment A of Φ . • A satisfying assignment B of Φ . Output: Whether A can be reconfigured into B.

  21. SAT Reconfiguration Problem Input: • 3SAT formula (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) • x 1 = F, x 2 = F, x 3 = F. • x 1 = T, x 2 = F, x 3 = T. Output: Yes (can be reconfigured). Input: • 3SAT formula (x 1 ∨ ¬x 2 ) ∧ (¬x 1 ∨ x 2 ∨ x 3 ) ∧ (¬x 1 ∨ ¬x 2 ∨ ¬x 3 ) • x 1 = F, x 2 = F, x 3 = F. • x 1 = T, x 2 = T, x 3 = F. Output: No (cannot be reconfigured).

  22. SAT Reconfiguration Problem Theorem: the 3SAT reconfiguration problem 
 is PSPACE-complete. problems solvable in n O(1) space P NP PSPACE Corollary: some reconfigurations require 
 exponentially many variable flips.

  23. SAT Variants

  24. 
 1-in-3SAT One-in-three (1-in-3): satisfying assignment 
 if 1 (but not 2 or 3) true literals per clause. 
 (x 1 ∨ x 3 ∨ x 4 ) ∧ (x 2 ∨ x 2 ∨ x 4 ) ∧ (x 1 ∨ x 2 ∨ x 4 ) x 1 = F x 2 = F ∧ ∧ (F ∨ F ∨ T) (F ∨ F ∨ T) (F ∨ F ∨ T) x 3 = F satisfied satisfied satisfied x 4 = T x 1 = T x 2 = F ∧ ∧ (T ∨ F ∨ T) (F ∨ F ∨ T) (T ∨ F ∨ T) x 3 = F not satisfied satisfied not satisfied x 4 = T

  25. SAT Reconfiguration Problems Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”). Theorem: the 3SAT reconfiguration problem is PSPACE-complete.

  26. SAT Reconfiguration Problems Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”). 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.

  27. SAT Reconfiguration Problems Theorem: the 2SAT reconfiguration problem is in P. [Gopalan et al. 2009] Theorem: the 1-in-3SAT reconfiguration problem is in P (always “No”). 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.

  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. 


  29. Monotone Planar NAE 3SAT (x 1 ∨ x 2 ∨ x 4 ) ∧ (x 2 ∨ x 2 ∨ x 4 ) ∧ (x 1 ∨ x 2 ∨ x 3 )

  30. Monotone Planar NAE 3SAT (x 1 ∨ x 2 ∨ x 4 ) ∧ (x 2 ∨ x 2 ∨ x 4 ) ∧ (x 1 ∨ x 2 ∨ x 3 ) c 1 c 2 c 3 x 1 c 1 x 2 c 2 x 3 c 3 x 4

  31. Monotone Planar NAE 3SAT (x 1 ∨ x 2 ∨ x 4 ) ∧ (x 2 ∨ x 2 ∨ x 4 ) ∧ (x 1 ∨ x 2 ∨ x 3 ) x 1 = T x 2 = F ∧ ∧ (T ∨ F ∨ T) (F ∨ F ∨ T) (T ∨ F ∨ T) x 3 = T satisfied satisfied satisfied x 4 = T x 1 = T x 2 = T ∧ ∧ (T ∨ T ∨ F) (T ∨ T ∨ F) (T ∨ T ∨ T) x 3 = T satisfied satisfied not satisfied x 4 = F

  32. Monotone Planar NAE 3SAT Monotone planar NAE 3SAT solving is in P [Moret 1988] Theorem: monotone planar NAE 3SAT reconfiguration 
 is PSPACE-complete. Reduction is from non-deterministic constraint logic (NCL)

  33. ⇒ ⇒ Non-Deterministic Constraint Logic (NCL) weight 1 Each node needs incoming weight ≥ 2 weight 2

  34. ⇒ ⇒ Non-Deterministic Constraint Logic (NCL) weight 1 Each node needs incoming weight ≥ 2 weight 2

  35. ⇒ ⇒ ⇒ Non-Deterministic Constraint Logic (NCL) weight 1 Each node needs incoming weight ≥ 2 weight 2

  36. ⇒ ⇒ ⇒ Non-Deterministic Constraint Logic (NCL) weight 1 Each node needs incoming weight ≥ 2 weight 2 NCL reconfiguration is PSPACE-complete, even for: • Planar, degree-3 graphs. • Only two types of nodes: ∧ ∨ • Proved by [DH 2005]

  37. 3SAT Reconfiguration is PSPACE-hard Create a variable for orientation of each edge. Create a clause set for each node. x x ≅ ≅ (x ∨ y ∨ z) (x ∨ y) ∧ (x ∨ z) ∨ ∧ y z y z (¬x 1 ∨ ¬x 2 ∨ ¬x 5 ) x 4 x 2 ∧ (x 1 ∨ x 2 ) ∧ (x 1 ∨ x 4 ) x 6 ≅ x 1 ∧ (x 3 ∨ ¬x 2 ) ∧ (x 3 ∨ x 6 ) x 3 ∧ (x 5 ∨ ¬x 4 ) ∧ (x 5 ∨ ¬x 6 ) x 5

  38. Theorem: monotone planar NAE 3SAT reconfiguration 
 is PSPACE-complete. Reduction is from non-deterministic constraint logic (NCL). x z ≅ ∨ (x ∨ F ∨ c) ∧ (a ∨ b ∨ c) ∧ (a ∨ y ∨ F) ∧ (b ∨ z ∨ F) y x z ≅ ∨ (x ∨ y ∨ F) ∧ (x ∨ z ∨ F) y

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

  40. ⇒ ⇒ ⇒ ⇒ ⇒ Easy-to-Solve Hard-to-Connect Problems Reconfiguring planar graph 4-colorings. [Bonsma, Cerceda 2009] Reconfiguring shortest paths. [Bonsma 2013] s t s t s t

  41. Subset Sum Unary Input 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. Option 2 Option 1 S = {2, 3, 7} S = {2, 3, 7} ⇒ ⇒ remove 2 swap 2, 3 with 5 S = {3, 7} S = {5, 7} ⇒ ⇒ add 4 swap 7 with 3, 4 S = {3, 4, 7} S = {5, 3, 4}

  42. Subset Sum Unary Input 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. Option 2 Option 1 S = {2, 3, 7} S = {2, 3, 7} ⇒ ⇒ NP-hard remove 2 swap 2, 3 with 5 [Ito, Demaine 2014] S = {3, 7} S = {5, 7} ⇒ ⇒ add 4 swap 7 with 3, 4 S = {3, 4, 7} S = {5, 3, 4}

Recommend


More recommend