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.

H. ElGindy, R. Nicolescu, H. Wu<br />

4. ρ max.max generates both following rule instances:<br />

S 20 f 2 → max S 20 (b 7 )↕ 2<br />

S 20 f 3 → max S 20 (b 7 )↕ 3<br />

In a matrix organized ruleset, if a generic rule using the max instantiati<strong>on</strong><br />

mode generates more than <strong>on</strong>e simple rule, then all generated rules take the<br />

generic rule’s place in the vector, in some n<strong>on</strong>deterministic order.<br />

We now explain the new dyn instantiati<strong>on</strong> mode. Like max, dyn has the<br />

potential to generate any number of rules (depending <strong>on</strong> the actual cell c<strong>on</strong>tents).<br />

Like min, dyn starts by generating <strong>on</strong>e possible instance. However, after the<br />

generated rule is applied, dyn repeats the generati<strong>on</strong> process, until either no<br />

new rules can be generated or a specified bound has been reached (by default,<br />

we use the cell’s degree).<br />

As an example, c<strong>on</strong>sider a cell c<strong>on</strong>taining the following list of complex symbols:<br />

m(c i0 ), a 1 (c i1 ), a 2 (c i2 ), . . . , a n (c in ), representing the values i 0 , i 1 , i 2 , . . . ,<br />

i n , respectively (where n ≥ 0). The following generic rule, µ, determines the<br />

minimum over this sequence of values, in <strong>on</strong>e single step:<br />

(µ)S 0 m(XY ) → dyn.min S 0 m(X) | a j (X)<br />

Assume the particular scenario when n = 3, i 0 = 4, i 1 = 7, i 2 = 2, i 3 = 3,<br />

i.e. our cell c<strong>on</strong>tains m(c 4 ), a 1 (c 7 ), a 2 (c 2 ), a 3 (c 3 ). First, µ instantiates <strong>on</strong>e of<br />

the following rules, µ ′ or µ ′′ :<br />

(µ ′ ) S 0 m(c 2 c 2 ) → min S 0 m(c 2 ) | a 2 (c 2 )<br />

(µ ′′ ) S 0 m(c 3 c) → min S 0 m(c 3 ) | a 3 (c 3 )<br />

If generated, rule µ ′ transforms m(c 4 ) into m(c 2 ), which indicates the required<br />

minimum, 2 = min(4, 7, 2, 3). Otherwise, rule µ ′′ transforms m(c 4 ) into<br />

m(c 3 ) and them the dyn mode instantiates another rule, µ ′′′ , which determines<br />

the required minimum:<br />

(µ ′′′ ) S 0 m(c 2 c) → min S 0 m(c 2 ) | a 2 (c 2 )<br />

The matrix organised rulesets and the dyn instantiati<strong>on</strong> have been specifically<br />

designed to level the playing field between P systems and the usual frameworks<br />

used in distributed algorithms. Typically, distributed algorithms steps <strong>on</strong>ly count<br />

messaging rounds, ignoring local computati<strong>on</strong>s; therefore, a node in a distributed<br />

algorithm can determine the minimum over an arbitrary l<strong>on</strong>g local sequence in<br />

<strong>on</strong>e single step.<br />

186

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

Saved successfully!

Ooh no, something went wrong!