项目作者: ocramz

项目描述 :
Double-ended priority queues
高级语言: Haskell
项目地址: git://github.com/ocramz/depq.git
创建时间: 2020-05-23T06:51:47Z
项目社区:https://github.com/ocramz/depq

开源协议:BSD 3-Clause "New" or "Revised" License

下载


depq

Hackage
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.

Populate a DEPQ (either from a Foldable collection such as a list or array or by inserting incrementally) and query either 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.