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