|
Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <UsefulStates.h>
Static Public Member Functions | |
| template<class T > requires isDFA < T > || isNFA < T > || isEpsilonNFA < T > || isMultiInitialStateNFA < T > || isMultiInitialStateEpsilonNFA < T > || isCompactNFA < T > || isExtendedNFA < T > | |
| static ext::set< typename T::StateType > | usefulStates (const T &fsm) |
| template<class T > requires isDFTA < T > || isNFTA < T > | |
| static ext::set< typename T::StateType > | usefulStates (const T &fta) |
| template<class T > requires isAFDZA < T > || isAFNZA < T > | |
| static ext::set< typename T::StateType > | usefulStates (const T &afza) |
Find all useful states of an automaton. A state is useful if there exists any sequence of transitions that leads to the final state.
|
static |
Finds all useful states of a arc-factored z-automaton. Using closure implementation of the BFS algorithm.
| T | type of finite tree automaton |
| afza | automaton |
afza
|
static |
Finds all useful states of a finite automaton. Using closure implementation of the BFS algorithm.
| T | type of finite automaton |
| fsm | automaton |
fsm
|
static |
Finds all useful states of a finite tree automaton. Using closure implementation of the BFS algorithm.
| T | type of finite tree automaton |
| fta | automaton |
fta