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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B. Nagy<br />

3. If this clause c<strong>on</strong>tain a c<strong>on</strong>tradictory literal, then increase the value of the<br />

variable i. If there is an i-th clause, then go back to the previous step, else the<br />

formula is unsatisfiable.<br />

A versi<strong>on</strong> of the above algorithm solves the problem to decide if a Boolean<br />

formula in CNF is tautology or not. Therefore <strong>on</strong>e may ask, what is the “problem”<br />

when a formula is given in other form. There is a straightforward way to<br />

translate a formula from DNF to CNF and vice-versa based <strong>on</strong> the logical equivalences<br />

called distributive laws. To dissolve the problem, i.e., this c<strong>on</strong>tradicti<strong>on</strong>,<br />

it is enough to know that the size of the formula grows exp<strong>on</strong>entially in this<br />

translati<strong>on</strong>...<br />

After this short logical bypass let us get back to computing, especially to<br />

formal languages.<br />

In the next definiti<strong>on</strong> we use the well-known regular operators, such as uni<strong>on</strong>,<br />

c<strong>on</strong>catenati<strong>on</strong> and Kleene-star (iterati<strong>on</strong>); we use the usual notati<strong>on</strong> +, ·, ∗ for<br />

these operators respectively.<br />

Definiti<strong>on</strong> 2. The finite expressi<strong>on</strong>s are regular expressi<strong>on</strong>s using the letters of<br />

the alphabet and symbols +, ·, ∗ in the following way.<br />

The letters of the alphabet with the empty word (λ) and the empty set (∅) are<br />

regular expressi<strong>on</strong>s. They refer for the singlet<strong>on</strong> languages c<strong>on</strong>taining <strong>on</strong>ly a<br />

1-letter l<strong>on</strong>g word, and for the languages {λ}, {}, respectively.<br />

If r, q are regular expressi<strong>on</strong>s, then (r + q), (r · q) and (r ∗ ) are regular expressi<strong>on</strong>s,<br />

as well. These complex expressi<strong>on</strong>s refer for the languages obtained by<br />

the uni<strong>on</strong>, c<strong>on</strong>catenati<strong>on</strong> and Kleene-iterati<strong>on</strong> of the languages referred by the<br />

subexpressi<strong>on</strong>s r and q, respectively.<br />

Note that some of the brackets can be eliminated by the usual precedence<br />

relati<strong>on</strong> am<strong>on</strong>g the operati<strong>on</strong>s and by associativity of uni<strong>on</strong> and c<strong>on</strong>catenati<strong>on</strong>.<br />

Usually the sign of the c<strong>on</strong>catenati<strong>on</strong> (·) is also omitted. We will use the abbreviati<strong>on</strong><br />

r n , denoting the regular expressi<strong>on</strong> in which the regular expressi<strong>on</strong> r is<br />

c<strong>on</strong>catenated by itself with (a fixed) n (n<strong>on</strong>-overlapping) occurrences.<br />

A language is regular if there is a regular expressi<strong>on</strong> which describes it.<br />

Now we recall the definiti<strong>on</strong> of finite automat<strong>on</strong>.<br />

Definiti<strong>on</strong> 3. The ordered quintuple A = (K, T, M, σ 0 , H) is called a deterministic<br />

finite automat<strong>on</strong> (DFA), where K is the finite, n<strong>on</strong>-empty set of states, T<br />

is the finite alphabet of input symbols, M is the transiti<strong>on</strong> functi<strong>on</strong>, mapping<br />

from K × T to K, σ 0 ∈ K is the initial state, and H ⊆ K is the set of accepting<br />

states.<br />

The well-known Kleene’s theorem states that each regular language can be<br />

accepted by a DFA and each language accepted by a DFA is regular.<br />

326

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

Saved successfully!

Ooh no, something went wrong!