HomeFreeBSD

devel/rubygem-pairing_heap: Add rubygem-pairing_heap 0.3.0

Description

devel/rubygem-pairing_heap: Add rubygem-pairing_heap 0.3.0

PairingHeap is a pure Ruby priority queue implementation using a pairing heap as
the underlying data structure. While a pairing heap is asymptotically less
efficient than the Fibonacci heap, it is usually faster in practice. This makes
it a popular choice for Prim's MST or Dijkstra's algorithm implementations.

PairingHeap is currently being used as the priority queue data structure in RGL.

Also implementation without priority change support is
provided(SimplePairingHeap), while the asymptotical complexity of the methods
stay the same, bookkeeping of elements is not needed making, the constant
smaller.

WWW: https://github.com/mhib/pairing_heap

Details

Provenance
sunpoetAuthored on Aug 31 2022, 6:06 PM
Parents
R11:486f23a64009: databases/rubygem-redis4: Add rubygem-redis4 4.8.0 (copied from rubygem-redis)
Branches
Unknown
Tags
Unknown