A Collection of Problems in Propositional Logic

Size: px
Start display at page:

Download "A Collection of Problems in Propositional Logic"

Transcription

1 A Collection of Problems in Propositional Logic Hans Kleine Büning SS 2016

2 Problem 1: SAT (respectively SAT) Instance: A propositional formula α (for SAT in CNF). Question: Is α satisfiable? The problems are NP-complete. The proof for SAT is based on a representation of calculations of non-deterministic, polynomial time bounded Turing machines by propositional formulas. A polynomial reduction from SAT to SAT is given, for example, by the algorithm TREE-CNF.

3 Problem 2: 3-SAT Instance: α 3-CNF. Question: Is α satisfiable? The problem is NP-complete. The satisfiability problem for the class 2-CNF is solvable in linear time. The algorithm SPLIT-CLAUSES transforms, for k = 3, a formula in CNF in polynomial time into a satisfiability equivalent formula in 3-CNF. If two initial formulas are satisfiability equivalent, then the formulas obtained using SPLIT-CLAUSES are still satisfiability equivalent. A transformation which preserves logical equivalence therefore requires so much information about the initial formula that (under the assumption P conp) it can only be computed with superpolynomial effort.

4 Problem 3: READ-3 3-CNF SAT Instance: α 3-CNF, in which every atom occurs at most three times. Question: Is α satisfiable? The problem is NP-complete. If every atom occurs at most twice and if the formula is in CNF, then the satisfiability problem is solvable in linear time. Dropping the restriction to formulas in CNF in this case, the problem again becomes NP-complete.

5 Problem 4: Monotone 3-SAT Instance: α β 3-CNF, where α only has positive literals and β only has negative literals. Question: Is α β satisfiable? The problem Monotone 3-SAT is NP-complete. A reduction of 3-SAT is possible using the following mapping: Replace (A B C) by (A Y ) ( Y B C) and replace (A B C) by (A B Y ) ( Y C), where for each clause Y is a new atom. The other clauses remain unchanged.

6 Problem 5: 4-CSAT Instance: α 4-CNF such that for every clause (L 1 L 2 L 3 L 4 ) in α the clause ( L 1 L 2 L 3 L 4 ) also occurs in α. Question: Is α satisfiable? The problem is NP-complete. A reduction of 3-SAT is as follows: For α we choose a new atom X and replace every clause (L 1 L 2 L 3 ) in α by (X L 1 L 2 L 3 ) and ( X L 1 L 2 L 3 ). Then α is satisfiable if and only if the resulting formula is satisfiable.

7 Problem 6: 3-CSAT Instance: α 3-CNF such that for each clause (L 1 L 2 L 3 ) α the clause ( L 1 L 2 L 3 ) also occurs in α. Question: Is α satisfiable? The problem is NP-complete. A reduction of 4-CSAT is as follows: For every clause pair we choose a new atom X and replace the clauses (L 1 L 2 L 3 L 4 ) and ( L 1 L 2 L 3 L 4 ) by (X L 1 L 2 ), ( X L 1 L 2 ), ( X L 3 L 4 ) and (X L 3 L 4 ). Then the initial formula is in 4-CSAT if and only if the resulting formula is in 3-CSAT.

8 Problem 7: Monotone 3-CSAT Instance: α β 3-CNF such that every clause in α has only positive literals and every clause in β only has negative literals. Furthermore, (A 1 A 2 A 3 ) α if and only if ( A 1 A 2 A 3 ) β. Question: Is α β satisfiable? The problem is NP-complete by virtue of the following reduction of 3-CSAT: We replace every clause pair (A B C), ( A B C) by (A B X ), ( X C), ( A B X ), (X C) with a corresponding new atom X. The positive and negative clauses remain unchanged. Then the initial formula is in 3-CSAT if and only if the resulting formula is in Monotone 3-CSAT.

9 Problem 8: Monotone (3,2)-SAT Instance: α β CNF such that α 3-CNF has only positive literals and β 2-CNF has only negative literals. Question: Is α β satisfiable? The problem is NP-complete. A reduction of Monotone 3-CSAT can be given using the following mapping: Replace each clause ( B 1 B 2 B 3 ) by (X 1 X 2 X 3 ), ( X 1 B 1 ), ( X 2 B 2 ), ( X 3 B 3 ), where X 1, X 2, X 3 are corresponding new atoms. The other clauses remain unchanged.

10 Problem 9: 1-3-SAT Instance: α 3-CNF with only positive literals. Question: Does there exist a truth assignment such that in each clause exactly one literal is true? The problem 1-3-SAT is NP-complete by. A reduction of 3-SAT can be given as follows: For α 3-CNF with atoms X 1,..., X n we choose for each clause (L 1 L 2 L 3 ) in α new atoms A 1,..., A 6 and replace the clause by (L 1 A 1 A 4 ), (L 2 A 2 A 4 ), (A 1 A 2 A 5 ), (A 3 A 4 A 6 ) and (L 3 A 3 ). In the next step we choose for each X i new atoms Bi 1, B2 i, B3 i, X + i and X i and replace every occurrence of X i by X + i and every occurrence of X i by X i. Finally we add the clauses (X + i X i Bi 1 + ), (X i X i Bi 2) and (B1 i Bi 2 Bi 3 ). The resulting formula is in 1-3-SAT if and only if α is satisfiable. The formula has only positive literals and is in 3-CNF.

