Uses of Class
org.cicirello.ds.BinaryHeapDouble
Package
Description
This package includes core data structures used by other of our libraries and projects.
-
Uses of BinaryHeapDouble in org.cicirello.ds
Modifier and TypeMethodDescriptionBinaryHeapDouble.copy()
static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMaxHeap()
Creates an empty BinaryHeapDouble with theDEFAULT_INITIAL_CAPACITY
as the initial capacity, and a maximum-priority-first-out priority order.static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMaxHeap
(int initialCapacity) Creates an empty BinaryHeapDouble with a specified initial capacity, and a maximum-priority-first-out priority order.static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMaxHeap
(Collection<PriorityQueueNode.Double<E>> initialElements) Creates a BinaryHeapDouble from a collection of (element, priority) pairs, with a maximum-priority-first-out priority order.static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMinHeap()
Creates an empty BinaryHeapDouble with theDEFAULT_INITIAL_CAPACITY
as the initial capacity, and a minimum-priority-first-out priority order.static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMinHeap
(int initialCapacity) Creates an empty BinaryHeapDouble with a specified initial capacity, and a minimum-priority-first-out priority order.static <E> BinaryHeapDouble<E>
BinaryHeapDouble.createMinHeap
(Collection<PriorityQueueNode.Double<E>> initialElements) Creates a BinaryHeapDouble from a collection of (element, priority) pairs, with a minimum-priority-first-out priority order.Modifier and TypeMethodDescriptionboolean
BinaryHeapDouble.merge
(BinaryHeapDouble<E> other) Merges another priority queue into this one, adding all of its (element, priority) pairs.