@hackage depq0.2.0.0
Double-ended priority queues
Categories
License
BSD-3-Clause
Maintainer
ocramz
Links
Versions
Installation
Tested Compilers
Dependencies (4)
- base >=4.7 && <5
- containers >=0.6.0.1
- deepseq >=1.4.4
- psqueues >=0.2.7.2 Show all…
Dependents (1)
@hackage/vp-tree
depq
Double-ended priority queues
This library provides a type for 'DEPQ's, along with functions for constructing and querying them.
Usage
The 'Data.DEPQ' module exports the user interface, which is similar to that of most Haskell data container libraries.
The most common use case of this library is to populate a DEPQ (either from a 'Foldable' collection or by 'insert'ing incrementally) and query either or both of its extremes (with 'findMin', 'findMax', 'popMin', 'popMax', 'topK', 'bottomK').
Have fun!
Implementation
Currently the implementation is based on 'IntPSQ' (integer-indexed priority search queues) from the 'psqueues' package.