name:                 psqueues
version:              0.2.8.1
visibility:           public
id:                   psqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y
key:                  psqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y
license:              BSD-3-Clause
maintainer:           Jasper Van der Jeugt <jaspervdj@gmail.com>
synopsis:             Pure priority search queues
description:
    The psqueues package provides
    <http://en.wikipedia.org/wiki/Priority_queue Priority Search Queues> in
    three different flavors.

    * @OrdPSQ k p v@, which uses the @Ord k@ instance to provide fast insertion,
    deletion and lookup. This implementation is based on Ralf Hinze's
    <http://citeseer.ist.psu.edu/hinze01simple.html A Simple Implementation Technique for Priority Search Queues>.
    Hence, it is similar to the
    <http://hackage.haskell.org/package/PSQueue PSQueue> library, although it is
    considerably faster and provides a slightly different API.

    * @IntPSQ p v@ is a far more efficient implementation. It fixes the key type
    to @Int@ and uses a <http://en.wikipedia.org/wiki/Radix_tree radix tree>
    (like @IntMap@) with an additional min-heap property.

    * @HashPSQ k p v@ is a fairly straightforward extension of @IntPSQ@: it
    simply uses the keys' hashes as indices in the @IntPSQ@. If there are any
    hash collisions, it uses an @OrdPSQ@ to resolve those. The performance of
    this implementation is comparable to that of @IntPSQ@, but it is more widely
    applicable since the keys are not restricted to @Int@, but rather to any
    @Hashable@ datatype.

    Each of the three implementations provides the same API, so they can be used
    interchangeably. The benchmarks show how they perform relative to one
    another, and also compared to the other Priority Search Queue
    implementations on Hackage:
    <http://hackage.haskell.org/package/PSQueue PSQueue>
    and
    <http://hackage.haskell.org/package/fingertree-psqueue fingertree-psqueue>.

    <<http://i.imgur.com/KmbDKR6.png>>

    <<http://i.imgur.com/ClT181D.png>>

    Typical applications of Priority Search Queues include:

    * Caches, and more specifically LRU Caches;

    * Schedulers;

    * Pathfinding algorithms, such as Dijkstra's and A*.

category:             Data Structures
abi:                  681c401259a1a87fc63d86167aa25803
exposed:              True
exposed-modules:      Data.HashPSQ Data.IntPSQ Data.OrdPSQ
hidden-modules:
    Data.BitUtil Data.HashPSQ.Internal Data.IntPSQ.Internal
    Data.OrdPSQ.Internal

import-dirs:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y

library-dirs:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y

library-dirs-static:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y

dynamic-library-dirs: /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1
data-dir:             /usr/pkg/share/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1
hs-libraries:         HSpsqueues-0.2.8.1-A1nPQcPIt2PKFaUWDcxM5Y
depends:
    base-4.20.0.0-inplace deepseq-1.5.0.0-inplace
    ghc-prim-0.11.0-inplace hashable-1.5.0.0-93vVlDWTvOTF1kJlBpPOXB

haddock-interfaces:
    /usr/pkg/share/doc/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1/html/psqueues.haddock

haddock-html:
    /usr/pkg/share/doc/aarch64-netbsd-ghc-9.10.1/psqueues-0.2.8.1/html
