|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.plugin.fibheap.FibHeapDS
public class FibHeapDS
A fast-class for operations of FibHeaps
| Field Summary | |
|---|---|
java.util.IdentityHashMap |
fibNodes
|
static SubOperationQueue |
subOperations
|
| Constructor Summary | |
|---|---|
FibHeapDS()
Creates a new, empty FibHeap. |
|
| Method Summary | |
|---|---|
int |
accessmin()
Returns the minimum key in this Fibonacci heap. |
void |
add(SubOperation so)
|
void |
clearSubOperationQueue()
|
java.lang.Object |
clone()
|
void |
decreasekey(FibNodeDS N,
int k)
Decreases the key of the specified node to the specified value. |
int |
delete(FibNodeDS node)
Deletes the specified node from this Fibonacci heap. |
int |
deletemin()
Deletes the node with minimum key in this Fibonacci heap. |
int |
getCount()
Call this method to analyze a just completed heap operation. |
int |
getHeapSize()
|
SubOperationQueue |
getSubOperationQueue()
|
FibNodeDS |
insert(int k)
Inserts a new node to this Fibonacci heap. |
boolean |
isEmpty()
|
int |
maxRank()
Returns the maximum possible rank of a node in this FibHeap. |
void |
meld(FibHeapDS other)
Melds another FibHeap into this one. |
void |
resetCount()
Resets the step counter to 0. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static SubOperationQueue subOperations
public java.util.IdentityHashMap fibNodes
| Constructor Detail |
|---|
public FibHeapDS()
| Method Detail |
|---|
public boolean isEmpty()
public void meld(FibHeapDS other)
other - the FibHeap to be joined with this onepublic FibNodeDS insert(int k)
k - key of new FibNode
public int accessmin()
public int deletemin()
public void decreasekey(FibNodeDS N,
int k)
N - node whose key is to be decreasedk - new key valuepublic int delete(FibNodeDS node)
node - node to be deleted
public int getHeapSize()
public int getCount()
public void resetCount()
public int maxRank()
public SubOperationQueue getSubOperationQueue()
public void add(SubOperation so)
public void clearSubOperationQueue()
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||