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.

L.F. Macías-Ramos, M.J. Pérez-Jiménez, A. Riscos-Núñez, M. Rius-F<strong>on</strong>t,<br />

L. Valencia-Cabrera<br />

4.2 Eciency of Tissue P Systems from ̂TSC<br />

The goal of this secti<strong>on</strong> is to show that <strong>on</strong>ly tractable problems can be solved<br />

eciently by using tissue P systems with communicati<strong>on</strong> rules, separati<strong>on</strong> rules<br />

and without envir<strong>on</strong>ment. That is, we will prove that P = PMC ̂TSC .<br />

For this purpose, given a family of recognizer tissue P system, we provide<br />

a deterministic algorithm A working in polynomial time that receives as input<br />

a recognizer tissue P system from ̂TSC together with an input multiset, and<br />

reproduces the behaviour of a computati<strong>on</strong> of such system. In particular, if the<br />

given tissue P system is c<strong>on</strong>uent, then algorithm will provide the same answer<br />

of the system, that is, the answer of the algorithm is armative if and <strong>on</strong>ly if<br />

the input tissue P system has an accepting computati<strong>on</strong>.<br />

The pseudocode of the algorithm A is described as follows:<br />

Input: A recognizer tissue P system Π from ̂TSC and an input multiset m<br />

Initializati<strong>on</strong> stage : the initial c<strong>on</strong>figurati<strong>on</strong> C 0 of Π + m<br />

t ← 0<br />

while C t is a n<strong>on</strong> halting c<strong>on</strong>figurati<strong>on</strong> do<br />

Selecti<strong>on</strong> stage : Input C t, Output (C t, ′ A)<br />

Executi<strong>on</strong> stage : Input (C t, ′ A), Output C t+1<br />

t ← t + 1<br />

end while<br />

Output: Yes if C t is an accepting c<strong>on</strong>figurati<strong>on</strong>, No otherwise<br />

The selecti<strong>on</strong> stage and the executi<strong>on</strong> stage implement a transiti<strong>on</strong> step of a<br />

recognizer tissue P system Π. Specically, the selecti<strong>on</strong> stage receives as input a<br />

c<strong>on</strong>gurati<strong>on</strong> C t of Π at an instant t. The output of this stage is a pair (C ′ t, A),<br />

where A encodes a multiset of rules selected to be applied to C t , and C ′ t is the<br />

c<strong>on</strong>gurati<strong>on</strong> obtained from C t <strong>on</strong>ce the labelled objects corresp<strong>on</strong>ding to the<br />

applicati<strong>on</strong> of rules from A have been c<strong>on</strong>sumed. The executi<strong>on</strong> stage receives<br />

as input the output (C ′ t, A) of the selecti<strong>on</strong> stage. The output of this stage is the<br />

next c<strong>on</strong>gurati<strong>on</strong> C t+1 of C t . Specically, at this stage, the c<strong>on</strong>gurati<strong>on</strong> C t+1<br />

is obtained from C ′ t by adding the labelled objects produced by the applicati<strong>on</strong><br />

of rules from A.<br />

Next, selecti<strong>on</strong> stage and executi<strong>on</strong> stage are described in detail.<br />

Selecti<strong>on</strong> stage.<br />

Input: A c<strong>on</strong>figurati<strong>on</strong> C t of Π at instant t<br />

C t ′ ← C t; A ← ∅; B ← ∅<br />

for r ≡ (i, u/v, j) ∈ R C according to the order chosen do<br />

for each pair of cells (i, σ i), (j, σ j) of C t<br />

′ according to the<br />

lexicographical order do<br />

n r ← maximum number of times that r is applicable to (i, σ i), (j, σ j)<br />

if n r > 0 then<br />

C t ′ ← C t ′ \ n r · LHS(r, (i, σ i), (j, σ j))<br />

A ← A ∪ {(r, n r, (i, σ i), (j, σ j))}<br />

B ← B ∪ {(i, σ i), (j, σ j)}<br />

286

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

Saved successfully!

Ooh no, something went wrong!