ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::SuffixTree::Node Struct Reference

a node \( u \); the edge into it is labeled by the symbols of \( T \) from pos plus the depth of the parent to pos + depth (the terminator at \( n \)) More...

#include <ADS/string/SuffixTree.h>

Public attributes

std::size_t pos = 0
 where \( s[ u ] \) occurs once
std::size_t depth = 0
 the string depth \( |s[ u ]| \)
std::size_t parent = npos
 npos at the root
std::size_t suffix = npos
 the suffix of a leaf, npos inside
std::size_t leaves = 0
 the leaves below
std::map< std::size_t, std::size_t > child
 by first symbol

Detailed description

a node \( u \); the edge into it is labeled by the symbols of \( T \) from pos plus the depth of the parent to pos + depth (the terminator at \( n \))

Member data documentation

◆ child

std::map< std::size_t , std::size_t > ADS::SuffixTree::Node::child

by first symbol

◆ depth

std::size_t ADS::SuffixTree::Node::depth = 0

the string depth \( |s[ u ]| \)

◆ leaves

std::size_t ADS::SuffixTree::Node::leaves = 0

the leaves below

◆ parent

std::size_t ADS::SuffixTree::Node::parent = npos

npos at the root

◆ pos

std::size_t ADS::SuffixTree::Node::pos = 0

where \( s[ u ] \) occurs once

◆ suffix

std::size_t ADS::SuffixTree::Node::suffix = npos

the suffix of a leaf, npos inside


The documentation for this struct was generated from the following file: