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