SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
Functions | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::root () const |
Return the root of the suffix tree. | |
bool | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::is_leaf (node_type v) const |
Decide if a node is a leaf in the suffix tree. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::depth (node_type v) const |
Returns the depth of node v. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::node_depth (node_type v) const |
Returns the node depth of node v. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::leaves_in_the_subtree (node_type v) const |
Calculate the number of leaves in the subtree rooted at node v. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::lb (const node_type &v) const |
Calculates the index of the leftmost leaf in the corresponding suffix array. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::rb (const node_type &v) const |
Calculates the index of the rightmost leaf in the corresponding suffix array. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::parent (node_type v) const |
Calculate the parent node of a node v. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sibling (node_type v) const |
Returns the next sibling of node v. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::child (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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::child (node_type v, const unsigned char c) |
Get the child w of node v which edge label (v,w) starts with character c. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::ith_child (node_type v, size_type i) const |
Get the ith child of a node v. | |
unsigned char | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::edge (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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::lca (node_type v, node_type w) const |
Calculate the lowest common ancestor (lca) of two nodes v and w of the suffix tree. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sl (node_type v) const |
Compute the suffix link of node v. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::wl (node_type v, const unsigned char c) const |
Compute the Weiner link of node v and character c. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sn (node_type v) const |
Compute the suffix number of a leaf node v. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::id (node_type v) const |
Computes a unique identification number for a node of the suffix tree in the range [0..nodes()-1]. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::inv_id (size_type id) |
Computes the node for such that id(v)=id. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::nodes () const |
Get the number of nodes of the suffix tree. | |
node_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::degree (node_type v) const |
Get the number of children of a node v. | |
size_type | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::tlcp_idx (size_type i) const |
Maps an index i to the position in TLCP where LCP[i] can be found. | |
void | sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::print_info () const |
Print some infos about the size of the compressed suffix tree. |
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::degree | ( | node_type | v | ) | const [inline] |
Get the number of children of a node v.
v | A valid node v of a cst_sada. |
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::depth | ( | node_type | v | ) | const [inline] |
Returns the depth of node v.
v | A valid node of the suffix tree. |
unsigned char sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::edge | ( | 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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::id | ( | node_type | v | ) | const [inline] |
Computes a unique identification number for a node of the suffix tree in the range [0..nodes()-1].
\param v A valid node of a cst_sada.
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::is_leaf | ( | node_type | v | ) | const [inline] |
Decide if a node is a leaf in the suffix tree.
v | A valid node of a cst_sada. |
node_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::ith_child | ( | 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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::leaves_in_the_subtree | ( | 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 algorithm::count method.
node_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::node_depth | ( | node_type | v | ) | const [inline] |
Returns the node depth of node v.
v | A valid node of a cst_sada. |
node_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::parent | ( | node_type | v | ) | const [inline] |
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::root | ( | ) | const [inline] |
Return the root of the suffix tree.
node_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sibling | ( | 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_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sl | ( | node_type | v | ) | const [inline] |
Compute the suffix link of node v.
v | A valid node of a cst_sada. |
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::sn | ( | node_type | v | ) | const [inline] |
Compute the suffix number of a leaf node v.
v | A valid leaf node of a cst_sada. |
size_type sdsl::cst_sada< Csa, Lcp, Bp_support, Rank_support10, Select_support10 >::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 |