10#include <string/LinearString.h>
31 template <
class SymbolType >
36template <
class SymbolType >
41 size_t max = reversed.
getContent ( ).size ( ) - borderArray.back ( );
51 if ( state.size ( ) >= 2 ) {
52 unsigned first = * state.
begin ( );
Deterministic finite automaton. Accepts regular languages.
Definition: DFA.h:71
const ext::map< ext::pair< StateType, SymbolType >, StateType > & getTransitions() const &
Definition: DFA.h:473
const StateType & getInitialState() const &
Definition: DFA.h:105
static automaton::DFA< SymbolType, StateType > determinize(const automaton::DFA< SymbolType, StateType > &automaton)
Definition: Determinize.h:276
static automaton::NFA< SymbolType, StateType > remove(const automaton::EpsilonNFA< SymbolType, StateType > &fsm)
Definition: EpsilonRemoverIncoming.h:96
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: set.hpp:99
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
Linear string.
Definition: LinearString.h:57
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
static ext::vector< size_t > construct(const string::LinearString< SymbolType > &string)
Definition: BorderArray.h:27
Definition: GoodSuffixShiftTable.h:25
static ext::vector< size_t > gss(const string::LinearString< SymbolType > &pattern)
Definition: GoodSuffixShiftTable.h:37
static automaton::EpsilonNFA< SymbolType, unsigned > construct(const string::LinearString< SymbolType > &text)
Definition: NondeterministicExactFactorAutomaton.h:26
p second
Definition: ToRegExpAlgebraic.h:126
typename T::SymbolType SymbolType
Definition: ReachableStates.h:176
for(const StateType &state :fsm.getStates()) renamingData.insert(std Rename::RenamedAutomaton< T > result(renamingData.at(fsm.getInitialState()))
Definition: Rename.h:253
constexpr const T & max(const T &a)
Root case of maximum computation. The maximum from one value is the value itself.
Definition: algorithm.hpp:278
constexpr auto make_pair(T1 &&x, T2 &&y)
Definition: pair.hpp:79
Definition: RandomStringFactory.cpp:12