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

automaton.standard

Turn an automaton into a standard automaton.

Preconditions:

  • None

Postconditions:

  • result.is_standard()

See also:

Examples

There is a single initial state.

import vcsn ctx = vcsn.context('lal_char, z') std = lambda e: ctx.expression(e).standard() a = std('a').add(std('b'), 'general') a
Image in a Jupyter notebook
a = a.standard() a
Image in a Jupyter notebook

The initial state has 1 as (initial) weight.

%%automaton -s a context = "lal_char, z" $ -> 0 <2> 0 -> 1 a 0 -> 2 b 1 -> $ 2 -> $
Image in a Jupyter notebook
a.standard()
Image in a Jupyter notebook

There is no incoming transition on the initial state.

%%automaton -s a context = "lal_char, z" $ -> 0 <2> 0 -> $ <2> 0 -> 1 a 1 -> 0 b
Image in a Jupyter notebook
a.standard()
Image in a Jupyter notebook