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

automaton.star(algo="auto")

Build an automaton whose behavior is the Kleene star of that of the input automaton.

The algorithm has to be one of these:

  • "deterministic": deterministic star.

  • "general": general star, no additional preconditions.

  • "standard": standard star.

  • "auto": default parameter, same as "standard" if parameters fit the standard preconditions, "general" otherwise.

Preconditions:

  • "standard": automaton has to be standard.

Postconditions:

  • "deterministic": the result automaton is deterministic.

  • "general": the context of the result automaton is nullable.

  • "standard": the result automaton is standard.

Caveat:

See also:

import vcsn

Examples

The following automaton will serve as input.

a = vcsn.Q.expression('a+ab').standard() a
Image in a Jupyter notebook

General

a.star("general")
Image in a Jupyter notebook

Standard

a.star("standard")
Image in a Jupyter notebook

Deterministic

a.star("deterministic")
Image in a Jupyter notebook