09.09.2014 Views

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

On efficient algorithms for SAT<br />

disjuncti<strong>on</strong> of literals. A c<strong>on</strong>juncti<strong>on</strong> of elementary disjuncti<strong>on</strong>s is a c<strong>on</strong>junctive<br />

normal form (CNF, we are using also the terms CNF expressi<strong>on</strong>/CNF formula).<br />

(For sake of simplicity we use brackets for all elementary disjuncti<strong>on</strong>s.) The SAT<br />

problem is the following: given a propositi<strong>on</strong>al formula in c<strong>on</strong>junctive normal<br />

form, decide whether it is satisfiable (or not). If the formula is unsatisfiable, then<br />

it is equivalent to logical falsity. If the given formulae are in n-ary c<strong>on</strong>junctive<br />

normal form, then the problem is known as the n-SAT problem.<br />

It is well-known that the SAT and n-SAT problems (for n ≥ 3) are NPcomplete<br />

(see [12, 29]).<br />

A Boolean variable is called positive literal, while its negati<strong>on</strong> is called negative<br />

literal.<br />

Let us fix an alphabet (if we want to speak about a language this is usually<br />

the first step). Let F be a formula in CNF over the alphabet. If there is a satisfying<br />

assignment to the variables such that F evaluates to true, then F is in the<br />

SAT language (and vice-versa, if a word is in the language, then it is a satisfiable<br />

formula in CNF form). We will also say that F is SAT expressi<strong>on</strong>/formula.<br />

Similarly we define languages n-SAT, which c<strong>on</strong>tain <strong>on</strong>ly those formulae of the<br />

SAT language in which each elementary disjuncti<strong>on</strong> c<strong>on</strong>tains exactly n literals<br />

(n ∈ N). In this case F is also an n-SAT expressi<strong>on</strong> (or formula).<br />

Note that there is a dual problem for the SAT problem. In the dual problem<br />

the DNF is used. The problem to solve is to decide whether the given formula is<br />

a tautology, (or not). We will refer to this form as the dual SAT-problem. The<br />

dual of the SAT and n-SAT problems are also NP-complete problems (for n ≥ 3).<br />

Actually, an NP-complete problem is to decide if a formula in CNF is satisfiable.<br />

To decide if a formula in CNF is not satisfiable is co-NP-complete. Similarly, to<br />

decide if a formula in DNF is tautology (logical law) is NP-complete. To decide<br />

whether a formula in DNF is not tautology is co-NP-complete. The relati<strong>on</strong> of NP<br />

and co-NP is usually shown by these examples, the power of n<strong>on</strong>-deterministic<br />

computati<strong>on</strong> is to have at least <strong>on</strong>e computati<strong>on</strong> that gives the result. However<br />

to prove the opposite, i.e., the n<strong>on</strong>-existence of such computati<strong>on</strong> can have a<br />

different complexity from the complexity of the original problem. (The class co-<br />

NP also c<strong>on</strong>tains the class P. However, if P=NP, then NP=co-NP.) Here we just<br />

want to menti<strong>on</strong> <strong>on</strong>e interesting moment: The problem to decide if a formula in<br />

DNF is satisfiable or not, is almost trivial: the following linear algorithm solves<br />

it.<br />

1. Let i be 1.<br />

2. Let us c<strong>on</strong>sider the ith clause. If there is no such a Boolean variable that<br />

occurs both in positive and negative form (we say that a literal is c<strong>on</strong>tradictory<br />

literal in a clause if both of its forms occur in the clause), then the formula is<br />

satisfiable, a satisfying assignment is given by the elements of this clause: the<br />

positive literals have true values, the negative literals have false values, thus the<br />

formula is true independently of the values of the remaining Boolean variables.<br />

325

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!