Idris2Doc : Data.HashPSQ.Internal

Data.HashPSQ.Internal

(source)
Hash Priority Search Queue Internals

Definitions

dataBucket : Type->Type->Type->Type
Totality: total
Visibility: public export
Constructor: 
MkBucket : k->v->OrdPSQkpv->Bucketkpv

Hints:
Eqk=>Eqv=>Eqp=>Eq (Bucketkpv)
Ordk=>Ordv=>Ordp=>Ord (Bucketkpv)
Showk=>Showv=>Showp=>Show (Bucketkpv)
toBucket : Ordk=>Ordp=>OrdPSQkpv->Maybe (p, Bucketkpv)
Totality: total
Visibility: export
mkBucket : Ordk=>Ordp=>k->p->v->OrdPSQkpv-> (p, Bucketkpv)
  Smart constructor which takes care of placing the minimum element directly
in the Bucket.

Totality: total
Visibility: export
dataHashPSQ : Type->Type->Type->Type
  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 : NatPSQp (Bucketkpv) ->HashPSQkpv

Hints:
Eqp=>Eqk=>Eqv=>Eq (HashPSQkpv)
Functor (HashPSQkp)
Ordp=>Ordk=>Ordv=>Ord (HashPSQkpv)
Showp=>Showk=>Showv=>Show (HashPSQkpv)