Psq
Functional Priority Search Queues
Psq
provides a functional structure that behaves as both a finite map and a priority queue.
k -> p
, and allows efficient addition, lookup and removal of bindings by key.k -> p
with the least p
.The implementation is backed by a weight-balanced semi-heap. Access by key is O(log n)
. Access to the minimal p
is O(1)
, and its removal is O(log n)
.
References
v0.2.0-7-gb2eb861 — homepage