FAdo.rndadfa¶
Random ADFA generation
ADFA Random generation binding
New in version 1.2.1.
- class ADFArnd(n, k=2, s=1)[source]¶
Sets a random generator for Adfas by sources. By default, s=1 to be initially connected
Note: For ICDFA s=1
- alpha(n, s, k=2)[source]¶
Number of labeled acyclic initially connected DFA by states and by sources
- Parameters:
- Return type:
Note
uses countAdfabySource
- alpha0(n, s, k=2)[source]¶
Number of labeled acyclic initially connected DFA by states and by sources
- Parameters:
- Return type:
Note
uses gamma instead of beta or rndAdfa
- beta(n, s, u, k=2)[source]¶
Number of valid configurations of transitions
- Parameters:
- Return type:
Note
not used by alpha or rndAdfa
- countAdfaBySources(n, s, k=2)[source]¶
Number of labelled (initially connected) acyclic automata with n states, alphabet size k, and s sources
- Parameters:
- Raises:
IndexError – if number of states less than number of sources
- rndAdfa(n, s)[source]¶
Recursively generates a initially connected adfa
See also
Felice & Nicaud, CSR 2013 Lncs 7913, pp 88-99, Random Generation of Deterministic Acyclic Automata Using the Recursive Method, DOI:10.1007/978-3-642-38536-0_8
- countadfa(n: int, k: int)[source]¶
Acyclic (complete) deterministic finite automata structure (unlabeled)
- countadfaL(n, k)[source]¶
Acyclic (complete) deterministic finite automata structure (labeled) initially connected (one dead state)
- countafaL(n, k, r=1)[source]¶
(Quasi) Acyclic deterministic finite automata structure (labeled)
See also
Liskovets. Exact enumeration of acyclic deterministic automata. Discrete Applied Mathematics, 154(3):537-551, March 2006.