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.

P. Sosík<br />

c<strong>on</strong>tentFinal = c<strong>on</strong>tent(l, i 1 i 2 . . . i n−1 , n − 1);<br />

(Calculate the c<strong>on</strong>tent of cell l with index i 1 i 2 . . . i n−1 in previous step)<br />

if c<strong>on</strong>tentFinal = null then return null and exit;<br />

if a divisi<strong>on</strong> rule [a] l → [b] l [c] l exists such that<br />

c<strong>on</strong>tentFinal c<strong>on</strong>tains a then<br />

if i n = 1 then<br />

remove a from c<strong>on</strong>tentFinal and add b;<br />

else<br />

remove a from c<strong>on</strong>tentFinal and add c;<br />

(Cell l with index i 1 i 2 . . . i n−1 divides in step n)<br />

else<br />

if i n = 2 then<br />

return null and exit;<br />

(The last element i n of compound index corresp<strong>on</strong>ds to a copy of cell l<br />

dividing in step n which is not the case, hence this copy does not exist.)<br />

else<br />

apply all rules in rulesAppliedTol to c<strong>on</strong>tentFinal, i.e.,<br />

add/remove multisets of objects corresp<strong>on</strong>ding to cell l<br />

in rules to/from c<strong>on</strong>tentFinal;<br />

return c<strong>on</strong>tentFinal;<br />

We defined explicitly internal variables with largest memory demands in<br />

functi<strong>on</strong> c<strong>on</strong>tent in its preamble. Other variables are used implicitly. This is<br />

necessary for the following result.<br />

Theorem 3. A result of any computati<strong>on</strong> c<strong>on</strong>sisting of n steps of a c<strong>on</strong>fluent<br />

tissue P system with cell divisi<strong>on</strong> can be computed with Turing machine in space<br />

polynomial to n.<br />

Proof. C<strong>on</strong>sider a c<strong>on</strong>fluent tissue P system with cell divisi<strong>on</strong><br />

Π = (Γ, Σ, E, M 1 , . . . , M q , R, i in , i out ).<br />

The functi<strong>on</strong> c<strong>on</strong>tent described above evaluates the c<strong>on</strong>tent of a particular cell<br />

after n steps, but simultaneously also an applicati<strong>on</strong> of all possible rules during<br />

n-th step in all cells is also simulated. Hence, it is very easy to check whether any<br />

rule is applied or, <strong>on</strong> the c<strong>on</strong>trary, whether the computati<strong>on</strong> stops (the multiset<br />

rulesAppliedTotal is empty). The result of computati<strong>on</strong> of Π with an input<br />

w is obtained as follows:<br />

1. Prepare the initial c<strong>on</strong>figurati<strong>on</strong> of Π, add w to M iin .<br />

428

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

Saved successfully!

Ooh no, something went wrong!