Package smile.util

Class PairingHeap<E extends Comparable<E>>

java.lang.Object
smile.util.PairingHeap<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

public class PairingHeap<E extends Comparable<E>> extends Object implements Queue<E>
A pairing heap is a type of heap data structure with relatively simple implementation and excellent practical amortized performance. Pairing heaps are heap-ordered multiway tree structures, and can be considered simplified Fibonacci heaps. They are considered a robust choice for implementing such algorithms as Prim's MST algorithm.