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 />

• if the previous symbol was ¬ (we know it from part y of the given state),<br />

then there are two possibilities: if the corresp<strong>on</strong>ding value of the given<br />

variable in d is 1, then let the k + 1-st value of d ′ be 1 (and the other<br />

items can be the same as they were in d); if the corresp<strong>on</strong>ding value is<br />

not 1, then let it be 2 in d ′ and all other values are the same as they are<br />

in d.<br />

• if the previous symbol is not ¬, then: if the corresp<strong>on</strong>ding value of the<br />

given state is 2 in d, then let the k + 1-st item of d ′ be 1 and all other<br />

values of d ′ can be copied from the corresp<strong>on</strong>ding values of d. And if the<br />

corresp<strong>on</strong>ding value of d is not 2, then let it be 1 in d ′ and each of the<br />

other values will be the same as the corresp<strong>on</strong>ding value of d.<br />

– if t =], then let c ′ = c if the k + 1-st value of d is 1. In other cases let<br />

c ′ = c ∪ N, where N is the set c<strong>on</strong>taining all k-tuples in which the value of<br />

those variables which have corresp<strong>on</strong>ding values of 1 in d is 0 and the value<br />

of those variables which have corresp<strong>on</strong>ding values of 2 in d is 1. And let<br />

y ′ = M A (y, ]), finally d ′ = 0.<br />

Let W be the maximal element of C, i.e., it c<strong>on</strong>tains all the 2 k possibilities.<br />

For our automat<strong>on</strong> let the set of final states be the following: all states (c, y f , 0)<br />

for which c ≠ W , i.e., c does not c<strong>on</strong>tain all the possibilities and y f is the final<br />

state of A.<br />

Since the form of the accepted expressi<strong>on</strong>s are correct, and the part c does<br />

not c<strong>on</strong>tain all possible evaluati<strong>on</strong> of the variables in the final state, the automat<strong>on</strong><br />

defined above can recognize exactly the SAT languages, i.e., the satisfiable<br />

Boolean formulae in CNF.<br />

Using a language n-SAT instead of SAT, we modify the automat<strong>on</strong> above in<br />

the following way. Let a DFA B = (Y B , T, M B , y 0B , {y fB }) which accepts the<br />

syntactically correct n-ary CNF expressi<strong>on</strong>s. Let the states of the new automat<strong>on</strong><br />

be the elements of the Cartesian product of C, Y B and D. (The set Y B is<br />

used instead of Y .) And all of the transiti<strong>on</strong>s are the same according to the<br />

corresp<strong>on</strong>ding elements of Y B . Finally, in accepting states we use the final state<br />

of the automat<strong>on</strong> B instead of the final state of A.<br />

Moreover our automata with their final states (especially with part c ∈ C) tell<br />

us for which values of the variables the formula is true. The formula evaluates to<br />

true if the vectors are not in c. Note here that the SAT languages are infinite even<br />

if the set of variables is finite. We have c<strong>on</strong>structed finite automata accepting<br />

the languages of SAT and n-SAT. Therefore it is proved that:<br />

Theorem 1. The languages of satisfiable Boolean formulae in c<strong>on</strong>junctive normal<br />

form over any (fixed) finite sets of variables are regular languages. Similarly,<br />

the languages of n-SAT formulae (n ∈ N) over any finite sets of variables are<br />

also regular.<br />

333

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

Saved successfully!

Ooh no, something went wrong!