A universally fastest algorithm for Max 2-Sat, Max 2-CSP, and everything in between

We introduce "hybrid" Max 2-CSP formulas consisting of "simple clauses", namely conjunctions and disjunctions of pairs of variables, and general 2-variable clauses, which can be any integer-valued functions of pairs of boolean variables. This allows an algorithm to use both efficient reductions specific to AND and OR clauses, and other powerful reductions that require the general CSP setting. Parametrizing an instance by the fraction p of nonsimple clauses, we give an exact (exponential-time) algorithm that is the fastest polynomial-space algorithm known for Max 2-Sat (and other p = 0 formulas, with arbitrary mixtures of AND and OR clauses); the only efficient algorithm for mixtures of AND, OR, and general integer-valued clauses; and tied for fastest for general Max 2-CSP (p = 1). Since a pure 2-Sat input instance may be transformed to a general CSP instance in the course of being solved, the algorithm's efficiency and generality go hand in hand. Our novel analysis results in a family of running-time bounds, each optimized for a particular value of p. The algorithm uses new reductions introduced here, as well as recent reductions such as "clause-learning" and "2-reductions" adapted to our setting's mixture of simple and general clauses. Each reduction imposes constraints on various parameters, and the running-time bound is an "objective function" of these parameters and p. The optimal running-time bound is obtained by solving a convex nonlinear program, which can be done efficiently and with a certificate of optimality.

[1]  David Eppstein,et al.  3-Coloring in Time O(1.3289^n) , 2000, J. Algorithms.

[2]  Henning Fernau,et al.  A new upper bound for Max-2-SAT: A graph-theoretic approach , 2008, J. Discrete Algorithms.

[3]  Oliver Kullmann Worst-case Analysis, 3-SAT Decision and Lower Bounds: Approaches for Improved SAT Algorithms , 1997 .

[4]  Alexander S. Kulikov,et al.  A new approach to proving upper bounds for MAX-2-SAT , 2006, SODA '06.

[5]  Paul S. Bonsma,et al.  Feedback Vertex Set in Mixed Graphs , 2010, WADS.

[6]  Edward A. Hirsch,et al.  A New Algorithm for MAX-2-SAT , 2000, STACS.

[7]  P. Rossmanith,et al.  A New Satisabilit y Algorithm With Applications To Max-Cut , 2005 .

[8]  Magnus Wahlström,et al.  Exact algorithms for finding minimum transversals in rank-3 hypergraphs , 2004, J. Algorithms.

[9]  Fabrizio Grandoni,et al.  A measure & conquer approach for the analysis of exact algorithms , 2009, JACM.

[10]  Stefan Richter,et al.  Algorithms Based on the Treewidth of Sparse Graphs , 2005, WG.

[11]  Mikko Koivisto,et al.  Optimal 2-constraint satisfaction via sum-product algorithms , 2006, Inf. Process. Lett..

[12]  Alex D. Scott,et al.  Linear-programming design and analysis of fast algorithms for Max 2-CSP , 2006, Discret. Optim..

[13]  Rolf Niedermeier,et al.  New Upper Bounds for Maximum Satisfiability , 2000, J. Algorithms.

[14]  Kousha Etessami,et al.  Recursive Markov chains, stochastic grammars, and monotone systems of nonlinear equations , 2005, JACM.

[15]  Konstantin Kutzkov,et al.  New Bounds for MAX-SAT by Clause Learning , 2007, CSR.

[16]  David Eppstein,et al.  Quasiconvex analysis of multivariate recurrence equations for backtracking algorithms , 2006, TALG.

[17]  Alex D. Scott,et al.  Faster Algorithms for MAX CUT and MAX CSP, with Polynomial Expected Time for Sparse Instances , 2003, RANDOM-APPROX.

[18]  Oliver Kullmann,et al.  New Methods for 3-SAT Decision and Worst-case Analysis , 1999, Theor. Comput. Sci..

[19]  Alex D. Scott,et al.  Polynomial Constraint Satisfaction: A Framework for Counting and Sampling CSPs and Other Problems , 2006, ArXiv.

[20]  Ryan Williams,et al.  A new algorithm for optimal 2-constraint satisfaction and its implications , 2005, Theor. Comput. Sci..

[21]  Rolf Niedermeier,et al.  Worst-case upper bounds for MAX-2-SAT with an application to MAX-CUT , 2003, Discret. Appl. Math..

[22]  Oliver Kullman Worst-case analysis, 3-SAT decision and lower bounds: Approaches for improved SAT algorithms , 1996, Satisfiability Problem: Theory and Applications.

[23]  Venkatesh Raman,et al.  Upper Bounds for MaxSat: Further Improved , 1999, ISAAC.

[24]  Fabrizio Grandoni,et al.  Measure and Conquer: Domination - A Case Study , 2005, ICALP.