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.

S. Verlan, J. Quiros<br />

where k j = N j ⊖ N, 1 ≤ j ≤ 2<br />

( )<br />

kb1 k<br />

The transfer matrix of A 2 (c<strong>on</strong>sidering the weights) is b2<br />

0 k b2<br />

vector F = [1, 1]. This gives the following generating functi<strong>on</strong> for A 2 :<br />

and the<br />

q 0 =<br />

1<br />

(1 − x k b1 )(1 − x<br />

k b2)<br />

.<br />

The coefficients [x n ]q 0 can be obtained by the recurrence a(n) = a(n − k b1 )+<br />

a(n − k b2 ) − a(n − k b1 − k b2 ), n ≥ k b1 + k b2 . The initial values are given by the<br />

following cases (we suppose that k b1 ≥ k b2 ):<br />

⎧<br />

1, n = 0<br />

0, 1 ≤ n ≤ k b2 − 1<br />

⎪⎨ 1, k b2 ≤ n ≤ k b1 − 1 and n = 0 (mod k b2 )<br />

0, k b2 ≤ n ≤ k b1 − 1 and n ≠ 0 (mod k b2 )<br />

2, k b1 ≤ n ≤ k b1 + k b2 and n = 0 (mod k b2 ) and n = 0 (mod k b1 )<br />

1, k b1 ≤ n ≤ k b1 + k b2 and n = 0 (mod k b2 ) or n = 0 (mod k b1 )<br />

⎪⎩<br />

0, k b1 ≤ n ≤ k b1 + k b2 − 1 and n ≠ 0 (mod k b2 ) or n ≠ 0 (mod k b1 )<br />

Now we c<strong>on</strong>centrate of the functi<strong>on</strong> V ariant. If the set Appl(Π, C, δ) is regular,<br />

then we can use the following algorithm to compute V ariant(n, Π, C, δ).<br />

Let A(Π, C, δ) = (Q, V, q 0 , F ) be the automat<strong>on</strong> corresp<strong>on</strong>ding to the language<br />

defined by rules joint applicability and let s j , q j ∈ Q be the generating series for<br />

the state q j .<br />

Algorithm 1<br />

1. Start in state q 0 , step = 1, nb = s 0 (n), out = λ.<br />

2. If step = n then stop<br />

3. Otherwise let {t : (q i , a t , q jt )}, 1 ≤ t ≤ k i be the set outgoing transiti<strong>on</strong>s from<br />

q i . Compute S(k) = ∑ k<br />

m=1 s j m<br />

(n − step). We put by definiti<strong>on</strong> S(0) = 0.<br />

Then there exists k such that S(k) ≥ nb and there is no k ′ < k such that<br />

S(k ′ ) ≥ nb.<br />

4. C<strong>on</strong>sider nb = nb − S(k − 1) and out = out · a k .<br />

5. Go to step 2<br />

The main idea of this algorithm is to compute the n-th variant using the<br />

lexical ordering of transiti<strong>on</strong>s using an algorithm similar to the computati<strong>on</strong><br />

of the number written in the combinatorial number system. Being in a state q<br />

and looking for a sequence of applicati<strong>on</strong>s of k rules we will use the transiti<strong>on</strong><br />

t : (q, r, q ′ ) (and add r to the multiset of rules) if the transiti<strong>on</strong> t is the first in<br />

the lexicographical ordering of transiti<strong>on</strong>s having the property that the number<br />

of words of length k − 1 that can be obtained using all outgoing transiti<strong>on</strong>s from<br />

state q that are less or equal than t is greater than n.<br />

440

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

Saved successfully!

Ooh no, something went wrong!