9#include <string/LinearString.h>
25 template <
class SymbolType >
33 template <
class SymbolType >
38template <
class SymbolType >
42 for (
unsigned int j = 0; j<allowed_errors; j++) {
43 for (
unsigned int i = j;
i + 1 < pattern.
getContent().size();
i++) {
48 result.addState(transpose_state);
57template <
class SymbolType >
64 for (
unsigned int j = 0; j<allowed_errors; j++) {
65 for (
unsigned int i = j;
i + 1 < pattern.
getContent().size();
i++) {
70 result.addState(transpose_state);
72 for(
const SymbolType & symbol : alphabet_without_wildcard) {
73 result.addTransition(from, symbol, transpose_state);
80 for(
const SymbolType & symbol : alphabet_without_wildcard) {
81 result.addTransition(transpose_state, symbol, to);
Epsilon nondeterministic finite automaton. Accepts regular languages.
Definition: EpsilonNFA.h:74
Linear string.
Definition: LinearString.h:57
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
Linear wildcard string.
Definition: WildcardLinearString.h:44
const ext::vector< SymbolType > & getContent() const &
Definition: WildcardLinearString.h:279
const SymbolType & getWildcardSymbol() const &
Definition: WildcardLinearString.h:139
const ext::set< SymbolType > & getAlphabet() const &
Definition: WildcardLinearString.h:112
Definition: GeneralizedLevenshteinMatchingAutomaton.h:18
static automaton::EpsilonNFA< SymbolType, ext::pair< unsigned int, unsigned int > > construct(const string::LinearString< SymbolType > &pattern, unsigned int allowed_errors)
Definition: GeneralizedLevenshteinMatchingAutomaton.h:39
static automaton::EpsilonNFA< SymbolType, ext::pair< unsigned int, unsigned int > > construct(const string::LinearString< SymbolType > &pattern, unsigned int allowed_errors)
Definition: LevenshteinMatchingAutomaton.h:40
int i
Definition: AllEpsilonClosure.h:118
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 auto make_pair(T1 &&x, T2 &&y)
Definition: pair.hpp:79
Definition: ArithmeticCompression.h:18