Exclusive and essential sets of implicates of a Boolean function Ondrej Cepek Charles University in Prague, Czech Republic jointly with Endre Boros, Alex.

Slides:



Advertisements
Similar presentations
NP-Hard Nattee Niparnan.
Advertisements

Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb Ben Gurion University Research partially Supported by the Frankel.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 · L 2 means: For some polynomial time computable map r : 8 x: x 2 L 1 iff.
CS21 Decidability and Tractability
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time in a reasonable sequential model of computation if and only if it.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Restricted Satisfiability (SAT) Problem
NP-Complete Problems Problems in Computer Science are classified into
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
ENEE244-02xx Digital Logic Design Lecture 10. Announcements HW4 assigned, due 10/9.
Restricted Satisfiability (SAT) Problem
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 ≤ L 2 means: For some polynomial time computable map r : x: x L 1 iff r(x)
CSCE350 Algorithms and Data Structure
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Lecture 22 More NPC problems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Design and Analysis of Algorithms - Chapter 101 Our old list of problems b Sorting b Searching b Shortest paths in a graph b Minimum spanning tree b Primality.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
1 How to establish NP-hardness Lemma: If L 1 is NP-hard and L 1 ≤ L 2 then L 2 is NP-hard.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
28.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
Boolean Functions 1 ECE 667 ECE 667 Synthesis and Verification of Digital Circuits Boolean Functions Basics Maciej Ciesielski Univ.
A decomposition method for CNF minimality proofs Ondrej Cepek Charles University in Prague, Czech Republic jointly with Endre Boros, Petr Kucera, (Petr.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
1 SAT SAT: Given a Boolean function in CNF representation, is there a way to assign truth values to the variables so that the function evaluates to true?
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
Chapter 10 NP-Complete Problems.
L is in NP means: There is a language L’ in P and a polynomial p so that L1 ≤ L2 means: For some polynomial time computable map r :  x: x  L1 iff.
Richard Anderson Lecture 26 NP-Completeness
Advanced Algorithms Analysis and Design
Polynomial-Time Reduction
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness (36.4-5) P: yes and no in pt NP: yes in pt NPH  NPC
Directional Resolution: The Davis-Putnam Procedure, Revisited
NP-Completeness Yin Tat Lee
Intro to Theory of Computation
Where Can We Draw The Line?
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Exclusive and essential sets of implicates of a Boolean function
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
NP-Complete Problems.
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Our old list of problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Presentation transcript:

Exclusive and essential sets of implicates of a Boolean function Ondrej Cepek Charles University in Prague, Czech Republic jointly with Endre Boros, Alex Kogan, Petr Kucera, Petr Savicky DIMACS-RUTCOR Seminar on Boolean and Pseudo-Boolean Functions, January 20, 2009

2 Outline  Notation and basic definitions  Exclusive sets Definition and example Exclusive sets and CNF minimization  Essential sets Definition and examples Duality between CNF representations and essential sets Essential sets and CNF minimization Coverable functions

3 Boolean basics  Boolean function on n variables is a mapping {0,1} n → {0,1}  Literals = variables and their negations  Clause = disjunction of literals  Clause C is an implicate of function f if f ≤ C  C is a prime implicate of f if dropping any literal means that C is no longer an implicate of f  CNF, prime CNF, irredundant CNF  Notation: I p (f) = set of all prime implicates of f

4 Boolean basics  two clauses are resolvable if they have exactly one conflicting literal producing a resolvent  if C 1 = A  x, C 2 = B   x then R(C 1, C 2 ) = A  B  R(S) is a resolution closure of set S of clauses  resolution is complete: I p (f)  R(S) for any CNF representation S of a function f  Notation : I(f) = R(I p (f))  Of course, I(f) is closed under resolution and we will not be interested in implicates of f outside of I(f)

5 Horn Basics  a clause is negative if it contains no positive literals and it is pure Horn if it contains one positive literal  a clause is Horn if it is negative or pure Horn  a CNF is Horn if it consists of Horn clauses  a Boolean function is Horn if it can be represented by a Horn CNF  Fact: f is Horn  I p (f) contains only Horn clauses  Corollary: I(f) also contains only Horn clauses (not true for the set of all implicates)

6 CNF minimization (of # of clauses)  Optimization version: Given a CNF F find a CNF G representing the same function as F and such that G consists of a minimum possible number of clauses.  Decision version: Given a CNF F and a number k does there exists a CNF G representing the same function as F such that G consists of ≤ k clauses?  NPH for general CNFs (SAT is a special case), for Horn CNFs [Ausiello, D’Atri, Sacca 1986], and for cubic Horn CNFs [Boros, Cepek 1994]  Polynomial for acyclic and quasi-acyclic Horn CNFs [Hammer, Kogan 1995]

7 Exclusive sets of implicates  Let f be a Boolean function. Then X  I(f) is an exclusive set of f if for every two resolvable clauses C 1, C 2  I(f) the following implication holds: R(C 1, C 2 )  X  C 1  X and C 2  X  Example: f Horn, X = {C  I(f) | C is pure Horn}  Theorem: Let F  I(f) and G  I(f) be two distinct CNFs representing function f and let X  I(f) be an exclusive set of f. Then F  X and G  X represent the same function (called the X-component of f).

8 Exclusive sets and minimization  Corollary: Let F  I(f) and G  I(f) be two distinct CNFs representing function f and let X  I(f) be an exclusive set of f. Then the CNF (F \ X)  (G  X) represents f.  Lemma: Let  = X 0  X 1 ...  X t be a chain of exclusive sets of a function f in which R(X t ) = I(f), and let S i  X i \ X i-1 be minimal subsets such that R(X i-1  S i ) = R(X i ) for i = 1,...,t. Then S 1  …  S t is a minimal representation of f.

9 Essential sets of implicates  Let f be a Boolean function. Then X  I(f) is an essential set of f if for every two resolvable clauses C 1, C 2  I(f) the following implication holds: R(C 1, C 2 )  X  C 1  X or C 2  X  Example 1: f Horn, X = {C  I(f) | C is negative}  Example 2: t  {0,1} n, X(t) = {C  I(f) | C(t) = 0}  Example 3: S  I(f) such that S = R(S), X = I(f) \ S  Theorem: Let S  I(f) be arbitrary. Then S (as a CNF) represents f if and only if S  X   for every nonempty essential set X  I(f).

10 Essential sets of implicates  Corollary: Let X  I(f) be arbitrary. Then X is a nonempty essential set of f only if X  S   for every CNF representation S  I(f) of the function f.  Theorem: Let X  I(f) be any minimal set such that X  S   for every CNF representation S  I(f) of the function f. Then X is an essential set of f.  Theorem: Let D  I(f) be any maximal set not representing f. Then D = R(D), I(f) \ D is an essential set of f, and moreover I(f) \ D = X(t) for some t.  Corollary: Let X  I(f) be a minimal nonempty essential set of f. Then X = X(t) for some t.

11 Essential sets and minimization  Definition: For a function f let cnf(f) denote the minimum number of clauses in a CNF representation of f and ess(f) the maximum number of pairwise disjoint nonempty essential sets of f.  Corollary: For every function f: ess(f) ≤ cnf(f).  Conjecture: For every function f: ess(f) = cnf(f).  Definition: For a function f let ess*(f) denote the maximum number of vectors t such that X(t)’s are pairwise disjoint nonempty essential sets of f.  Corollary: For every function f: ess*(f) = ess(f).

12 Essential sets and minimization  Let H be the set of Horn functions. Then the CNF minimization (decision version) for H is in NP.  Assume ess(f) = cnf(f) for every Horn function f. Is then the CNF minimization for H also in co-NP?  Definition: Let s  t be two falsepoints of f. Then we define a clause C(s,t)=(  i  I(s,t)  x i )  (  i  O(s,t) x i ) where I(s,t)={i | s[i]=t[i]=1} and O(s,t)={i | s[i]=t[i]=0}.  Lemma: Let s  t be two falsepoints of function f. Then X(s)  X(t)   if and only if C(s,t) is an implicate of f.

13 Essential sets and minimization  Summary: Minimization for H is in NP and it is also NPH so it is NPC. If the conjecture holds for H then minimization for H is in co-NP. Thus NP = co-NP.  Remark: The same is true even for the set H 3 of cubic Horn CNFs.  Corollary: Unless NP = co-NP there exists a cubic Horn function f for which ess(f) < cnf(f).  Fact: There is a cubic Horn function on 4 variables for which ess(f) = 4 and cnf(f) = 5.  Definition: A function f is coverable if ess(f)=cnf(f).

14 Open problems  Let Cov = {f | f is coverable}, Horn-Cov = H  Cov.  Recognition of Horn-Cov? If polynomial then CNF minimization for Horn-Cov is in NP  co-NP.  Recognition of Cov?  Minimization for Horn-Cov? Most likely possible if Horn-Cov recognizable.  Minimization for Cov? Hopeless unless SAT is polynomial for Cov.

15 Concluding remarks  All statements made about the set of Horn functions H can be repeated for any tractable class fulfilling: poly-time recognition poly-time SAT closed under partial assignment contains all prime representations Thank You.