11 Problem 10: NOT-ALL-EQUAL-3-SAT Instance: α 3-CNF. Question: Is there a truth assignment of α such that every clause contains at least one true and one false literal? The NP-completeness of this problem follows immediately from a reduction of 3-CSAT.

12 Problem 11: 1-Satisfiability Instance: α CNF. Question: Does the formula α have at most one satisfying truth assignment? With a reduction the conp-completeness of this problem can be shown. The complement of the problem, namely 1-Satisfiability, the class of formulas in CNF with at least two satisfying truth assignments, is obviously in NP. It remains to be shown that 1-Satisfiability is conp-hard. For this we use the following reduction of SAT: To every formula β = β 1... β k CNF with atoms X 1,..., X n is assigned a formula β 1-Sat = (X 0 X 1... X n ) ( X 0 β) where X 0 is a new atom. Then we have: β SAT β 1-Sat has exactly one satisfying truth assignment.

13 Problem 12: 3,4-SAT Instance: α CNF with exactly three literals per clause and every atom occurs at most four times. Question: Is α satisfiable? The problem is NP-complete. If a formula in CNF consists of clauses each with exactly r literals and every atom occurs at most r times in α, then α is satisfiable. (Multiple occurrences of literals in one clause are in this case not allowed.)

14 Problem 13: 2/2/4-SAT Instance: α CNF over m atoms and with m clauses each with exactly four literals per clause and at most four occurrences per atom in α, two negated and two unnegated. Question: Does there exist a satisfying truth assignment for α such that in each clause exactly two literals have the value true? The problem is NP-complete. The proof is established by reducing the problem 1-3-SAT to this problem.

15 Problem 14: MAX-SAT Instance: α = {α 1,..., α n } CNF and k IN. Question: Are there at least k clauses α i1,..., α ik that {α i1,..., α ik } is satisfiable? in α such The problem is NP-complete. For the class of all 2-HORN formulas, i.e. Horn formulas with at most two literals per clause, and for the class of formulas which, except for the unit clauses, contain a positive literal in each clause, the problem MAX-SAT remains NP-complete. The reduction is carried out using the Vertex Cover Problem. The problem is polynomial time decidable for the class of 2-HORN formulas which contain in each clause two literals, one positive and one negative.

16 Problem 15: #SAT Instance: α CNF. Question: How many satisfying truth assignments does α have? This problem is complete in the class #P, the class of problems for which there exists a non-deterministic polynomial Turing machine that yields the number of accepting computations for a given input.

17 Problem 16: SAT (Parity-SAT) Instance: α CNF. Question: Does α have an odd number (respectively even number) of satisfying truth assignments? This problem is complete in the class P, the class of problems for which there exists a non-deterministic polynomial Turing machine that accepts an input precisely when the number of accepting computations for that input is odd.

18 Problem 17: Consequence Instance: α CNF and L a literal. Question: Does α = L hold? The problem is conp-complete by virtue of the following observations: For L literals (α) we have α = L if and only if α L is inconsistent. If L literals (α), then α = L if and only if α is inconsistent.

19 Problem 18: Equivalence Instance: α, β CNF. Question: Does α β hold? The problem is conp-complete. Since for β = A A the formula α is equivalent to β if and only if α is inconsistent, we have a reduction of the problem SAT. With the help of a non-deterministic polynomial procedure we can test for consequence every clause from β with respect to α and every clause from α with respect to β. For formulas in 3-CNF we can test equivalence to a formula consisting of just one unit clause in linear time, as well as equivalence to a fixed formula from CNF.

20 Problem 19: Monotone 3-CNF EQUIV 3-DNF Instance: (α, β) such that α 3-CNF, β 3-DNF and only positive literals occur in α and β. Question: Does α β hold? The problem is conp-complete. Membership of conp is trivial. Completeness can be established by a reduction of the problem Monotone 3-CSAT to the complement. For suppose α β is an input for the problem Monotone 3-CSAT, then α β is satisfiable if and only if α β holds.

21 Problem 20: k-closure (for fixed k 3) Instance: π is a (k + 1)-clause and α k-cnf such that α = {δ δ is a k-clause, atoms (δ) atoms (α), and α = δ}. Question: Does α = π hold? The problem k-closure conp-complete.

22 Problem 21: Minimum Length Instance: Φ CNF and k IN. Question: Does there exist a formula Ψ CNF equivalent to Φ with Ψ k ( number of literals)? If Φ and Ψ are Horn formulas, then the problem is NP-complete. The equivalence of Horn formulas can be decided in quadratic time. For every formula Φ of length k which is equivalent to a Horn formula there exists an equivalent Horn formula of length less than or equal to k, yet consisting of Horn subclauses of the clauses of Φ. Choosing and testing such Horn subformulas of the initial formula leads to an NP-algorithm. Completeness can be established by a reduction of the Set Covering Problem. From this it follows that the minimum length problem for CNF is NP-hard. From the following reduction of the problem SAT it follows that the problem is also conp-hard. For this we choose for a formula α CNF two new atoms A and B. Then α is inconsistent if and only if for the formula α A B an equivalent formula of length less than or equal to 2 exists.

