Module T.Heap

type t = {
heap : int array;
mutable len : int;
mutable max : int;
}
val make : unit -> t
val populate : length:int -> freqs:int array -> int array -> depth:int array -> t -> int
val pkzip : int -> freqs:int array -> depth:int array -> t -> int
val smaller : int array -> int -> int -> int array -> bool
val pqdownheap : freqs:int array -> depth:int array -> t -> int -> unit
val pqremove : freqs:int array -> depth:int array -> t -> int