go-heaps
go-heaps copied to clipboard
Reference implementations of heap data structures in Go - treap, skew, leftlist, pairing, fibonacci
Have added a useful link about the heap in data structures from the scaler topics.
When using Delete( item) and node == p.root, detach() return nil and do nothing
This PR tries to make `maxBucketSize` more close to `(log n) + 1`. i.e, it returns 1 for size 1, returns 2 for size 2,3, returns 3 for size 4,5,6,7...
Fibonacci Heap needs to implement the Extended interfaces
https://en.wikipedia.org/wiki/B-heap
https://en.wikipedia.org/wiki/Radix_heap
Add Adjust, Delete and Meld methods to Treap Heap
Add Adjust, Delete and Meld methods to Leftlist Heap
Skew needs to implement the Extended Interface