Class: PairingHeap::MinPriorityQueue

Inherits:
PairingHeap show all
Defined in:
lib/pairing_heap.rb

Overview

Priority queue where the smallest priority is the most prioritary

Instance Method Summary collapse

Methods inherited from PairingHeap

#any?, #change_priority, #delete, #empty?, #peek, #pop, #push, #size

Constructor Details

#initializeMinPriorityQueue

Returns a new instance of MinPriorityQueue.


209
210
211
# File 'lib/pairing_heap.rb', line 209

def initialize
  super(&:<=)
end