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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A new approach for solving SAT by P systems with active membranes<br />

(c) [a] h → [ ] h b, for h ∈ H, a, b ∈ O<br />

(communicati<strong>on</strong> rules; an object is sent out of the membrane, possibly<br />

modified during this process; the label cannot be modified);<br />

(d) [a] h → b, for h ∈ H, a, b ∈ O<br />

(dissolving rules; in reacti<strong>on</strong> with an object, a membrane can be dissolved,<br />

while the object specified in the rule can be modified);<br />

(e) [a] h → [b] h [c] h , for h ∈ H, a, b, c ∈ O<br />

(divisi<strong>on</strong> rules for elementary membranes; in reacti<strong>on</strong> with an object,<br />

the membrane is divided into two membranes with the same label; the<br />

object a specified in the rule is replaced in the two new membranes by<br />

(possibly new) objects b, c, and the remaining objects are duplicated);<br />

(f) [ ] h1 → [K] h2 [O − K] h3 , for h 1 , h 2 , h 3 ∈ H, K ⊂ O<br />

(2-separati<strong>on</strong> rules for elementary membranes, with respect to a given<br />

set of objects; the membrane is separated into two new membranes with<br />

possibly different labels; the objects from each set of the partiti<strong>on</strong> of the<br />

set O are placed in the corresp<strong>on</strong>ding membrane).<br />

As usual, Π works in a maximal parallel manner: rules of type (a) are executed<br />

in parallel, while at most <strong>on</strong>e rule out of all rules of types (b)-(f) can<br />

be applied to the same membrane in a step of the system. We say that Π is a<br />

recognizing P system if (1) Π has a designated input membrane i 0 , (2) a string<br />

w, called the input of Π, can be added to the system by placing it into the regi<strong>on</strong><br />

i 0 in the initial c<strong>on</strong>figurati<strong>on</strong>, (3) O has two designated objects yes and no, and<br />

(4) every computati<strong>on</strong> of Π halts and sends out to the envir<strong>on</strong>ment either yes<br />

or no. Moreover, Π is called deterministic if, for every input w placed into i 0 ,<br />

there is <strong>on</strong>ly a single computati<strong>on</strong> of Π.<br />

Let Π := (Π(i)) i∈N be a family of P systems. Π is uniform (by Turing<br />

machines) if it can be c<strong>on</strong>structed by a deterministic Turing machine. Moreover,<br />

Π is polynomially uniform (by Turing machines) if, for every n ∈ N, Π(n) can<br />

be c<strong>on</strong>structed in polynomial time in n by a deterministic Turing machine (see<br />

e.g. Secti<strong>on</strong> 12.2.1 in [9] for further details).<br />

We say that Π solves SAT if, for every formula ϕ in CNF with size n, starting<br />

Π(n) with a polynomial time encoding of ϕ, Π(n) sends out to the envir<strong>on</strong>ment<br />

yes if and <strong>on</strong>ly if ϕ is satisfiable. Finally, Π solves SAT in linear time if it is (1)<br />

polynomially uniform and (2) the computati<strong>on</strong> of Π(n) always halts in linear<br />

number of steps in the size of the input formula. If <strong>on</strong>ly c<strong>on</strong>diti<strong>on</strong> (2) holds, then<br />

we say that Π solves SAT in weak linear time.<br />

3 The Main Result<br />

Encoding SAT instances. Here we describe how the input formulas are encoded<br />

in the input membrane of our SAT solver P system. In fact, we employ a<br />

trivial encoding, using symbols that are in <strong>on</strong>e-to-<strong>on</strong>e corresp<strong>on</strong>dence with the<br />

clauses in C n (n ∈ N). For every n ∈ N, let O n be an alphabet with a bijecti<strong>on</strong><br />

between C n and O n . For a symbol c ∈ O n , we denote the corresp<strong>on</strong>ding clause<br />

in C n by ĉ. Thus, a formula ϕ = {C 1 , . . . , C m } (m ∈ N) will be encoded in our<br />

215

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

Saved successfully!

Ooh no, something went wrong!