23 Problem 22: Number of Atoms Instance: Φ CNF Question: Do any/all formulas equivalent to Φ in CNF satisfy some conditions on upper and/or lower bounds of the number of atoms? For polynomially computable functions f : IN IN with 1 f (m) m we define V min f := {Φ CNF ϕ CNF with ϕ Φ : atoms (ϕ) f ( atoms (Φ) )}. For every equivalent representation of a formula in Vf min atoms at least f (m) atoms are required. over m V max f := {Φ CNF ϕ CNF with ϕ Φ : atoms (ϕ) f ( atoms (Φ) )}. For at least one representation of a formula in Vf max at most f (m) atoms are necessary. over m atoms

24 The class V f := Vf min Vf max contains all formulas Φ for which each equivalent representation requires at least f ( atoms (Φ) ) atoms and at least one representation requires exactly this number of atoms. The classes V f1,f 2 := Vf min 1 Vf max 2 are defined analogously, but with two different bounds. For a given constant k > 1 we use k to denote the constant function, i.e. k(m) := k for all m IN. Then we have (a) Vf min NP and Vk min is NP-complete for k > 1, (b) Vf max conp and Vk max is conp-complete, (c) V k is conp-complete, (d) V f D P, (e) V f4,f 2 is D P -complete for f 4 (m) = m 4 and f 2(m) = m 2.

25 Problem 23: All Atoms (Exact Atom Number) Instance: Φ CNF. Question: Does every formula in CNF which is equivalent to Φ contain all atoms of Φ? The problem can be described using the terminology of problem 22 as V id such that id(m) = m for all m. The problem is in NP, since V id = Vid min. Completeness is a consequence of a reduction of the problem SAT. Let Φ CNF with atoms A 1,..., A n and let A n+1 be a new atom for Φ. Furthermore, let I 1 be the truth assignment which gives all atoms the value 1.

26 Problem 24: Minimum Disjunctive Normal Form Instance: Set of atoms U = {A 1,..., A n }, set of truth assignments I = {I 1,..., I r } over U and k 1. Question: Does there exist a formula Φ DNF with atoms from U and at most k clauses such that for every truth assignment I over U we have (I(Φ) = 1 I I )? In [?] by using a reduction of the Minimum Cover Problem the NP-completeness of this problem is established. It remains NP-complete if the input also contains the complement of I with respect to U, i.e. the input is U, I, {I I truth assignment over U} \ I and k 1.

27 Problem 25: Not All Redundant Instance: Φ = {ϕ 1,..., ϕ n } CNF. Question: Does there exist i {1,..., n} such that Φ \ {ϕ i } Φ? The problem is NP-complete. A reduction of SAT is possible with the mapping which assigns to each formula Φ the formula Φ A A, where A is a new atom.

28 Problem 26: Maximum Clauses Instance: Φ CNF and k IN. Question: Does there exist a formula equivalent to Φ containing at most k clauses? The problem is conp-hard. This follows immediately from the following reduction of SAT. For a formula Φ with atoms X 1,..., X m we define Φ i = Φ[X 1 /X1 i,..., X n/xn] i for i = 1, 2, 3, where the Xj i are new atoms. For k = 2 we obviously have Φ SAT if and only if for Φ 1 Φ 2 Φ 3 there is no equivalent formula with at most two clauses.

29 Problem 27: Minimal CNF Instance: Φ = {ϕ 1,..., ϕ n } CNF. Question: Is Φ minimal, i.e. does the statement Φ \ {ϕ i } Φ hold for all 1 i n? The problem is NP-complete. Membership of NP is obvious. Completeness can be established by a reduction of 3-SAT. Let Φ = {ϕ 1,..., ϕ n } be a formula in 3-CNF with clauses ϕ i = (L i,1 L i,2 L i,3 ) and let X 1,..., X n be new atoms; furthermore, let ψ i = (X 1... X i 1 X i+1... X n ). We now construct a corresponding formula Ψ = (ϕ i ψ i ) ( L i,j ψ i X i ) 1 i n 1 i<j n 1 i n,1 j 3 ( X i X j ) (X 1... X n ). Then Ψ is inconsistent and furthermore Φ is in 3-SAT if and only if Ψ \ {σ} Ψ for all clauses σ in Ψ.

30 Problem 28: SAT-UNSAT Instance: (α, β) CNF CNF. Question: Does α SAT and β SAT hold? The problem is D P -complete. Membership of D P can be seen by the construction X = {(α, β) CNF CNF α SAT} and Y = {(α, β) CNF CNF β SAT}. For every problem M = X Y in D P with X NP and Y conp there are polynomial time computable functions f and g such that for each input x for M we have x M (f (x), g(x)) SAT-UNSAT.

31 Problem 29: Minimal Unsatisfiability (Critical Satisfiability) Instance: α = {α 1,..., α n } 3-CNF. Question: Is α inconsistent and is α \ {α i } satisfiable for all 1 i n? The Minimal Unsatisfiability Problem is D P -complete. Let Y = SAT and X = {α = {α 1,..., α n } i : α \ {α i } satisfiable}, then Y conp and X NP. So the problem is in D P. Completeness can be shown by a reduction of the D P -complete problem SAT-UNSAT.

