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 />

For a regular grammar G the system (1) becomes linear. By c<strong>on</strong>sidering a<br />

finite automat<strong>on</strong> A = (V, Q, q 0 , Q f , δ) equivalent to G we obtain that system (1)<br />

corresp<strong>on</strong>ds to the following system (recall that x is c<strong>on</strong>sidered as a c<strong>on</strong>stant)<br />

Q = xMQ + F (2)<br />

where<br />

– Q = [q 1 . . . q n ] t , q i ∈ Q, 1 ≤ i ≤ n is the vector c<strong>on</strong>taining all states,<br />

– F = [a 0 . . . a n ] t , is the final state characteristic vector, i.e., a i = 1 if q i is a<br />

final state and 0 otherwise.<br />

– M is the transfer matrix of the automat<strong>on</strong> A, i.e., the incidence matrix of<br />

the graph represented by A with negative values replaced by zero.<br />

We remark that in the case of a regular language it is also possible to count<br />

the number of words of length n by summing the columns corresp<strong>on</strong>ding to<br />

the final states of the n-th power of the transfer matrix of the corresp<strong>on</strong>ding<br />

automat<strong>on</strong>:<br />

f i (n) = ∑<br />

q j∈Q f<br />

(M n ) i,j<br />

It is known that the generating series f for a regular language is rati<strong>on</strong>al.<br />

That implies that there exists a finite recurrence f(n) = ∑ k<br />

j=1 a jf(n−j), k > 0,<br />

a j ∈ Z which holds for large n.<br />

Example 1. C<strong>on</strong>sider the regular language L I recognized by the following automat<strong>on</strong><br />

q 0<br />

0<br />

8 888888<br />

q 2<br />

❆ ❆❆❆❆❆❆❆<br />

1<br />

8 1 <br />

0<br />

q 1 <br />

0<br />

q 3 <br />

1<br />

1<br />

q 4<br />

Then the final state characteristic vector F of this automat<strong>on</strong> is defined by<br />

F = [0, 1, 0, 1, 0] t and the transfer matrix M by<br />

⎛ ⎞<br />

0 1 1 0 0<br />

0 0 0 1 0<br />

M =<br />

⎜0 1 0 0 0<br />

⎟<br />

⎝0 1 0 0 1⎠<br />

0 1 0 0 0<br />

436

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

Saved successfully!

Ooh no, something went wrong!