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

context.ladybird(n)

Create the Ladybird automaton with nn states. This family of automata is a worst case for determinization: its determinized automaton has 2n2^n states.

Preconditions:

  • the labelset has at least three generators

See also:

Examples

import vcsn b = vcsn.context('lal_char(abc), b')
b.ladybird(3)
Image in a Jupyter notebook

These automata are easier to read when states are put on a circle, as does the circo engine.

b.ladybird(7)
Image in a Jupyter notebook
from IPython.display import SVG SVG(b.ladybird(7).SVG(engine='circo'))
Image in a Jupyter notebook