Module: Random ADFA Generator (rndadfa)¶
Random ADFA generation
ADFA Random generation binding
New in version 1.2.1.
Classes¶
ADFArnd¶
- 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