pairnode.java

来自「pair tree 的算法java实现,十分清晰,可供初学者参考.请用winzi」· Java 代码 · 共 30 行

JAVA
30
字号
    package DataStructures;    /**     * Public class for use with PairHeap. It is public     * only to allow references to be sent to decreaseKey.     * It has no public methods or members.     * @author Mark Allen Weiss     * @see PairHeap     */    public class PairNode    {        /**         * Construct the PairNode.         * @param theElement the value stored in the node.         */        PairNode( Comparable theElement )        {            element     = theElement;            leftChild   = null;            nextSibling = null;            prev        = null;        }            // Friendly data; accessible by other package routines        Comparable element;        PairNode   leftChild;        PairNode   nextSibling;        PairNode   prev;    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?