BSD Ports

devel/rubygem-pairing_heap 3.1.0 DragonFly

Performant priority queue with support for changing priority

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, rubygems
Package size
10.3 KiB, 44.7 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/rubygem-pairing_heap3.1.0
FreeBSDdevel/rubygem-pairing_heap3.1.1
HardenedBSDdevel/rubygem-pairing_heap3.1.1
GhostBSDdevel/rubygem-pairing_heap3.1.1

Install

Binary package:

pkg install rubygem-pairing_heap

From DPorts:

cd /usr/dports/devel/rubygem-pairing_heap && make install clean

Dependencies

Run dependencies 2
Required by 1