Cf_sbheapFunctional skew-binomial heaps.
This module implements functional heaps and priority queues based on skew-binomial heaps. The underlying algorithm can be found in Chris Okasaki's Ph.D. thesis. These data structures have O(1) cost in space and time for most operations, including merge.
module Heap : sig ... endInterfaces to persistent functional heap data structures.
module PQueue : sig ... endInterfaces to persistent functional priority queue data structures.