编写一个配对堆(含比较器,Java编程实现)

PairingHeap的编程实现

/**
 * Implements a pairing heap.
 * Supports a decreaseKey operation.
 * Note that all "matching" is based on the compareTo method.
 */
public class PairingHeap<T extends Comparable<? super T>> {
   
     

    private PairNode<T> root;

    

你可能感兴趣的:(#,#)