A priority search queue with keys of type k and priorities of type p
and values of type v.
A HashPSQ offers very similar performance to NatPSQ.
In case of collisions, it uses an OrdPSQ locally to solve those.
This means worst case complexity is usually given by O(min(n,W), log n), where W is the number of bits in an Int.
This simplifies to O(min(n, W)) since log n is always smaller than W on current machines.
Totality: total
Visibility: public export
Constructor: MkHashPSQ : NatPSQ p (Bucket k p v) -> HashPSQ k p v
Hints:
Eq p => Eq k => Eq v => Eq (HashPSQ k p v) Functor (HashPSQ k p) Ord p => Ord k => Ord v => Ord (HashPSQ k p v) Show p => Show k => Show v => Show (HashPSQ k p v)