Exact Max 2-SAT: Easier and Faster. Martin Fürer Shiva Prasad Kasiviswanathan Pennsylvania State University, U.S.A

Similar documents
Keywords. Approximation Complexity Theory: historical remarks. What s PCP?

A New Upper Bound for Max-2-SAT: A Graph-Theoretic Approach

Notes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction

Foundations of Artificial Intelligence

Takayuki Sakai (Kyoto University) Joint work with Kazuhisa Seto (Seikei University) Suguru Tamaki (Kyoto University) 1

Foundations of Artificial Intelligence

Exact Max 2-Sat: Easier and Faster

Approximation algorithm for Max Cut with unit weights

Lecture 21 (Oct. 24): Max Cut SDP Gap and Max 2-SAT

Problem Set 3 Due: Wednesday, October 22nd, 2014

Branching. Teppo Niinimäki. Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science

NP-Hardness reductions

SAT, Coloring, Hamiltonian Cycle, TSP

On the efficient approximability of constraint satisfaction problems

9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

Foundations of Artificial Intelligence

A New Approach to Proving Upper Bounds for MAX-2-SAT

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Lecture 16: Constraint Satisfaction Problems

Holger Dell Saarland University and Cluster of Excellence (MMCI) Simons Institute for the Theory of Computing

Lecture 24 : Even more reductions

More on NP and Reductions

CSCI 1590 Intro to Computational Complexity

Chapter 9. PSPACE: A Class of Problems Beyond NP. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

CS21 Decidability and Tractability

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine.

NP-Completeness Part II

Approximation Preserving Reductions

Width-Parameterized SAT

NP-Completeness. Algorithmique Fall semester 2011/12

Notes for Lecture 3... x 4

Lecture 12 Scribe Notes

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 8 Luca Trevisan September 19, 2017

Lecture 20: PSPACE. November 15, 2016 CS 1010 Theory of Computation

On the Complexity of the Minimum Independent Set Partition Problem

Approximations for MAX-SAT Problem

Approximations for MAX-SAT Problem

Sums of Products. Pasi Rastas November 15, 2005

Solving Max SAT and #SAT on structured CNF formulas

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University

Complexity and Approximation of the Minimum Recombinant Haplotype Configuration Problem. Authors: Lan Liu, Xi Chen, Jing Xiao & Tao Jiang

Correctness of Dijkstra s algorithm

Solving SAT for CNF formulas with a one-sided restriction on variable occurrences

Near-Optimal Algorithms for Maximum Constraint Satisfaction Problems

How hard is it to find a good solution?

Comp487/587 - Boolean Formulas

Graph. Supply Vertices and Demand Vertices. Supply Vertices. Demand Vertices

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

Complexity Theory of Polynomial-Time Problems

NP and Computational Intractability

The Complexity of Approximating Small Degree Boolean #CSP

Worst-Case Upper Bound for (1, 2)-QSAT

Limitations of Algorithm Power

A An Overview of Complexity Theory for the Algorithm Designer

Finding Satisfying Assignments by Random Walk

Provable Approximation via Linear Programming

An algorithm for the satisfiability problem of formulas in conjunctive normal form

Maximum 3-SAT as QUBO

Lecture 10: Lovász Local Lemma. Lovász Local Lemma

Good representations via complete clause-learning

CS151 Complexity Theory. Lecture 13 May 15, 2017

Increasing the Span of Stars

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

More NP-Complete Problems

Approximability of Constraint Satisfaction Problems

A brief introduction to Logic. (slides from

Design and Analysis of Algorithms

Lecture 9: The Splitting Method for SAT

Non-Approximability Results (2 nd part) 1/19

Tecniche di Verifica. Introduction to Propositional Logic

Lecture 18: Inapproximability of MAX-3-SAT

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

Connections between exponential time and polynomial time problem Lecture Notes for CS294

Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope)

Propositional Logic: Models and Proofs

CSCI3390-Lecture 17: A sampler of NP-complete problems

Complexity (Pre Lecture)

On Quantum Versions of Record-Breaking Algorithms for SAT

Approximation Algorithms for Re-optimization

