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.

Sublinear-space P systems with active membranes<br />

For the innermost membrane i 0 instead we use the following rules, which<br />

add a binary counter of l(n) bits (starting from 0) as a superscript to the state<br />

object:<br />

q i,w [ ] 0 i 0<br />

→ [q 0 i,w] − i 0<br />

if the least signicant bit of i is 0 (3)<br />

q i,w [ ] 0 i 0<br />

→ [q 0 i,w] + i 0<br />

if the least signicant bit of i is 1. (4)<br />

These rules are replicated for all q ∈ Q, 0 ≤ i < n, 0 ≤ w < s(n).<br />

When membrane i 0 becomes n<strong>on</strong>-neutral, the input objects a i (for 0 ≤ i < n)<br />

are sent out. <strong>Membrane</strong>s i 0 , . . . , i l(n)−1 behave as lters in the following sense:<br />

object a i may pass through i j <strong>on</strong>ly if the charge of the membrane corresp<strong>on</strong>ds to<br />

the j-th bit of i (where positive denotes a 1, and negative a 0). Only <strong>on</strong>e object<br />

will traverse all of them and reach the outermost membrane, namely, the object<br />

corresp<strong>on</strong>ding to the symbol under the tape head in the current c<strong>on</strong>gurati<strong>on</strong><br />

of M. Formally, the required rules are:<br />

[a i ] − i j<br />

→ [ ] − i j<br />

a i if the j-th bit of i is 0 (5)<br />

[a i ] + i j<br />

→ [ ] + i j<br />

a i if the j-th bit of i is 1. (6)<br />

These rules are replicated for all a ∈ Σ, 0 ≤ i < n, 0 ≤ j < l(n).<br />

The single object that reaches the outermost membrane h is then used in<br />

order to set to positive the charge of the corresp<strong>on</strong>ding membrane a i (thus<br />

signalling that the symbol under the input tape head is a):<br />

a i [ ] 0 a i<br />

→ [a i ] 0 a i<br />

(7)<br />

[a i ] 0 a i<br />

→ [ ] + a i<br />

a i (8)<br />

These rules are replicated for all a ∈ Σ, 0 ≤ i < n.<br />

It can be shown that the number of steps required for these operati<strong>on</strong>s to<br />

be carried out (starting from the moment membrane i 0 becomes n<strong>on</strong>-neutral) is<br />

bounded by n 2 + l(n) + 1. During this time, the head object waits inside i 0 by<br />

using the following rules:<br />

[qi,w t → q t+1<br />

i,w ]α i 0<br />

for 0 ≤ t < n + l(n) + 1 (9)<br />

2<br />

These rules are replicated for all q ∈ Q, 0 ≤ i < n, 0 ≤ w < s(n), α ∈ {+, −}.<br />

(See Fig. 3.)<br />

When the superscript t reaches n 2<br />

+ l(n) + 1, the state object travels back to<br />

membrane h while resetting the charges of i 0 , . . . , i l(n)−1 to neutral:<br />

[q n i,w] α i 0<br />

→ [ ] 0 i 0<br />

q ′ i,w (10)<br />

[q ′ i,w] α i j<br />

→ [ ] 0 i j<br />

q ′ i,w (11)<br />

[q ′ i,w] α i l(n)−1<br />

→ [ ] 0 i l(n)−1<br />

q 0 i,w (12)<br />

These rules are replicated for all q ∈ Q, 0 ≤ i < n, 0 ≤ w < s(n), 0 < j < l(n)−1,<br />

α ∈ {+, −}.<br />

377

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

Saved successfully!

Ooh no, something went wrong!