Package smile.util

Class PairingHeap.Node

java.lang.Object
smile.util.PairingHeap.Node
Enclosing class:
PairingHeap<E extends Comparable<E>>

public class PairingHeap.Node extends Object
A multiway tree node in the pairing heap.
  • Constructor Details

    • Node

      public Node(E value)
      Constructor.
      Parameters:
      value - the element value.
  • Method Details

    • decrease

      public void decrease(E newValue)
      Decreases the value of an element.
      Parameters:
      newValue - the new value.