Package org.jheaps.tree
Class StrictFibonacciHeap.Node<K,V>
java.lang.Object
org.jheaps.tree.StrictFibonacciHeap.Node<K,V>
- All Implemented Interfaces:
Serializable,AddressableHeap.Handle<K,V>
- Enclosing class:
- StrictFibonacciHeap<K,
V>
static class StrictFibonacciHeap.Node<K,V>
extends Object
implements AddressableHeap.Handle<K,V>, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) boolean(package private) boolean(package private) K(package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) intprivate static long(package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Rank<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) final longprivate static final long(package private) V -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanactive()(package private) voidaddChild(StrictFibonacciHeap.Node<K, V> child) (package private) voidchangeRank(StrictFibonacciHeap.Rank<K, V> newRank) (package private) voidcut(StrictFibonacciHeap.HeapRecord<K, V> heap) voiddecreaseKey(K newKey) Decrease the key of the element.(package private) voidvoiddelete()Delete the element from the heap that it belongs.(package private) booleanfixed()(package private) void(package private) void(package private) voidfixListGroup(StrictFibonacciHeap.Node<K, V> head, StrictFibonacciHeap.GroupInfo<K, V> out) (package private) void(package private) void(package private) void(package private) booleanfixListSameGroup(StrictFibonacciHeap.Node<K, V> other) (package private) void(package private) booleanfree()(package private) voidgetKey()Return the key of the element.getValue()Return the value of the element.(package private) StrictFibonacciHeap.HeapRecord<K,V> heap()(package private) void(package private) booleanpassive()(package private) void(package private) voidretire(StrictFibonacciHeap.HeapRecord<K, V> heap) voidSet the value of the element.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nextSeq
private static long nextSeq -
key
K key -
value
V value -
parent
StrictFibonacciHeap.Node<K,V> parent -
leftChild
StrictFibonacciHeap.Node<K,V> leftChild -
left
StrictFibonacciHeap.Node<K,V> left -
right
StrictFibonacciHeap.Node<K,V> right -
free
boolean free -
loss
int loss -
rank
StrictFibonacciHeap.Rank<K,V> rank -
fixPrev
StrictFibonacciHeap.Node<K,V> fixPrev -
fixNext
StrictFibonacciHeap.Node<K,V> fixNext -
seq
final long seq -
forcedMinimum
boolean forcedMinimum
-
-
Constructor Details
-
Node
Node(StrictFibonacciHeap.HeapRecord<K, V> heap, K key, V value)
-
-
Method Details
-
getKey
Return the key of the element.- Specified by:
getKeyin interfaceAddressableHeap.Handle<K,V> - Returns:
- the key of the element
-
getValue
Return the value of the element.- Specified by:
getValuein interfaceAddressableHeap.Handle<K,V> - Returns:
- the value of the element
-
setValue
Set the value of the element.- Specified by:
setValuein interfaceAddressableHeap.Handle<K,V> - Parameters:
value- the new value
-
decreaseKey
Decrease the key of the element.- Specified by:
decreaseKeyin interfaceAddressableHeap.Handle<K,V> - Parameters:
newKey- the new key
-
delete
public void delete()Delete the element from the heap that it belongs.- Specified by:
deletein interfaceAddressableHeap.Handle<K,V>
-
retire
-
heap
StrictFibonacciHeap.HeapRecord<K,V> heap() -
active
boolean active() -
passive
boolean passive() -
free
boolean free() -
fixed
boolean fixed() -
changeRank
-
increaseRank
void increaseRank() -
decreaseRank
void decreaseRank() -
addChild
-
cut
-
free2fixed
void free2fixed() -
fixed2free
void fixed2free() -
passive2free
-
fixListUnlink
void fixListUnlink() -
fixListInsertBefore
-
fixListInsertAfter
-
fixListSameGroup
-
fixListGroup
-
fixListAdd
-
fixListRemove
-