Package org.jheaps.tree
Class StrictFibonacciHeap.HeapRecord<K,V>
java.lang.Object
org.jheaps.tree.StrictFibonacciHeap.HeapRecord<K,V>
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StrictFibonacciHeap<K,
V>
The heap record backing an active (or, once melded away, permanently passive)
strict Fibonacci heap. Node and rank records reference this object directly
instead of the outer
StrictFibonacciHeap, so that a meld can cheaply
repoint the outer wrapper at whichever heap record turns out to be the larger one,
without ever having to rewrite any existing node's or rank's back-pointer.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Comparator<? super K>(package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) StrictFibonacciHeap.Node<K,V> (package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) StrictFibonacciHeap.HeapRecord<K,V> (package private) static final int(package private) StrictFibonacciHeap.Rank<K,V> (package private) StrictFibonacciHeap.Node<K,V> private static final long(package private) long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidapplyFreeRootReductions(int freeAttempts, int rootAttempts) (package private) void(package private) voiddelete(StrictFibonacciHeap.Node<K, V> node) (package private) void(package private) StrictFibonacciHeap.HeapRecord<K,V> find()(package private) StrictFibonacciHeap.Node<K,V> fixListGroupHead(int group) (package private) StrictFibonacciHeap.Node<K,V> (package private) voidfixListInsert(int group, StrictFibonacciHeap.Node<K, V> node) (package private) StrictFibonacciHeap.Node<K,V> fixListInsertionPoint(int group) (package private) booleanisActive()(package private) booleanless(StrictFibonacciHeap.Node<K, V> x, StrictFibonacciHeap.Node<K, V> y) (package private) StrictFibonacciHeap.Node<K,V> link(StrictFibonacciHeap.Node<K, V> x, StrictFibonacciHeap.Node<K, V> y) (package private) StrictFibonacciHeap.Rank<K,V> rankZero()(package private) boolean(package private) boolean(package private) boolean(package private) boolean(package private) void(package private) boolean(package private) void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PASSIVE
static final int PASSIVE- See Also:
-
FREE_MULTIPLE
static final int FREE_MULTIPLE- See Also:
-
FREE_SINGLE
static final int FREE_SINGLE- See Also:
-
LOSS_ZERO
static final int LOSS_ZERO- See Also:
-
LOSS_ONE_MULTIPLE
static final int LOSS_ONE_MULTIPLE- See Also:
-
LOSS_ONE_SINGLE
static final int LOSS_ONE_SINGLE- See Also:
-
LOSS_TWO
static final int LOSS_TWO- See Also:
-
comparator
-
size
long size -
root
StrictFibonacciHeap.Node<K,V> root -
rankList
StrictFibonacciHeap.Rank<K,V> rankList -
fixPassive
StrictFibonacciHeap.Node<K,V> fixPassive -
fixFreeMultiple
StrictFibonacciHeap.Node<K,V> fixFreeMultiple -
fixFreeSingle
StrictFibonacciHeap.Node<K,V> fixFreeSingle -
fixLossZero
StrictFibonacciHeap.Node<K,V> fixLossZero -
fixLossOneMultiple
StrictFibonacciHeap.Node<K,V> fixLossOneMultiple -
fixLossOneSingle
StrictFibonacciHeap.Node<K,V> fixLossOneSingle -
fixLossTwo
StrictFibonacciHeap.Node<K,V> fixLossTwo -
other
StrictFibonacciHeap.HeapRecord<K,V> other
-
-
Constructor Details
-
HeapRecord
HeapRecord(Comparator<? super K> comparator)
-
-
Method Details
-
isActive
boolean isActive() -
find
StrictFibonacciHeap.HeapRecord<K,V> find() -
less
-
link
StrictFibonacciHeap.Node<K,V> link(StrictFibonacciHeap.Node<K, V> x, StrictFibonacciHeap.Node<K, V> y) -
applyFreeRootReductions
void applyFreeRootReductions(int freeAttempts, int rootAttempts) -
reducePassive
void reducePassive() -
reduceFree
boolean reduceFree() -
reduceRoot
boolean reduceRoot() -
reduceLoss
boolean reduceLoss() -
reduceLossOne
boolean reduceLossOne() -
reduceLossTwo
boolean reduceLossTwo() -
rankZero
StrictFibonacciHeap.Rank<K,V> rankZero() -
deleteMin
void deleteMin() -
decreaseKeyStructural
-
delete
-
retireFixList
void retireFixList() -
fixListHead
StrictFibonacciHeap.Node<K,V> fixListHead() -
fixListGroupHead
-
fixListInsertionPoint
-
fixListInsert
-