Algorithms for enumeration of short words in a language. More...
Go to the source code of this file.
Namespaces | |
namespace | vcsn |
The main namespace of the Vaucanson library. | |
Functions | |
template<typename Automaton > | |
Automaton::monoid_elt_t | shortest (const Automaton &autom) |
Return the smallest accepted word. | |
template<typename Automaton , typename MonoidElt > | |
bool | shortest (const Automaton &autom, MonoidElt &word) |
Compute the smallest accepted word. | |
template<typename Automaton , typename MonoidElt , typename Alloc > | |
void | enumerate (const Automaton &autom, unsigned max_length, std::list< MonoidElt, Alloc > &word_list) |
Compute the list of short accepted words. |
Algorithms for enumeration of short words in a language.
Algorithm shortest gives the smallest words for the military (or shortlex) order. Algorithm enumerates returns the list of all accepted words shorter than a given length.
Definition in file shortest.hh.