Releases: mhib/pairing_heap
Releases · mhib/pairing_heap
3.1.0
3.0.1
3.0.0
2.0.0
Breaking changes
- Second argument of #push now defaults to the first argument
# it is now possible to write
array.each { |el| heap.push(el) }
# instead of
array.each { |el| heap.push(el, el) }
- PairingHeap#pop_priority was separated to two methods; PairingHeap#pop_priority and PairingHeap#pop_with_priority, similarly to SimplePairingHeap
New methods
#each
returns an iterator of heap elements.PairingHeap#get_priority_if_exists
returns a pair where first element is success flag, and second element is priority.
1.0.0
First stable release
-
Refactor merge_pairs to use pointer swapping instead of ruby array to represent stack
-
Define
*_with_priority
and redefine*_priority
methods
Previous*_priority
methods are now*_with_priority
,*_priority
only returns priority -
Fix potential issue in
#delete
method, when deleting root element
0.3.0
0.2.0
First release
v0.1.0 Initial commit