32 Problem 30: Not All Redundant UNSAT Instance: Φ = {ϕ 1,..., ϕ m } CNF. Question: Does Φ SAT and 1 i m : (Φ \ {φ i } SAT) hold? The problem is D P -complete. A proof can be given by reducing the D P -complete problem Minimal Unsatisfiability. For every formula Φ = {ϕ 1,..., ϕ m } with atoms X 1,..., X n we construct the formula f (Φ) as follows: For 1 i, j m and 1 k n let X i,k and Y i,j be new atoms; furthermore, let ϕ i j be a copy of ϕ j with X 1,..., X n replaced by X i,1,..., X i,n. We define Φ i = (ϕ i j Y i,j ) (ϕ i j X i,j ) ( Y i,j X i,j ) 1 j m 1 j m 1 j i m for 1 i m. From the m individual formulas we construct f (Φ): f (Φ) = Φ i ( Y 1,1... Y m,m ). 1 i m Then Φ is in Minimal Unsatisfiability if and only if f (Φ) is in Not All Redundant UNSAT.

33 Problem 31: Unique-SAT Instance: α CNF. Question: Does the formulas α have exactly one satisfying truth assignment? Unique-SAT is conp-hard. To establish this we give a reduction of SAT. To every formula β = β 1... β k CNF with atoms X 1,..., X n is assigned the formula U(β) = (X 0 X 1... X n ) ( X 0 β), where X 0 is a new atom. Then we have β SAT if and only if U(β) has exactly one satisfying truth assignment. Unique-SAT is D P -complete if and only if SAT is polynomially reducible to Unique-SAT. This equivalence follows from the D P -completeness of SAT-UNSAT.

34 Problem 32: Satisfiability Equivalence Instance: α, β CNF. Question: Are α and β not satisfiability equivalent? The problem is in D P. Let X = {(π, τ) π SAT or τ SAT} and Y = {(π, τ) π SAT or τ SAT}, then X is in NP and Y in conp. Furthermore, we have (α, β) X Y if and only if α and β are not satisfiability equivalent.

35 Problem 33: Renaming DHORN Instance: α HORN. Question: Does there exist a renaming f such that f (α) is a definite Horn formula? By a renaming f we understand a mapping which to each atom A assigns either A or A. If we apply this renaming to a formula Φ, then every atom A is replaced by f (A). (Double negations are omitted.) In f (Φ) for some atoms the property negated/unnegated is swapped in all occurrences. The problem can be shown to be NP-complete by a reduction of the problem 1-3-SAT.

36 Problem 34: Partial Horn Renaming Instance: α = {α 1,..., α n } CNF, m n. Question: Does there exist a renaming f of the atoms in α so that at least m clauses α i1,..., α im in α are Horn clauses after renaming, i.e. f ({α i1,..., α im }) is a Horn formula? The NP-completeness of this problem can be established by a reduction of the problem 1-3-SAT.

37 Problem 35: Renaming MAX-2-POS Instance: Φ CNF. Question: Does there exist a renaming f of the atoms in Φ, such that for every clause in f (Φ) at most two positive literals occur (i.e. f (Φ) MAX-2-POS)? The problem is NP-complete. The reduction of the problem 1-3-SAT can be carried out as follows: Let Φ = {ϕ 1,..., ϕ n } 3-CNF with every clause containing only positive literals, and let ϕ i = (A i,1 A i,2 A i,3 ). We add to the formula Φ the new atoms A, B and P to give the following formula: Φ = (A B P) (A B P) ( A B P) ( A B P) ((A i,1 A i,2 A i,3 P) ( A i,1 A i,2 A i,3 )). 1 i n By contrast, if we ask whether there exists a renaming into a Horn formula, i.e. a formula with at most one positive literal in each clause, then the problem is solvable in linear time.

38 Problem 36: HORN-SAT with additional units Instance: Sets of atoms {A 1, B 1 },..., {A n, B n } and a Horn formula α. Question: Do there exist X 1 {A 1, B 1 },..., X n {A n, B n } such that α {X 1,..., X n } is inconsistent? By means of a reduction of 3-SAT, NP-completeness is established.

39 Problem 37: Minimal Input Set Instance: An acyclic definite Horn formula α, atom A and k IN. Question: Does there exist a minimal input set S for A with S k? An input set for A is a subset S of the atoms which only occur in α as negative literals such that α S = A holds. The problem is NP-complete. This is established by means of a reduction of the Vertex Cover Problem.

40 Problem 38: Simple Formula Instance: α CNF. Question: Does there exists a formula β equivalent to α with a simple syntactic structure? In detail the problem can be subdivided into the following questions: Given α CNF, does there exist a formula β with α β and (a) β HORN? (c) β k-cnf (k IN, k 1 fixed)? (b) β DHORN? (d) β READ-1 3-CNF? Each of the problems (a) (d) is conp-complete.

41 Problem 39: Restricted Equivalence Horn Instance: Formulas α, β HORN, a set of atoms R. Question: Does α R β hold? The problem is conp-complete. This also holds for the question α = R β.

42 Problem 40: Loop-Test Prolog Instance: Propositional Prolog program π. Question: Does there exist a query clause γ such that the program does not terminate with this query clause? The problem is NP-complete. The equivalence problem for propositional Prolog programs is conp-complete.

43 Problem 41: HORN Partition Instance: Φ CNF and k IN, k 1. Question: Do there exist atoms A 1,..., A k in Φ, such that for all ɛ 1,..., ɛ k {0, 1} we have Φ[A 1 /ɛ 1,..., A k /ɛ k ] HORN? The problem can be shown to be NP-complete by a reduction of the Vertex Cover Problem.

