Class: PairingHeap::MaxPriorityQueue

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

Overview

Priority queue where the highest priority is the most prioritary

Instance Method Summary collapse

Methods inherited from PairingHeap

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

Constructor Details

#initializeMaxPriorityQueue

Returns a new instance of MaxPriorityQueue.


339
340
341
# File 'lib/pairing_heap.rb', line 339

def initialize
  super(&:>=)
end