Uses of Class
org.cicirello.ds.BinaryHeap
Packages that use BinaryHeap
Package
Description
This package includes core data structures used by other of our libraries and projects.
-
Uses of BinaryHeap in org.cicirello.ds
Classes in org.cicirello.ds that implement interfaces with type arguments of type BinaryHeapModifier and TypeClassDescriptionfinal classBinaryHeap<E>An implementation of a Binary Heap.final classBinaryHeap<E>An implementation of a Binary Heap.Methods in org.cicirello.ds that return BinaryHeapModifier and TypeMethodDescriptionBinaryHeap.copy()static <E> BinaryHeap<E> BinaryHeap.createMaxHeap()Creates an empty BinaryHeap with theBinaryHeap.DEFAULT_INITIAL_CAPACITYas the initial capacity, and a maximum-priority-first-out priority order.static <E> BinaryHeap<E> BinaryHeap.createMaxHeap(int initialCapacity) Creates an empty BinaryHeap with a specified initial capacity, and a maximum-priority-first-out priority order.static <E> BinaryHeap<E> BinaryHeap.createMaxHeap(Collection<IntegerPriorityQueueNode<E>> initialElements) Creates a BinaryHeap from a collection of (element, priority) pairs, with a maximum-priority-first-out priority order.static <E> BinaryHeap<E> BinaryHeap.createMinHeap()Creates an empty BinaryHeap with theBinaryHeap.DEFAULT_INITIAL_CAPACITYas the initial capacity, and a minimum-priority-first-out priority order.static <E> BinaryHeap<E> BinaryHeap.createMinHeap(int initialCapacity) Creates an empty BinaryHeap with a specified initial capacity, and a minimum-priority-first-out priority order.static <E> BinaryHeap<E> BinaryHeap.createMinHeap(Collection<IntegerPriorityQueueNode<E>> initialElements) Creates a BinaryHeap from a collection of (element, priority) pairs, with a minimum-priority-first-out priority order.Methods in org.cicirello.ds with parameters of type BinaryHeapModifier and TypeMethodDescriptionbooleanBinaryHeap.merge(BinaryHeap<E> other) Merges another priority queue into this one, adding all of its (element, priority) pairs.