Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
DAWGMatcherConstruction.h
Go to the documentation of this file.
1
6/*
7 * Author: Radovan Cerveny
8 */
9
10#pragma once
11
13#include <string/LinearString.h>
14
16
17namespace stringology {
18
19namespace matching {
20
22public:
27 template < class SymbolType >
29
30};
31
32template < class SymbolType >
34 auto patternData = pattern.getContent ( );
35 reverse ( patternData.begin ( ), patternData.end ( ) );
36 string::LinearString < SymbolType > reversedPattern ( pattern.getAlphabet ( ), std::move ( patternData ) );
37
39}
40
41} /* namespace matching */
42
43} /* namespace stringology */
44
Suffix automaton string index. Automaton representation of all suffixes. The automaton is general det...
Definition: SuffixAutomaton.h:50
Linear string.
Definition: LinearString.h:57
const ext::set< SymbolType > & getAlphabet() const &
Definition: LinearString.h:103
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
static indexes::stringology::SuffixAutomaton< SymbolType > construct(const string::LinearString< SymbolType > &pattern)
Definition: ExactSuffixAutomaton.h:37
Definition: DAWGMatcherConstruction.h:21
static indexes::stringology::SuffixAutomaton< SymbolType > construct(const string::LinearString< SymbolType > &pattern)
Definition: DAWGMatcherConstruction.h:33
Definition: ArithmeticCompression.h:18