Search code examples
performancehaskellfibonaccibinary-heapbinomial-heap

binary heap vs binomial heap vs fibonacci heap, regarding performance for a priority queue


Could someone please explain me how should I decide whether to use one or another heap implementation, among the ones mentioned in the title?

I would like an answer to guide me on choosing the implementation regarding the performance of the structure, according to the problem. Right now, I'm doing a priority queue, but I would like to know not only the most appropriate implementation for this case, but the basics that allow me to choose an implementation in any other situation...

Other thing to consider is that I'm using haskell this time, so, if you know of any trick or something that would improve the implementation with this language, please let me know! but as before, comments about using other languages are welcome too!

Thanks! and sorry if the question is too basic, but i'm not familiar with heaps at all. This is the first time i'm facing the task of implementing one...

thanks again!


Solution

  • You might find the third article in http://themonadreader.files.wordpress.com/2010/05/issue16.pdf relevant.