module Make:
| Parameters: |
|
type t
val empty : t
val is_empty : t -> boolruns in O(1)
val insert : X.t -> t -> truns in O(log n)
val min : t -> X.truns in O(1)
val extract_min : t -> X.t * truns in O(log n)
val merge : t -> t -> truns in O(log max(n1, n2))
val fold : (X.t -> 'a -> 'a) -> t -> 'a -> 'aelements are presented in an arbitrary order
val elements : t -> X.t listthe returned list is not sorted
val of_list : X.t list -> t