2002-08-08 09:54:03 +02:00
|
|
|
This is an implementation of a Fibonacci Heap. A Fibonacci Heap is
|
|
|
|
a very efficient heap. The cost of an insert is O(1), and the amortized
|
|
|
|
cost of an extract minimum is O(lgn). You can extract an already inserted
|
2008-06-01 11:42:37 +02:00
|
|
|
item out of order in O(lgn). The way the Fibonacci heap obtains this is
|
2002-08-08 09:54:03 +02:00
|
|
|
by delaying the organizing of the items until you extract.
|
|
|
|
|
|
|
|
WWW: http://resnet.uoregon.edu/~gurney_j/jmpc/fib.html
|