Macaulay2 Engine
Loading...
Searching...
No Matches

◆ suffix()

Word suffix ( const Word vec,
int indexOfSuffix )

Definition at line 86 of file SuffixTree.cpp.

87{
88 // this command sets the pointers to the terminal segment of vec
89 return Word(vec.begin()+indexOfSuffix,vec.end());
90}
Non-owning view of a non-commutative word: [begin, end) of int variable indices.
Definition Word.hpp:56

Referenced by SuffixTree::contractedLocus(), NCGroebner::createOverlapPoly(), SuffixTree::extendedLocus(), NCF4::findDivisor(), NCF4::findPreviousReducerSuffix(), SuffixTree::insert(), SuffixTree::insertStepC(), SuffixTree::insertStepD(), SuffixTree::leftOverlaps(), WordTable::overlaps(), WordWithDataTable::overlaps(), SuffixTree::subwords(), and SuffixTree::subwordsStepC().