Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <RandomTreeAutomatonFactory.h>
Static Public Member Functions | |
template<class SymbolType > | |
static automaton::NFTA< SymbolType, unsigned > | generateNFTA (size_t statesCount, const ext::set< common::ranked_symbol< SymbolType > > &alphabet, double density) |
static automaton::NFTA< std::string, unsigned > | generateNFTA (size_t statesCount, size_t alphabetSize, size_t maxRank, bool randomizedAlphabet, double density) |
Generator of random automata.
The underlying generation algorithm is from Leslie, T: Efficient Approaches to Subset Construction, 1995.
|
static |
Generates a random finite automaton.
SymbolType | the type of terminal symbols of the random automaton |
statesCount | number of states in the generated automaton |
alphabet | Input alphabet of the automaton |
density | density of the transition function |
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Generates a random finite automaton.
statesCount | number of states in the generated automaton |
alphabetSize | size of the alphabet (1-26) |
maxRank | the maximum rank in the randomly generated alphabet |
randomizedAlphabet | selects random symbols from a-z range if true |
density | density of the transition function (0-100). 100 means every possible transition is created |