Classes of Problems. CS 461, Lecture 23. NP-Hard. Today s Outline. We can characterize many problems into three classes:

Inapproximability for planar embedding problems

Approximating Maximum Constraint Satisfaction Problems

W -Hardness under Linear FPT-Reductions: Structural Properties and Further Applications

NP-Completeness Part II

Fine Grained Counting Complexity I

Space Complexity. The space complexity of a program is how much memory it uses.

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

NP-Complete Problems. More reductions

This is the author s final accepted version.

BCCS: Computational methods for complex systems Wednesday, 16 June Lecture 3

NP Complete Problems. COMP 215 Lecture 20

Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

Notes on Complexity Theory Last updated: October, Lecture 6

NP-Completeness and Boolean Satisfiability

PAC Learning. prof. dr Arno Siebes. Algorithmic Data Analysis Group Department of Information and Computing Sciences Universiteit Utrecht

Transcription:

Exact Max 2-SAT: Easier and Faster Martin Fürer Shiva Prasad Kasiviswanathan Pennsylvania State University, U.S.A

MAX 2-SAT Input: A 2-CNF fomula F with weights on clauses. Good assignment is one that maximizes the sum of weights of satisfied clauses. Optimization Problem: Find a good assignment. Counting Problem: Count the number of such good assignments. January 22 SOFSEM 2007 2

An Example Let F = (x 1 x 2 ) ( x 1 x 2 ) (x 1 x 2 ) ( x 1 ). x 1 x 2 #-clauses satisfied 0 0 3 0 1 1 0 3 3 good assignments 1 1 2 January 22 SOFSEM 2007 3

Status of Max 2-SAT NP-hard. Best approximation ratio known = 0.940. APX-hard with inapproximability ratio 21/22 (under P NP). Better hardness results under Unique Game Conjecture. Counting version is #P-complete. January 22 SOFSEM 2007 4

Some Known Results Authors Time Comments Kojevnikov, Kulikov 2006 Scott, Sorkin 2006 Williams 2004 O(2 m/5.5 ) O(2 19m/100 ) O(2 wn/3 ) m = #-clauses. holds for binary-csp n = #-variables, exponential space Summary: For polynomial space algorithms with complexity measure n, not much is known. January 22 SOFSEM 2007 5

Our Contributions - I Obtain a worst case bound of O(2 ((d(f)-2)/(d(f)-1))n ) d(f) = average number of clauses that a variable participates. The algorithm uses only polynomial space. Same upper bound for both counting and optimization problems. January 22 SOFSEM 2007 6

Our Contributions - II We obtain an O(2 cn ) upper bound if the underlying constraint graph has a small separator decomposition. Here c is some constant < 1 (i.e., independent of n). January 22 SOFSEM 2007 7

Our Contributions - III We introduce a new notion for gadget reductions. This notion allows us to obtain same upper bound for problems like Max k-sat (k constant), Max Cut, Max k-lin-2 (k constant). January 22 SOFSEM 2007 8

General Idea The algorithm uses a DPLL-like recursive decomposition technique. The idea is to chose a variable v and to recursively assign v to true and false. (a.k.a. we branch on v) The aim is to minimize the number of such branchings. January 22 SOFSEM 2007 9

Some Definitions Constraint graph: G(F) = (Var(F),E) where Var(F) = set of variables of F, E = {(u,v) u,v appear in the same clause of F}. Problem 3-SAT: Input: 3-CNF formula with weight w(l) on a literal l. Good assignment: An assignment M satisfying all the clauses such that W(M) = (l satisfied by M) w(l) is maximized. January 22 SOFSEM 2007 10

Worst case bounds Step 1: Parsimonious reduction from Max 2-SAT to 3-SAT. Clause weighted Literal weighted Step 2: Solve the 3-SAT instance. January 22 SOFSEM 2007 11

Parsimonious Reduction Function Transform(F,F ) 1) For each clause C = (x i x j ) in F add a clause (x i x j d C ) to F. 2) Assign weights to literals in F as: 0 to any literal from {x 1,,x n, x 1,, x n }. w(c) (weight of clause C) to literal d C. 0 to literal d C. January 22 SOFSEM 2007 12

Local Effects of Reduction Transform(F,F ) x 1 x 1 d 1 d 2 x 2 x 3 x 2 x 3 d 3 F F January 22 SOFSEM 2007 13

An Useful Trick Let F = F 1 F 2 and F 1, F 2 have exactly one common variable (say u) then one can work with F 1 (or F 2 ) and use the result to update weight of u. u F 1 F 2 Articulation point Advantage: One can solve F 1 and F 2 separately. First Noted by Dahllöf et al 2005. January 22 SOFSEM 2007 14

Algorithm Local-2-SAT If there exists an unassigned variable, then a) pick a variable v with lowest degree in the graph induced by unassigned variables. b) branch on all but one of v s neighbors simultaneously. Trick from the previous slide saves one branching. January 22 SOFSEM 2007 15

Upper Bound on Running Time Theorem 1: Algorithm Local-2-SAT runs in O(2 ((Δ(F)-2)/(Δ(F)-1))n ) time, where Δ(F) is the maximum degree in G(F). By a more careful analysis. Theorem 2: Algorithm Local-2-SAT runs in time O(2 ((d(f)-2)/(d(f)-1))n ), where d(f) is the average degree in G(F). January 22 SOFSEM 2007 16

Separator Decomposition January 22 SOFSEM 2007 17

Algorithm Global-2-SAT 1) Recursively find a separator in the graph. 2) Branch on these vertices simultaneously. January 22 SOFSEM 2007 18

Global-2-SAT for Separable Graphs Theorem 3: If G(F) has a small separator decomposition (i.e., every sub-graph of size k has a separator of size ηk u with O<u<1), then Global-2-SAT runs in O(2 nu η/(1-ρ u ) ) time. A constant < 1 arising out of splitting ratio. January 22 SOFSEM 2007 19

Global-2-SAT worst case bounds For many classes of graphs no small separators exist. For these graphs we use BFS to obtain a separator. Theorem 4: Algorithm Global-2-SAT runs in O(2 ((Δ(F)-2)/(Δ(F)-1))n+(Δ(F)+1)log n ) time. January 22 SOFSEM 2007 20

Gadgets Gadgets (α-gadgets) introduced by Trevisan et al. defines a reduction from a constraint function to a constraint family. We parameterize gadgets by two parameters α, β. Advantage: Allows compositions of gadgets. January 22 SOFSEM 2007 21

Definition of (α,β)-gadgets A (α,β)-gadget for α, β R +, reduces a constraint function f:{0,1} n ->{0,1} to a constraint family H such that, a) the result is a finite collection of constraints {C 1,,C β } from H over input variables x 1,,x n and auxiliary variables y 1,,y m. January 22 SOFSEM 2007 22

Definition Contd b) The weights {w 1,,w β } are assigned such that w 1 +w 2 + +w β = β. and for Boolean assignments A to x 1,,x n and B to y 1,,y m : ( A: f(a) = 1) max B ( i w i C i (A,B)) = α, ( B: f(a) = 0) max B ( i w i C i (A,B)) = α-1. January 22 SOFSEM 2007 23

Use of Gadgets (α,β) Sum of constraint P Max 2-SAT weights in P (Opt problem) (instance F) Max 2-SAT on F has optimum value αw. Any solution value S for F corresponds to solution value S-(α-1)W in P. Parameter β helps us to chain these reductions. January 22 SOFSEM 2007 24

Results with Gadgets f H (α 1,β 1 ) 1 H 2 g H (α 2,β 2 ) 2 H 3 Max Cut (2,2) f H (β 1 (α 2-1)+α 1,β 1 β 2 ) 1 H 3 Max 2-SAT Max k-sat (3.5(k-2),4(k-2)) Max 2-SAT Final result: Same upper bound for these problems. January 22 SOFSEM 2007 25

Some Open Problems Is there an O(2 cn ) time algorithm for Max 2- SAT? Easier problem: Exponential time algorithm for (1-ε) approximation? January 22 SOFSEM 2007 26

Thank you