module AVL_GenSet:
This functor is similar to the Reins.AVLSet.GenSet
module above,
except it allows the user to specify the maximum difference
between the heights of two subtrees at a node with HeightDiff.v
.
The choice of this value affects the amount of effort spent
rebalancing the tree after it has been modified in exchange for
the cost of locating a particular element in the tree. The
modules Reins.AVLSet.GenSet1
, Reins.AVLSet.GenSet2
, and
Reins.AVLSet.GenSet3
below instantiate this functor with the values
1, 2, and 3 respectively. Those modules are also defined in the
same compilation unit as the implementation code, so the value of
HeightDiff.v is inlined, increasing performance.
Parameters: |
HeightDiff |
: |
sig val v : int end
|
|
include Reins.Sets.MonoSetSig
val gen : ?size:int -> Random.State.t -> t