Expand description
This crate provides traits to describe operations on EVAL-LINK-UPDATE data structures (similar to operations defined by Tarjan in “Applications of Path Compression on Balanced Trees.”).
It also provides implementations of basic EVAL-LINK-UPDATE structures such as forest with path compression on evaluation (see CompressedForest).
§EVAL-LINK-UPDATE Operations
Suppose we have an associative operation ⊕. The three operations made available on forests are:
EVAL(n): find the root of the tree that contains the noden, let sayr, and compute the product of all values on the path fromrton(i.evalue(r)⊕ … ⊕value(n))LINK(n, m): find the root of the tree that contains the nodem, let sayr, and link it to the noden(i.erbecomes a child ofn)UPDATE(n, v): find the root of the tree that contains the noden, let sayr, and replace its value byv
Re-exports§
pub use operation::AssociativeOperation;
Modules§
- operation
- Collection of basic types that define standard associative operations.
Structs§
- Compressed
Forest - A simple EVAL-LINK-UPDATE forest structure that performs (unbalanced) path compression.
Traits§
- Eval
Link Update - An EVAL-LINK-UPDATE structure.