blob: ab4b093496d9ee5f4fa0e0e239fa9b6dc1e4d03e (
plain) (
blame)
1
2
3
4
|
Lazy priority queue is a pure Ruby priority queue which implements a lazy
binomial heap. It supports the change priority operation, being suitable for
algorithms like Dijkstra's shortest path and Prim's minimum spanning tree. It
can be instantiated as a min-priority queue as well as a max-priority queue.
|