Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Concepts
NonlinearFullAndLinearIndexConstruction.h
Go to the documentation of this file.
1
6#pragma once
7
13
14namespace arbology {
15
16namespace indexing {
17
24public:
30 template < class SymbolType, template < typename > class StringIndex = indexes::stringology::PositionHeap, class StringIndexConstructionAlgo = stringology::indexing::PositionHeapNaive >
32
33 template < class SymbolType, template < typename > class StringIndex = indexes::stringology::PositionHeap, class StringIndexConstructionAlgo = stringology::indexing::PositionHeapNaive >
35};
36
37template < class SymbolType, template < typename > class StringIndex, class StringIndexConstructionAlgo >
39 ext::vector < common::ranked_symbol < unsigned > > content = tree::properties::ExactSubtreeRepeatsNaive::repeats ( w ).getContent ( );
40
42 for ( const common::ranked_symbol < unsigned > & symbol : content )
43 repeats.push_back ( symbol.getSymbol ( ) );
44
46}
47
48template < class SymbolType, template < typename > class StringIndex, class StringIndexConstructionAlgo >
50 ext::vector < common::ranked_symbol < unsigned > > content = tree::properties::ExactSubtreeRepeatsNaive::repeats ( w ).getContent ( );
51
53 for ( const common::ranked_symbol < unsigned > & symbol : content )
54 repeats.push_back ( symbol.getSymbol ( ) );
55
57}
58
59} /* namespace indexing */
60
61} /* namespace arbology */
62
Definition: NonlinearFullAndLinearIndexConstruction.h:23
static indexes::arbology::NonlinearFullAndLinearIndex< SymbolType, StringIndex > construct(const tree::PrefixRankedTree< SymbolType > &w)
Definition: NonlinearFullAndLinearIndexConstruction.h:38
Definition: ranked_symbol.hpp:20
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
Full and linear tree index. The index serves as a adaptor of string index so that searching for tree ...
Definition: NonlinearFullAndLinearIndex.h:50
Position heap string index. Tree like representation of all suffixes. The suffixes are themselves rep...
Definition: PositionHeap.h:56
Linear string.
Definition: LinearString.h:57
Definition: PositionHeapNaive.h:23
Tree structure represented as linear sequece as result of preorder traversal with additional bar symb...
Definition: PrefixRankedBarTree.h:78
Tree structure represented as linear sequece as result of preorder traversal. The representation is s...
Definition: PrefixRankedTree.h:71
static ext::vector< int > compute(const tree::PrefixRankedBarTree< SymbolType > &subject)
Definition: SubtreeJumpTable.h:49
Definition: BoyerMooreHorspool.h:22