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

◆ subwordsStepC()

auto SuffixTree::subwordsStepC ( SuffixTreeNode * x,
const Word & beta,
const Word & s ) const->SubwordsType

Definition at line 519 of file SuffixTree.cpp.

522{
523 if (beta.size() == 0)
524 return subwordsStepD(x,suffix(s,x->label().size()));
525 auto elType = extendedLocus(x,beta);
526 auto f = std::get<0>(elType);
527 auto betaHat = std::get<1>(elType);
528 if (f->arcLabel().size() == betaHat.size())
529 return subwordsStepD(f,suffix(s,f->label().size()));
530 else
531 return std::make_tuple(f->parent(),betaHat,nullptr,false);
532}
Word suffix(const Word vec, int indexOfSuffix)
auto extendedLocus(SuffixTreeNode *x, const Word &beta) const -> ExtendedLocusType
auto subwordsStepD(SuffixTreeNode *y, const Word &s) const -> SubwordsType
void size_t s
Definition m2-mem.cpp:271
const mpreal beta(const mpreal &z, const mpreal &w, mp_rnd_t rnd_mode=mpreal::get_default_rnd())
Definition mpreal.h:2357
volatile int x

References extendedLocus(), s, subwordsStepD(), suffix(), and x.

Referenced by insertWorker(), and subwords().