44 Problem 42: Satisfiability of Boolean Expressions Instance: A set M of atoms, a subset J of the 16 possible binary boolean operators and a statement E built up using atoms from M and the connectives in J. Question: Is E satisfiable? The problem is NP-complete. The problem remains NP-complete for every complete set of boolean operators and every incomplete set of operations containing one of the sets { }, { }, {, } or {, }. Otherwise, the problem is solvable in polynomial time.

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Introduction to Advanced Results

Introduction to Advanced Results Introduction to Advanced Results Master Informatique Université Paris 5 René Descartes 2016 Master Info. Complexity Advanced Results 1/26 Outline Boolean Hierarchy Probabilistic Complexity Parameterized

More information

Propositional and Predicate Logic - II

Propositional and Predicate Logic - II Propositional and Predicate Logic - II Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - II WS 2016/2017 1 / 16 Basic syntax Language Propositional logic

More information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 20 February 23, 2018 February 23, 2018 CS21 Lecture 20 1 Outline the complexity class NP NP-complete probelems: Subset Sum NP-complete problems: NAE-3-SAT, max

More information

Maximum 3-SAT as QUBO

Maximum 3-SAT as QUBO Maximum 3-SAT as QUBO Michael J. Dinneen 1 Semester 2, 2016 1/15 1 Slides mostly based on Alex Fowler s and Rong (Richard) Wang s notes. Boolean Formula 2/15 A Boolean variable is a variable that can take

More information

An Introduction to Proof Complexity, Part II.

An Introduction to Proof Complexity, Part II. An Introduction to Proof Complexity, Part II. Pavel Pudlák Mathematical Institute, Academy of Sciences, Prague and Charles University, Prague Computability in Europe 2009, Heidelberg 2 Overview Part I.

More information

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms Assaf Kfoury 5 February 2017 Assaf Kfoury, CS 512, Spring

More information

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

Branching. Teppo Niinimäki. Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science Branching Teppo Niinimäki Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science 1 For a large number of important computational problems

More information

Quantified Boolean Formulas Part 1

Quantified Boolean Formulas Part 1 Quantified Boolean Formulas Part 1 Uwe Egly Knowledge-Based Systems Group Institute of Information Systems Vienna University of Technology Results of the SAT 2009 application benchmarks for leading solvers

More information

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

CSE 555 HW 5 SAMPLE SOLUTION. Question 1. CSE 555 HW 5 SAMPLE SOLUTION Question 1. Show that if L is PSPACE-complete, then L is NP-hard. Show that the converse is not true. If L is PSPACE-complete, then for all A PSPACE, A P L. We know SAT PSPACE

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

INPUT INDEPENDENCE AND COMPUTATIONAL COMPLEXITY

INPUT INDEPENDENCE AND COMPUTATIONAL COMPLEXITY INPUT INDEPENDENCE AND COMPUTATIONAL COMPLEXITY KOJI KOBAYASHI Abstract. This paper describes about complexity of PH problems by using problem input independence, and provide new approach to solve P vs

More information

NP-Completeness of Refutability by Literal-Once Resolution

NP-Completeness of Refutability by Literal-Once Resolution NP-Completeness of Refutability by Literal-Once Resolution Stefan Szeider Institute of Discrete Mathematics Austrian Academy of Sciences Sonnenfelsgasse 19, 1010 Vienna, Austria stefan.szeider@oeaw.ac.at

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

More information

Critical Reading of Optimization Methods for Logical Inference [1]

Critical Reading of Optimization Methods for Logical Inference [1] Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh

More information

Lecture 9: The Splitting Method for SAT

Lecture 9: The Splitting Method for SAT Lecture 9: The Splitting Method for SAT 1 Importance of SAT Cook-Levin Theorem: SAT is NP-complete. The reason why SAT is an important problem can be summarized as below: 1. A natural NP-Complete problem.

More information

Reasoning with Quantified Boolean Formulas

Reasoning with Quantified Boolean Formulas Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional

More information

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber 15-414 Aug 31, 2011 Why study SAT solvers? Many problems reduce to SAT. Formal verification CAD, VLSI Optimization AI, planning, automated

More information

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006.

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. Outline A last complete problem for NP conp, conp NP Function problems MAX-CUT A cut in a graph G=(V,E) is a set of nodes S used to partition

More information

2.5.2 Basic CNF/DNF Transformation

2.5.2 Basic CNF/DNF Transformation 2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in

More information

INPUT RELATION AND COMPUTATIONAL COMPLEXITY

INPUT RELATION AND COMPUTATIONAL COMPLEXITY INPUT RELATION AND COMPUTATIONAL COMPLEXITY KOJI KOBAYASHI Abstract. This paper describes about complexity of PH problems by using Almost all monotone circuit family and Accept input pair that sandwich

More information

The complexity of SPP formula minimization

