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.

Zs. Gazdag, G. Kol<strong>on</strong>its<br />

membrane system by the string c 1 . . . c m ∈ O ∗ n, where, for every 1 ≤ i ≤ m,<br />

ĉ i = C i .<br />

A P system deciding SAT. Now we define a family Π := (Π(i)) i∈N of<br />

recognizer P systems that solves SAT in weak linear time. For every n ∈ N, let<br />

Π(n) := (O, H, µ, w 1 , . . . , w 3 , R), where:<br />

– O := O n ∪ {d 1 , . . . , d n+3 , yes, no};<br />

– H := {1, . . . , n + 3};<br />

– µ := [[[ ] 3 ] 2 ] 1 , where the input membrane is [ ] 3 ;<br />

– w 1 := ε, w 2 := d 1 and w 3 := ε;<br />

– R is the set of the following rules (in some cases we also give explanati<strong>on</strong>s<br />

of the presented rules):<br />

(a) [c → c 1 c 2 ] i+2 , for every 1 ≤ i ≤ n and c, c 1 , c 2 ∈ O n with x i , ¯x i ∉ ĉ,<br />

ĉ 1 = ĉ ∪ {x i } and ĉ 2 = ĉ ∪ {¯x i }<br />

(for every 1 ≤ i ≤ n, these rules will replace those clauses in membrane<br />

i + 2 that do not c<strong>on</strong>tain x i or ¯x i by two other clauses, a clause that<br />

additi<strong>on</strong>ally c<strong>on</strong>tains x i , and another <strong>on</strong>e that c<strong>on</strong>tains ¯x i );<br />

(b) [ ] i+2 → [K i ] i+3 [O − K i ] i+3 , for every 1 ≤ i ≤ n and K i = {c ∈ O n |<br />

x i ∈ ĉ}<br />

(for every 1 ≤ i ≤ n, these rules will separate the objects in membranes<br />

with label i + 2 according to that whether the clauses represented by the<br />

objects c<strong>on</strong>tain x i or not; the new membranes will have label i + 3);<br />

(c) [d i → d i+1 ] 2 , for every 1 ≤ i ≤ n + 2;<br />

(d) [c] n+3 → ε, for every c ∈ O n such that ĉ is a complete clause in C n ;<br />

(e) d n+2 [ ] n+3 → [yes] n+3 ,<br />

[yes] n+3 → [ ] n+3 yes,<br />

[yes] 2 → [ ] 2 yes,<br />

[yes] 1 → [ ] 1 yes;<br />

(f) [d n+2 ] 2 → [d n+3 ] 2 [no] 2 ,<br />

[no] 2 → [ ] 2 no,<br />

[no] 1 → [ ] 1 no.<br />

Next we give an example to dem<strong>on</strong>strate how our P systems create new<br />

clauses from the input and separate them into new membranes. We will refer to<br />

this example also in Secti<strong>on</strong> 4, where we will discuss the possible improvements<br />

of our P systems.<br />

Example 1. We show the working of Π(3) <strong>on</strong> a formula with variables in X 3 .<br />

For the better readability, we denote these variables by x, y and z, respectively.<br />

Moreover, the objects in O 3 are denoted by sequences of literals occurring in<br />

the corresp<strong>on</strong>ding clauses of the formula, i.e., the symbols in O 3 are now strings<br />

over the set of literals.<br />

Let the input formula be ϕ := {{x, y, z}, {¬x}, {¬y}, {¬z}}. Then Π(3) is<br />

started with symbols xyz, ¯x, ȳ, ¯z in the input membrane, thus at the beginning<br />

the membrane with label 3 looks as follows: [xyz, ¯x, ȳ, ¯z] 3 . In the first step, the<br />

216

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

Saved successfully!

Ooh no, something went wrong!