void buildSuffixTree(suffixTree_t tree)
Builds a suffix tree based on the input string.
struct suffixTree * suffixTree_t
Suffix tree structure.
struct suffixTree * suffix
Pointer to the node whose label is the tail of this node's label.
struct suffixTree * sibling
Pointer to the next sibling of this node.
fsmTree_t fsmSuffixTree(suffixTree_t tree)
Transforms this tree in an equivalent fsm tree structure.
unsigned long Uint
Unsigned int type.
void pruneSuffixTree(suffixTree_t tree)
Prunes this suffix tree according to some cost function.
suffixTree_t initSuffixTree()
Creates and initializes a new suffix tree structure instance.
Encoder context tree structure.
statistics_t stats
Pointer to the statistics for this node context.
void freeSuffixTree(suffixTree_t tree)
Deletes a suffix tree structure instance.
Structure that saves statistics for each tree node in the encoder.
struct suffixTree * parent
Pointer to the parent of this node.
struct suffixTree * child
Pointer to the first child of this node.
Uint left
Index of the leftmost character of this node label in the input string.