SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
Functions | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::root () const |
Return the root of the suffix tree. | |
bool | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::is_leaf (const node_type &v) const |
Decide if a node is a leaf in the suffix tree. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::ith_leaf (size_type i) const |
Return the i-th leaf (1-based from left to right) of the suffix tree. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::leaves_in_the_subtree (const node_type &v) const |
Calculate the number of leaves in the subtree rooted at node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::leftmost_leaf_in_the_subtree (const node_type &v) const |
Calculates the leftmost leaf in the subtree rooted at node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::rightmost_leaf_in_the_subtree (const node_type &v) const |
Calculates the rightmost leaf in the subtree rooted at node v. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::lb (const node_type &v) const |
Calculates the index of the leftmost leaf in the corresponding suffix array. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::rb (const node_type &v) const |
Calculates the index of the rightmost leaf in the corresponding suffix array. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::parent (const node_type &v) const |
Calculate the parent node of a node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sibling (const node_type &v) const |
Returns the next sibling of node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::ith_child (const node_type &v, size_type i) const |
Get the ith child of a node v. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::degree (const node_type &v) const |
Get the number of children of a node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sibling_naive (const node_type &v) const |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::child (const node_type &v, const unsigned char c, size_type &char_pos) const |
Get the child w of node v which edge label (v,w) starts with character c. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::child (const node_type &v, const unsigned char c) |
Get the child w of node v which edge label (v,w) starts with character c. | |
unsigned char | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::edge (const node_type &v, size_type d) const |
Returns the d-th character (1-based indexing) of the edge-label pointing to v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::lca (node_type v, node_type w) const |
Calculate the lowest common ancestor (lca) of two nodes v and w of the suffix tree. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::depth (const node_type &v) const |
Returns the string depth of node v. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::node_depth (node_type v) const |
Returns the node depth of node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sl (const node_type &v) const |
Compute the suffix link of node v. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::wl (const node_type &v, const unsigned char c) const |
Compute the Weiner link of node v and character c. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sn (const node_type &v) const |
Computes the suffix number of a leaf node v. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::id (const node_type &v) const |
Computes a unique identification number for a node of the suffx tree in the range [0..nodes()-1]. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::inv_id (size_type id) |
Computes the node for such that id(v)=id. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::nodes () const |
Get the number of nodes of the suffix tree. | |
node_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::node (size_type lb, size_type rb, size_type l=0) const |
Get the node in the suffix tree which corresponds to the lcp-interval [lb..rb]. | |
size_type | sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::tlcp_idx (size_type i) const |
Maps an index i to the position in TLCP where LCP[i] can be found. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::child | ( | const node_type & | v, |
const unsigned char | c, | ||
size_type & | char_pos | ||
) | const [inline] |
Get the child w of node v which edge label (v,w) starts with character c.
\param v A valid tree node of the cst.
c | First character of the edge label from v to the desired child. |
char_pos | Reference which will hold the position (0-based) of the matching char c in the sorted text/suffix array. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::degree | ( | const node_type & | v | ) | const [inline] |
Get the number of children of a node v.
v | A valid node v of a cst_sct3. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::depth | ( | const node_type & | v | ) | const [inline] |
Returns the string depth of node v.
v | A valid node of a cst_sct3. |
unsigned char sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::edge | ( | const node_type & | v, |
size_type | d | ||
) | const [inline] |
Returns the d-th character (1-based indexing) of the edge-label pointing to v.
v | The node at which the edge path ends. |
d | The position (1-based indexing) of the requested character on the edge path from the root to v. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::id | ( | const node_type & | v | ) | const [inline] |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::inv_id | ( | size_type | id | ) | [inline] |
Computes the node for such that id(v)=id.
\param id An id in the range [0..nodes()-1].
bool sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::is_leaf | ( | const node_type & | v | ) | const [inline] |
Decide if a node is a leaf in the suffix tree.
v | A valid node of a cst_sct3. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::ith_child | ( | const node_type & | v, |
size_type | i | ||
) | const [inline] |
Get the ith child of a node v.
\param v A valid tree node of the cst.
i | 1-based index of the child which should be returned. . |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::ith_leaf | ( | size_type | i | ) | const [inline] |
Return the i-th leaf (1-based from left to right) of the suffix tree.
i | 1-based position of the leaf. . |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::lb | ( | const node_type & | v | ) | const [inline] |
Calculates the index of the leftmost leaf in the corresponding suffix array.
v | A valid node of the suffix tree. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::lca | ( | node_type | v, |
node_type | w | ||
) | const [inline] |
Calculate the lowest common ancestor (lca) of two nodes v and w of the suffix tree.
v | The first node for which the lca with the second node should be computed. |
w | The second node for which the lca with the first node should be computed. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::leaves_in_the_subtree | ( | const node_type & | v | ) | const [inline] |
Calculate the number of leaves in the subtree rooted at node v.
v | A valid node of the suffix tree. |
This method is used e.g. in the sdsl::algorithm::count<Cst> method.
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::leftmost_leaf_in_the_subtree | ( | const node_type & | v | ) | const [inline] |
Calculates the leftmost leaf in the subtree rooted at node v.
v | A valid node of the suffix tree. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::node_depth | ( | node_type | v | ) | const [inline] |
Returns the node depth of node v.
v | A valid node of a cst_sct3. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::parent | ( | const node_type & | v | ) | const [inline] |
Calculate the parent node of a node v.
v | A valid node of the suffix tree. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::rb | ( | const node_type & | v | ) | const [inline] |
Calculates the index of the rightmost leaf in the corresponding suffix array.
v | A valid node of the suffix tree. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::rightmost_leaf_in_the_subtree | ( | const node_type & | v | ) | const [inline] |
Calculates the rightmost leaf in the subtree rooted at node v.
v | A valid node of the suffix tree. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::root | ( | ) | const [inline] |
Return the root of the suffix tree.
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sibling | ( | const node_type & | v | ) | const [inline] |
Returns the next sibling of node v.
v | A valid node v of the suffix tree. |
node_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sl | ( | const node_type & | v | ) | const [inline] |
Compute the suffix link of node v.
v | A valid node of a cst_sct3. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::sn | ( | const node_type & | v | ) | const [inline] |
Computes the suffix number of a leaf node v.
v | A valid leaf node of a cst_sct3. |
size_type sdsl::cst_sct3< Csa, Lcp, Bp_support, Rank_support >::tlcp_idx | ( | size_type | i | ) | const [inline] |
Maps an index i to the position in TLCP where LCP[i] can be found.
i | The index in the LCP array |