On a random walk strategy for the Q2SAT problem K. Subramani.

Slides:



Advertisements
Similar presentations
Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
Advertisements

Cook’s Theorem The Foundation of NP-Completeness.
Max Cut Problem Daniel Natapov.
CSCI 3160 Design and Analysis of Algorithms Tutorial 4
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
Complexity 26-1 Complexity Andrei Bulatov Interactive Proofs.
Complexity 18-1 Complexity Andrei Bulatov Probabilistic Algorithms.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Algorithms in Exponential Time. Outline Backtracking Local Search Randomization: Reducing to a Polynomial-Time Case Randomization: Permuting the Evaluation.
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
Analysis of Algorithms CS 477/677
1 Discrete Structures CS 280 Example application of probability: MAX 3-SAT.
Technion 1 (Yet another) decision procedure for Equality Logic Ofer Strichman and Orly Meir Technion.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Randomzied Unique k-SAT R. Paturi, P. Pudlak, M.E. Saks and F. Zane An Improved Exponential-time Algorithm for k-SAT Journal of the ACM, Vol 52, No. 3,
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
Lecture 20: April 12 Introduction to Randomized Algorithms and the Probabilistic Method.
Complexity ©D.Moshkovitz 1 Paths On the Reasonability of Finding Paths in Graphs.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
PSPACE-Completeness Section 8.3 Giorgi Japaridze Theory of Computability.
Random Walks and Markov Chains Nimantha Thushan Baranasuriya Girisha Durrel De Silva Rahul Singhal Karthik Yadati Ziling Zhou.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Quantified Formulas - Decision Procedure Daniel Kroening, Ofer Strichman Presented by Changki Hong 07 NOV 08.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
Lecture 22 More NPC problems
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
Space Complexity. Reminder: P, NP classes P NP is the class of problems for which: –Guessing phase: A polynomial time algorithm generates a plausible.
CS151 Complexity Theory Lecture 13 May 11, Outline proof systems interactive proofs and their power Arthur-Merlin games.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
A Problem That Is Complete for PSPACE (Polynomial Space) BY TEJA SUDHA GARIGANTI.
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U.
1 Chapter 10 Intractable Problems Switzerland Lion Monument in Lucerne.
Condition Testing. Condition testing is a test case design method that exercises the logical conditions contained in a program module. A simple condition.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
CSC 413/513: Intro to Algorithms
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
Space Complexity. Reminder: P, NP classes P is the class of problems that can be solved with algorithms that runs in polynomial time NP is the class of.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
Indian Institute of Technology, Delhi Randomized Algorithms (2-SAT & MAX-3-SAT) (14/02/2008) Sandhya S. Pillai(2007MCS3120) Sunita Sharma(2007MCS2927)
PROBABILITY AND COMPUTING RANDOMIZED ALGORITHMS AND PROBABILISTIC ANALYSIS CHAPTER 1 IWAMA and ITO Lab. M1 Sakaidani Hikaru 1.
NP-Completeness A problem is NP-complete if: It is in NP
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
Introduction to Randomized Algorithms and the Probabilistic Method
Condition Testing.
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
(xy)(yz)(xz)(zy)
Intro to Theory of Computation
Intro to Theory of Computation
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
NP-Completeness Proofs
NP-COMPLETE Prof. Manjusha Amritkar Assistant Professor Department of Information Technology Hope Foundation’s International Institute of Information.
CSE 6408 Advanced Algorithms.
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Presentation transcript:

On a random walk strategy for the Q2SAT problem K. Subramani

Topics to be covered 1.Definitions of 2SAT and Q2SAT problems 2.2 player games 3.Motivation 4.Related Work 5.The random walk algorithm for 2SAT 6.Analysis of Papadimitriou`s algorithm 7.Prerequisites for coin-flipping to work 8.How Q2SAT meets those prerequisites 9. Conclusion

2SAT and Q2SAT Given a Boolean formula where each clause has at most 2 literals from the variable set {x 1, x 2, …x n }, the 2SAT problem is to check whether this formula has a satisfying assignment.

2SAT and Q2SAT (contd.) Given a Boolean formula and a quantifier string Q(x,y) where each clause has at most 2 literals from the variable set {x 1, x 2, …x n, y 1,y 2,…y n }, the Q2SAT problem is to check whether the formula Q(x,y) has a satisfying model

2 player games 1.Let X be the Existential player and Y be the Universal player. 2. Assume without loss of generality that all x variables are existentially quantified and the y variables are universa- lly quantified. 3. Each player makes a sequence of moves non-deterministi- cally in the order specified by Q(x,y). 4. A move is a true/false guess. 5. If at the end of the moves, the expression evaluates to true, we say that X has a winning strategy and this strategy is called a model for Q(x,y)

2 Player games (contd.) So the QBF problem in general, is to decide whether the existential player has a winning strategy.

Motivation 1.Algorithmic elegance. 2.How much can a simple strategy net us? 3.Deeper understanding of game theory. 4.First use of randomization to study QBF feasibility. 5.Papadimitriou got a FOCS paper out of his 2SAT random walk algorithm! [Pap91]

Related Work 1. [Pap91] introduced the random walk algorithm for simple 2SAT. 2. [WS02] applies the random walk technique to 3SAT problems with good empirical results. 3. Even for HornSAT (which is in P), the random walk algorithm does not converge in a polynomial number of steps (analytically). (For a pathological example, see [Ros00].) 4. [APT79] solves both 2SAT and Q2SAT in linear time, using connected components of the implication graph.

Related Work (contd.) 5. I am working on strategies which enhance simple random walk with “greed”, i.e., selecting the unsatisified clause with the fewest number of literals to fix. It works for HornSAT, but HornSAT has an extremely simple deterministic algorithm.

The random walk algorithm for 2SAT 1.Start with a random assignment for. 2.If all clauses are satisfied stop. 3.Pick a clause which is not satisfied. 4.Pick one of the 2 literals in this clause at random and `flip´ it. 5.Repeat steps (2)-(5) for 2n 2 steps. 6.Say that the formula is `probably unsatisfiable.´

Analysis Let us say that the given formula is satisfiable and focus on a specific satisfying assignment T. Let the initial random assignment be T´, which does not satisfy Now consider a clause C which is violated by T´. At least one of the 2 literals in C must be true in T. Therefore flipping a literal at random results in T´getting closer to T, with probability at least one half. Likewise, T´could be moving away from T, with probability one half.

Analysis (contd.) Let X i denote the number of flips required by the above algorithm, assuming that the current assignment differs from T in exactly i variables. We use the probability law: E[X] = E[E[X| Y]] (see [Ros00]) to conclude that E[X i ]= ½ (E[X i-1 ]+1)+ ½ (E[X i+1 ]+1) Also note that E[X 0 ]=0 and E[X n ]=1+E[X n-1 ], since if by chance we start off with the correct assignment, no flips are required, whereas if all variables are incorrect, then a flip must move us in the right direction!

Analysis (contd.) The above system can be solved to get E[X n ] = n 2. Now applying Markov´s law, we can conclude that the probability that more than 2.n 2 flips will be required is less than ½.

Prerequisites for flipping to work 1.A literal must be flippable, i.e., there are exactly 2 values to assign to it. (Y 1 ) 2.When a literal is flipped with probability at least one half, we move in the right direction, and with probability at most one half, we move in the wrong direction. (Y 2 ) Y 1 is trivially met in existential first order logic, by all SAT formulas, since every variable is either true or false. However, Y 2 fails for even HornSAT!

Why Q2SAT meets the prerequisites First observe that if Y 1 is met by Q2SAT then Y 2 is trivially met, since under the current assignment both literals have been set incorrectly (assuming that both variables are existentially quantified) and with probability at least ½, we will move in the right direction by choosing one at random.

Why Q2SAT meets the prerequisites I have provided a detailed explanation of Page 4 and Page 5 of my paper of how Y 1 is met by Q2CNF formulas. The main idea is that Q2SAT problems are guaranteed to have simple models, if satisfiable, i.e., a model in which each existentially quantified variable is either true, false, or y i or the complement of y i, where y i is a universally quantified variable preceding it.

Why Q2SAT meets the prerequisites A linear scan of the clause set cuts these choices to precisely two. We are now free to use Papadimitriou´s algorithm and the accompanying analysis!

Conclusion A number of interesting problems are currently open, insofar as randomized approaches are concerned: (a)Boolean equivalence, i.e., given 2 2CNF formulas, do they have the same set of satisfying assignments? (b) UNIQUE2SAT – Does a 2CNF formula have exactly one satisfying assignment? (c) CRITICAL2SAT – Is a 2CNF formula unsatisfiable, but knocking off any clause makes it satisfiable?