Navigation
Synopsis A PriorityQueue datatype and associated functions.
Usage import util::PriorityQueue;
Description Priority queues maintain (priority, value) pairs in sorted order. They are implemented using a Binomial Heap. Priority queue are, for instance, used to implement shortest path algorithms.

Provides the following functions:
Pitfalls Currently, both priority and associated value ("payload") have to be integers. This will be generalized.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.