module RBSet:sig
..end
Redblack trees are balanced binary search trees that provide O(log
n) mem
, add
, and remove
tree operations and O(n) union
,
inter
, and diff
set operations. They can also be more memory
efficient than AVL trees since they only need to store 1 bit of
information to maintain their internal invariants. In the current
implementation, this bit is encoded in the type constructor,
meaning that each internal node of the tree uses one less word of
memory than AVL trees.
module PolySet:Reins.Sets.PolySetSigStd
module MonoSet:Reins.Sets.MonoSetSigFnStd
module GenSet:Reins.Sets.GenSetSigFnStd
Reins.RBSet.MonoSet
functor except it
is parameterized by a module that also supports the gen
operation.