class Quartz::FibonacciHeap(T)
- Quartz::FibonacciHeap(T)
- Quartz::PriorityQueue(T)
- Reference
- Object
Overview
Event set implemented as a Fibonacci Heap, as described by Fredman and Tarjan.
Structured as a collection of root trees that are min-heap ordered, and internally represented as a circular, doubly-linked list.
Defined in:
quartz/priority_queues/fibonacci_heap.crConstructors
Instance Method Summary
-
#clear
Clears
self
. - #delete(priority : Duration, value : T) : T
-
#empty? : Bool
Whether the event set is empty or not.
- #inspect(io)
- #next_priority : Duration
- #peek : T
- #peek? : T | Nil
-
#pop : T
Dequeue and return the min element.
-
#push(priority : Duration, value : T)
Insert the given value with the specified priority into
self
.. -
#size : Int32
Returns the number of elements in the heap.
Instance methods inherited from class Quartz::PriorityQueue(T)
clear
clear,
delete(priority : Duration, value : T) : T | Nil
delete,
empty? : Bool
empty?,
next_priority : Duration
next_priority,
peek : T
peek,
peek? : T | Nil
peek?,
pop : T
pop,
pop_imminents(&)
pop_imminents,
push(priority : Duration, value : T)
push,
size : Int
size
Constructor methods inherited from class Quartz::PriorityQueue(T)
new(priority_queue : Symbol, &comparator : Duration, Duration, Bool -> Int32) : selfnew(&) new
Instance methods inherited from class Reference
==(other : Quartz::Any)
==
Instance methods inherited from class Object
===(other : Quartz::Any)
===
Constructor Detail
Instance Method Detail
Insert the given value with the specified priority into self
..