Class DoubleArrayPriorityQueue

java.lang.Object
it.unimi.dsi.fastutil.doubles.DoubleArrayPriorityQueue
All Implemented Interfaces:
DoublePriorityQueue, PriorityQueue<Double>, Serializable

public class DoubleArrayPriorityQueue
extends Object
implements DoublePriorityQueue, Serializable
A type-specific array-based priority queue.

Instances of this class represent a priority queue using a backing array—all operations are performed directly on the array. The array is enlarged as needed, but it is never shrunk. Use the trim() method to reduce its size, if necessary.

This implementation is extremely inefficient, but it is difficult to beat when the size of the queue is very small.

See Also:
Serialized Form