The complexity of SPP formula minimization The complexity of SPP formula minimization David Buchfuhrer Computer Science Department California Institute of Technology Pasadena, CA 91125 dave@cs.caltech.edu Abstract Circuit minimization is a useful

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2.

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2. De Morgan s a Laws De Morgan s laws say that (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2. Here is a proof for the first law: φ 1 φ 2 (φ 1 φ 2 ) φ 1 φ 2 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 0 a Augustus DeMorgan

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

A Lower Bound for Boolean Satisfiability on Turing Machines

A Lower Bound for Boolean Satisfiability on Turing Machines A Lower Bound for Boolean Satisfiability on Turing Machines arxiv:1406.5970v1 [cs.cc] 23 Jun 2014 Samuel C. Hsieh Computer Science Department, Ball State University March 16, 2018 Abstract We establish

More information

On propositional definability

On propositional definability Artificial Intelligence 172 (2008) 991 1017 www.elsevier.com/locate/artint On propositional definability Jérôme Lang a, Pierre Marquis b, a IRIT, CNRS / Université Paul Sabatier, 118 route de Narbonne,

More information

Lecture 7: Polynomial time hierarchy

Lecture 7: Polynomial time hierarchy Computational Complexity Theory, Fall 2010 September 15 Lecture 7: Polynomial time hierarchy Lecturer: Kristoffer Arnsfelt Hansen Scribe: Mads Chr. Olesen Recall that adding the power of alternation gives

More information

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k. Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time

More information

NP Complete Problems. COMP 215 Lecture 20

NP Complete Problems. COMP 215 Lecture 20 NP Complete Problems COMP 215 Lecture 20 Complexity Theory Complexity theory is a research area unto itself. The central project is classifying problems as either tractable or intractable. Tractable Worst

More information

Decision Procedures for Satisfiability and Validity in Propositional Logic

Decision Procedures for Satisfiability and Validity in Propositional Logic Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm

More information

Minimization of Matched Formulas

Minimization of Matched Formulas WDS'11 Proceedings of Contributed Papers, Part I, 101 105, 2011. ISBN 978-80-7378-184-2 MATFYZPRESS Minimization of Matched Formulas Š. Gurský Charles University, Faculty of Mathematics and Physics, Prague,

More information

Show that the following problems are NP-complete

Show that the following problems are NP-complete Show that the following problems are NP-complete April 7, 2018 Below is a list of 30 exercises in which you are asked to prove that some problem is NP-complete. The goal is to better understand the theory

More information

ECE473 Lecture 15: Propositional Logic

ECE473 Lecture 15: Propositional Logic ECE473 Lecture 15: Propositional Logic Jeffrey Mark Siskind School of Electrical and Computer Engineering Spring 2018 Siskind (Purdue ECE) ECE473 Lecture 15: Propositional Logic Spring 2018 1 / 23 What

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

A New 3-CNF Transformation by Parallel-Serial Graphs 1

A New 3-CNF Transformation by Parallel-Serial Graphs 1 A New 3-CNF Transformation by Parallel-Serial Graphs 1 Uwe Bubeck, Hans Kleine Büning University of Paderborn, Computer Science Institute, 33098 Paderborn, Germany Abstract For propositional formulas we

More information

Correctness of Dijkstra s algorithm

Correctness of Dijkstra s algorithm Correctness of Dijkstra s algorithm Invariant: When vertex u is deleted from the priority queue, d[u] is the correct length of the shortest path from the source s to vertex u. Additionally, the value d[u]

More information

Propositional and First Order Reasoning

Propositional and First Order Reasoning Propositional and First Order Reasoning Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p p Clause: disjunction of literals q \/ p \/ r given by

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca October 4, 2015 These notes are a preliminary draft. Please use freely, but do not re-distribute

More information

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of

More information

Non-Deterministic Time

Non-Deterministic Time Non-Deterministic Time Master Informatique 2016 1 Non-Deterministic Time Complexity Classes Reminder on DTM vs NDTM [Turing 1936] (q 0, x 0 ) (q 1, x 1 ) Deterministic (q n, x n ) Non-Deterministic (q

More information

satisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs

satisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs Any Expression φ Can Be Converted into CNFs and DNFs φ = x j : This is trivially true. φ = φ 1 and a CNF is sought: Turn φ 1 into a DNF and apply de Morgan s laws to make a CNF for φ. φ = φ 1 and a DNF

More information

Advanced Topics in Theoretical Computer Science

Advanced Topics in Theoretical Computer Science Advanced Topics in Theoretical Computer Science Part 5: Complexity (Part II) 30.01.2014 Viorica Sofronie-Stokkermans Universität Koblenz-Landau e-mail: sofronie@uni-koblenz.de 1 Contents Recall: Turing

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

1 Efficient Transformation to CNF Formulas

1 Efficient Transformation to CNF Formulas 1 Efficient Transformation to CNF Formulas We discuss an algorithm, due to Tseitin [?], which efficiently transforms an arbitrary Boolean formula φ to a CNF formula ψ such that ψ has a model if and only

More information

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine Samuel C. Hsieh Computer Science Department, Ball State University July 3, 2014 Abstract We establish a lower

More information

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson Propositional Logic 1 / 33 Propositional

More information

NP-Completeness and Boolean Satisfiability

NP-Completeness and Boolean Satisfiability NP-Completeness and Boolean Satisfiability Mridul Aanjaneya Stanford University August 14, 2012 Mridul Aanjaneya Automata Theory 1/ 49 Time-Bounded Turing Machines A Turing Machine that, given an input

More information

Outline. Complexity Theory. Introduction. What is abduction? Motivation. Reference VU , SS Logic-Based Abduction

Outline. Complexity Theory. Introduction. What is abduction? Motivation. Reference VU , SS Logic-Based Abduction Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 7. Logic-Based Abduction Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien

More information

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013 Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of

More information

Detecting Backdoor Sets with Respect to Horn and Binary Clauses

Detecting Backdoor Sets with Respect to Horn and Binary Clauses Detecting Backdoor Sets with Respect to Horn and Binary Clauses Naomi Nishimura 1,, Prabhakar Ragde 1,, and Stefan Szeider 2, 1 School of Computer Science, University of Waterloo, Waterloo, Ontario, N2L

More information

1. Courses are either tough or boring. 2. Not all courses are boring. 3. Therefore there are tough courses. (Cx, Tx, Bx, )

1. Courses are either tough or boring. 2. Not all courses are boring. 3. Therefore there are tough courses. (Cx, Tx, Bx, ) Logic FOL Syntax FOL Rules (Copi) 1. Courses are either tough or boring. 2. Not all courses are boring. 3. Therefore there are tough courses. (Cx, Tx, Bx, ) Dealing with Time Translate into first-order

More information

Lecture 20: conp and Friends, Oracles in Complexity Theory

Lecture 20: conp and Friends, Oracles in Complexity Theory 6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:

More information

Complexity of DNF and Isomorphism of Monotone Formulas

Complexity of DNF and Isomorphism of Monotone Formulas Complexity of DNF and Isomorphism of Monotone Formulas Judy Goldsmith 1, Matthias Hagen 2, Martin Mundhenk 2 1 University of Kentucky, Dept. of Computer Science, Lexington, KY 40506 0046, goldsmit@cs.uky.edu

More information

Normal Forms of Propositional Logic

Normal Forms of Propositional Logic Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September

More information

On the Complexity of Enumerating Pseudo-intents

On the Complexity of Enumerating Pseudo-intents On the Complexity of Enumerating Pseudo-intents Felix Distel a, Barış Sertkaya,b a Theoretical Computer Science, TU Dresden Nöthnitzer Str. 46 01187 Dresden, Germany b SAP Research Center Dresden Chemtnitzer

More information

On the Counting Complexity of Propositional Circumscription

On the Counting Complexity of Propositional Circumscription On the Counting Complexity of Propositional Circumscription Arnaud Durand Miki Hermann Abstract Propositional circumscription, asking for the minimal models of a Boolean formula, is an important problem

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Quantified Boolean Formulas: Complexity and Expressiveness

Quantified Boolean Formulas: Complexity and Expressiveness Dagstuhl SAT Interactions 2012 Quantified Boolean Formulas: Complexity and Expressiveness Uwe Bubeck University of Paderborn 20.11.2012 Outline Introduction Free Variables and Equivalence Complexity Expressiveness

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Introduction. Pvs.NPExample

Introduction. Pvs.NPExample Introduction Computer Science & Engineering 423/823 Design and Analysis of Algorithms Lecture 09 NP-Completeness (Chapter 34) Stephen Scott (Adapted from Vinodchandran N. Variyam) sscott@cse.unl.edu I

More information

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005 Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 19, 2013 This is a preliminary draft of these notes. Please do not distribute without

More information

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity Substitution Theorem Proposition 2.7: Let φ 1 and φ 2 be equivalent formulas, and ψ[φ 1 ] p be a formula in which φ 1 occurs as a subformula at position p. Then ψ[φ 1 ] p is equivalent to ψ[φ 2 ] p. 84

More information

On the Gap between the Complexity of SAT and Minimization for Certain Classes of Boolean Formulas

On the Gap between the Complexity of SAT and Minimization for Certain Classes of Boolean Formulas On the Gap between the Complexity of SAT and Minimization for Certain Classes of Boolean Formulas Ondřej Čepek and Štefan Gurský Abstract It is a wellknown fact that the satisfiability problem (SAT) for

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 10, 2014 These notes are a preliminary draft. Please use freely, but do not re-distribute

More information

Automata Theory CS Complexity Theory I: Polynomial Time

Automata Theory CS Complexity Theory I: Polynomial Time Automata Theory CS411-2015-17 Complexity Theory I: Polynomial Time David Galles Department of Computer Science University of San Francisco 17-0: Tractable vs. Intractable If a problem is recursive, then

More information

Linear Programming Formulation of Boolean Satisfiability Problem

Linear Programming Formulation of Boolean Satisfiability Problem Linear Programming Formulation of Boolean Satisfiability Problem Maknickas Algirdas Antano Abstract With using of multi-nary logic 2 SAT boolean satisfiability was formulated as linear programming optimization

More information

Compiling Knowledge into Decomposable Negation Normal Form

Compiling Knowledge into Decomposable Negation Normal Form Compiling Knowledge into Decomposable Negation Normal Form Adnan Darwiche Cognitive Systems Laboratory Department of Computer Science University of California Los Angeles, CA 90024 darwiche@cs. ucla. edu

More information

1 PSPACE-Completeness

1 PSPACE-Completeness CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the

More information

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

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 Summary of the previous lecture Recall that we mentioned the following topics: P: is the set of decision problems (or languages) that are solvable in polynomial time. NP: is the set of decision problems

More information

Endre Boros a Ondřej Čepekb Alexander Kogan c Petr Kučera d

Endre Boros a Ondřej Čepekb Alexander Kogan c Petr Kučera d R u t c o r Research R e p o r t A subclass of Horn CNFs optimally compressible in polynomial time. Endre Boros a Ondřej Čepekb Alexander Kogan c Petr Kučera d RRR 11-2009, June 2009 RUTCOR Rutgers Center

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Design and Analysis of Algorithms CSE 5311 Lecture 25 NP Completeness Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms 1 NP-Completeness Some

More information

Lecture 7: The Polynomial-Time Hierarchy. 1 Nondeterministic Space is Closed under Complement

Lecture 7: The Polynomial-Time Hierarchy. 1 Nondeterministic Space is Closed under Complement CS 710: Complexity Theory 9/29/2011 Lecture 7: The Polynomial-Time Hierarchy Instructor: Dieter van Melkebeek Scribe: Xi Wu In this lecture we first finish the discussion of space-bounded nondeterminism

More information

Part V. Intractable Problems

Part V. Intractable Problems Part V Intractable Problems 507 Chapter 16 N P-Completeness Up to now, we have focused on developing efficient algorithms for solving problems. The word efficient is somewhat subjective, and the degree

More information

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170 UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, 2003 Notes 22 for CS 170 1 NP-completeness of Circuit-SAT We will prove that the circuit satisfiability

More information

Subclasses of Quantied Boolean Formulas. Andreas Flogel. University of Duisburg Duisburg 1. Marek Karpinski. University of Bonn.

Subclasses of Quantied Boolean Formulas. Andreas Flogel. University of Duisburg Duisburg 1. Marek Karpinski. University of Bonn. Subclasses of Quantied Boolean Formulas Andreas Flogel Department of Computer Science University of Duisburg 4100 Duisburg 1 Mare Karpinsi Department of Computer Science University of Bonn 5300 Bonn 1

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy

Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy Electronic Colloquium on Computational Complexity, Report No. 143 (2014) Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy Ronald de Haan, Stefan Szeider Institute of Information

More information

Theory of Computer Science. Theory of Computer Science. E4.1 Overview E4.2 3SAT. E4.3 Graph Problems. E4.4 Summary.

Theory of Computer Science. Theory of Computer Science. E4.1 Overview E4.2 3SAT. E4.3 Graph Problems. E4.4 Summary. Theory of Computer Science May 30, 2016 E4. Some NP-Complete Problems, Part I Theory of Computer Science E4. Some NP-Complete Problems, Part I Malte Helmert University of Basel May 30, 2016 E4.1 Overview

More information

NP-completeness. Chapter 34. Sergey Bereg

NP-completeness. Chapter 34. Sergey Bereg NP-completeness Chapter 34 Sergey Bereg Oct 2017 Examples Some problems admit polynomial time algorithms, i.e. O(n k ) running time where n is the input size. We will study a class of NP-complete problems

More information

Critical Reading of Optimization Methods for Logical Inference [1]

Critical Reading of Optimization Methods for Logical Inference [1] Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Winter 2008 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35.

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35. NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979. NP-Completeness 1 General Problems, Input Size and

More information

Algebraic Dynamic Programming. Solving Satisfiability with ADP

Algebraic Dynamic Programming. Solving Satisfiability with ADP Algebraic Dynamic Programming Session 12 Solving Satisfiability with ADP Robert Giegerich (Lecture) Stefan Janssen (Exercises) Faculty of Technology Summer 2013 http://www.techfak.uni-bielefeld.de/ags/pi/lehre/adp

More information

Principles of Knowledge Representation and Reasoning

Principles of Knowledge Representation and Reasoning Principles of Knowledge Representation and Reasoning Complexity Theory Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg April 29, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional

More information

Theory of Computation Time Complexity

Theory of Computation Time Complexity Theory of Computation Time Complexity Bow-Yaw Wang Academia Sinica Spring 2012 Bow-Yaw Wang (Academia Sinica) Time Complexity Spring 2012 1 / 59 Time for Deciding a Language Let us consider A = {0 n 1

More information

CS 375/CS M75 Logic for Computer Science

CS 375/CS M75 Logic for Computer Science CS 375/CS M75 Logic for Computer Science Ulrich Berger Department of Computer Science Swansea University Fall 2013 u.berger@swan.ac.uk http://www.cs.swan.ac.uk/ csulrich/ tel 513380, fax 295708, room 306,

More information

CSCI3390-Second Test with Solutions

CSCI3390-Second Test with Solutions CSCI3390-Second Test with Solutions April 26, 2016 Each of the 15 parts of the problems below is worth 10 points, except for the more involved 4(d), which is worth 20. A perfect score is 100: if your score

More information

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic. Propositional Logic Winter 2012 Propositional Logic: Section 1.1 Proposition A proposition is a declarative sentence that is either true or false. Which ones of the following sentences are propositions?

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel

More information

SAT, NP, NP-Completeness

SAT, NP, NP-Completeness CS 473: Algorithms, Spring 2018 SAT, NP, NP-Completeness Lecture 22 April 13, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Part I Reductions Continued Ruta (UIUC)

More information

Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas

Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas Journal of Artificial Intelligence Research 1 (1993) 1-15 Submitted 6/91; published 9/91 Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas Enrico Giunchiglia Massimo

More information