Packages / openSUSE Leap 15.6 / Source / ghc-psqueues

Source Package: ghc-psqueues (0.2.8.0-150500.11.3.2)

Pure priority search queues

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

Package information

Homepage
[https://hackage.haskell.org/package/psqueues]
License
BSD-3-Clause
Mainteneur du paquet aval
Inconnu : non déclaré dans la source indexée

The following binary packages are built from this source package:

Vulnérabilités connues

Aucun avis correspondant dans les sources suivies.

Dernière synchronisation:

[Catalogue CVE]

Sources

  • Authoritative source; repository metadata signature verified

    Preuve de signature

    leap-15-6-oss-multiarch:ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230

    Repository-signature verification record
    Signed-object SHA-256
    ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable