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 formal framework for P systems with dynamic structure<br />

deleti<strong>on</strong>. This order corresp<strong>on</strong>ds to the actual state of art in the area of P<br />

systems with active membranes. Other orders are also possible and this can be<br />

an interesting topic for a further research.<br />

The algorithm for the computati<strong>on</strong> of Apply(RI, C) is the sequence c<strong>on</strong>sisting<br />

of the following steps.<br />

1. (rewriting applicati<strong>on</strong>): L 1 = {(i 1 , l 1 , w 1) ′ . . . (i n , l n , w n)} ′ where:<br />

⋃<br />

⋃<br />

w j ′ = w j − U k | j + V k | j ,<br />

(r k ,v k )∈RI<br />

(r k ,v k )∈RI<br />

for each j = 1 . . . n, where (U k → V k ) = Rewrite(r k 〈v k 〉) and U k | j (resp.<br />

V k | j ) denotes the multiset associated with the cell from U k (resp. from V k )<br />

whose id is j, or the empty multiset if n<strong>on</strong>e of the cells has j as id.<br />

2. (label change): L 2 = {(i 1 , l 1, ′ w 1) ′ . . . (i n , l n, ′ w n)} ′ where:<br />

3. (label change): L 2 = {(i 1 , l 1, ′ w 1) ′ . . . (i n , l n, ′ w n)} ′ where:<br />

{<br />

l j ′ es , if ∃(r<br />

=<br />

k , v k ) ∈ RI such that (j, e s ) ∈ Label–Rename(r k 〈v k 〉)<br />

l j , otherwise.<br />

4. (membrane creati<strong>on</strong>): (m 1 . . . m t+s are new ids). We define the lists of newly<br />

created cells L c and L ′ c:<br />

L c (r k ) =(m 1 , h 1 , u 1 ) . . . (m t , h t , u t ),<br />

(r k , v k ) ∈ RI and<br />

Generate(r k ) = {(1 ′ , h 1 , u 1 ) . . . (t ′ , h t , u t )}.<br />

L c =L c (r 1 ) · · · · · L c (r n ).<br />

L ′ c(r k ) = (m t+1 , h t+1 , w ′ n 1<br />

− u 1 + v 1 ) . . . (m t+s , h t+s , w ′ n s<br />

− u s + v s ), where<br />

(r k , v k ) ∈ RI and<br />

Generate–and–Copy(r) ={((t + 1) ′ , h t+1 , n t+1 , u t+1 → v t+1 ) . . .<br />

((t + s) ′ , h t+s , n t+s , u t+s → v t+s )},<br />

(i j , l ′ j, w ′ j) ∈ L 2 , 1 ≤ j ≤ n<br />

L ′ c = L ′ c(r 1 ) · · · · · L ′ c(r n ).<br />

By definiti<strong>on</strong>, we put v k | q ′ = m q , 1 ≤ q ≤ t + s.<br />

We also c<strong>on</strong>sider a graph transducer CREAT E–NODES that creates nodes<br />

m 1 , . . . , m t+s .<br />

We put L 3 = L 2 · L c · L ′ c (this is the C m part of the result of the applicati<strong>on</strong><br />

of R).<br />

5. (membrane deleti<strong>on</strong>):<br />

C<strong>on</strong>sider a vector P = (p 1 , . . . , p n ) defined as follows:<br />

⎧<br />

∗, if there exists (r k , v k ) ∈ RI such that s ∈ Delete(r k )<br />

⎪⎨ and v k | s = j,<br />

p j = v k | m , if there exists (r k , v k ) ∈ RI such that<br />

(s, m) ∈ Delete–and–Move(r k ) and v k | s = j,<br />

⎪⎩<br />

j, otherwise.<br />

205

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

Saved successfully!

Ooh no, something went wrong!