31 template <
class SymbolType >
34 template <
class SymbolType >
37 template <
class SymbolType >
40 template <
class SymbolType >
43 template <
class SymbolType >
47template <
class SymbolType >
52 res.addInputSymbol ( symbol );
57 res.addTransition ( 0, symbol, 0 );
64 res.addTransition (
i - 1, symbol,
i );
68 res.addFinalState (
i - 1 );
72template <
class SymbolType >
76 res.setPushdownStoreAlphabet ( { alphabet::BottomOfTheStackSymbol::instance < char > ( ),
'S' } );
79 res.addInputSymbol ( symbol );
81 if ( pattern.
getBars ( ).count ( symbol ) )
88 res.addTransition ( 0, symbol, 0 );
95 res.addTransition (
i - 1, symbol,
i );
99 res.addFinalState (
i - 1 );
103template <
class SymbolType >
107 states.reserve (
node.getData ( ).getRank ( ) );
112 unsigned state = nextState++;
113 res.addState ( state );
114 res.addTransition (
node.getData ( ), states, state );
118template <
class SymbolType >
123 unsigned nextState = 0;
128template <
class SymbolType >
135 unsigned state = nextState++;
136 res.addState ( state );
137 res.addTransition (
node.getData ( ), states, state );
141template <
class SymbolType >
146 unsigned nextState = 0;
151template <
class SymbolType >
158 unsigned state = nextState++;
159 res.addState ( state );
160 res.addTransition (
node.getData ( ), states, state );
164template <
class SymbolType >
169 unsigned nextState = 0;
Definition: ExactSubtreeMatchingAutomaton.h:25
static automaton::InputDrivenNPDA< common::ranked_symbol< SymbolType >, char, unsigned > construct(const tree::PrefixRankedTree< SymbolType > &pattern)
Definition: ExactSubtreeMatchingAutomaton.h:48
Nondeterministic finite tree automaton without epsilon transitions. Accepts regular tree languages.
Definition: NFTA.h:72
Nondeterministic Z-Automaton. Computation model for unranked regular tree languages.
Definition: NondeterministicZAutomaton.h:68
Nondeterministic unordered finite tree automaton without epsilon transitions. Accepts regular tree la...
Definition: UnorderedNFTA.h:72
Definition: ranked_symbol.hpp:20
Definition: multiset.hpp:44
Class introducing a tree with interface trying to be close to the interface of standard library conta...
Definition: tree.hpp:52
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
Tree structure represented as linear sequece as result of preorder traversal with additional bar symb...
Definition: PrefixRankedBarTree.h:78
const ext::vector< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: PrefixRankedBarTree.h:273
const ext::set< common::ranked_symbol< SymbolType > > & getAlphabet() const &
Definition: PrefixRankedBarTree.h:129
const ext::set< common::ranked_symbol< SymbolType > > & getBars() const &
Definition: PrefixRankedBarTree.h:156
Tree structure represented as linear sequece as result of preorder traversal. The representation is s...
Definition: PrefixRankedTree.h:71
const ext::set< common::ranked_symbol< SymbolType > > & getAlphabet() const &
Definition: PrefixRankedTree.h:119
const ext::vector< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: PrefixRankedTree.h:235
Tree structure represented in its natural representation. The representation is so called ranked,...
Definition: RankedTree.h:72
const ext::set< common::ranked_symbol< SymbolType > > & getAlphabet() const &
Definition: RankedTree.h:138
const ext::tree< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: RankedTree.h:252
Tree structure represented in its natural representation. The representation is so called ranked,...
Definition: UnorderedRankedTree.h:70
const ext::set< common::ranked_symbol< SymbolType > > & getAlphabet() const &
Definition: UnorderedRankedTree.h:122
const ext::tree< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: UnorderedRankedTree.h:228
Tree represented in its natural representation. The representation is so called unranked,...
Definition: UnrankedTree.h:69
const ext::set< SymbolType > & getAlphabet() const &
Definition: UnrankedTree.h:112
const ext::tree< SymbolType > & getContent() const &
Definition: UnrankedTree.h:217
unsigned constructRecursive(const ext::tree< common::ranked_symbol< SymbolType > > &node, automaton::NFTA< SymbolType, unsigned > &res, unsigned &nextState)
Definition: ExactSubtreeMatchingAutomaton.h:104
Definition: BoyerMooreHorspool.h:22
int i
Definition: AllEpsilonClosure.h:118
return res
Definition: MinimizeByPartitioning.h:145