|
ADS
Algorithms and Data Structures
|
the nodes of a binary search tree as the algorithms based on join see them: nil(), the empty tree; left(), right(), key(), value() and size(), the reading of a node (size() of nil is 0); expose( t , l , r ), which takes off the children of \( t \) into \( l \) and \( r \), so that \( t \) is a node alone; connect( m , l , r ), which hangs \( l \) and \( r \) under the node alone \( m \) and updates what \( m \) keeps of its subtree (its size, its height, its augmented value, the parents of \( l \) and \( r \)); dispose( t ), which frees the subtree \( t \) (nothing for nil); rank( t ), the rank of a tree, and childRank( t , r , c ), that of the child \( c \) of \( t \) of rank \( r \), in \( O( 1 ) \); join( l , rl , m , r , rr ), the join of the balancing scheme, which returns the root and its rank More...
#include <ADS/tree/JoinAlgorithms.h>
the nodes of a binary search tree as the algorithms based on join see them: nil(), the empty tree; left(), right(), key(), value() and size(), the reading of a node (size() of nil is 0); expose( t , l , r ), which takes off the children of \( t \) into \( l \) and \( r \), so that \( t \) is a node alone; connect( m , l , r ), which hangs \( l \) and \( r \) under the node alone \( m \) and updates what \( m \) keeps of its subtree (its size, its height, its augmented value, the parents of \( l \) and \( r \)); dispose( t ), which frees the subtree \( t \) (nothing for nil); rank( t ), the rank of a tree, and childRank( t , r , c ), that of the child \( c \) of \( t \) of rank \( r \), in \( O( 1 ) \); join( l , rl , m , r , rr ), the join of the balancing scheme, which returns the root and its rank