Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 45896
Kernel: Python 3

context.cerny(n)

Create the Černý automaton with nn states.

Preconditions:

  • the labelset is free

  • the labelset has at least two generators

The Černý automata are nn-states DFA defined by the following transition function:

δ(s,l)={(q+1) mod nif l=aqif l=bqn10if l=bq=n1\delta(s, l) = \begin{cases} (q + 1)~\text{mod}~n & \text{if}~l = a\\ q & \text{if}~l = b \wedge q \neq n - 1\\ 0 & \text{if}~l = b \wedge q = n - 1\\ \end{cases}

where aa and bb denote two letters of the labelsets.

See also:

Examples

import vcsn b = vcsn.context('lal_char(ab), b')
b.cerny(4)
Image in a Jupyter notebook