MergeSort, QuickSort or HeapSort?

Manuel picture Manuel · Dec 19, 2013 · Viewed 26.3k times · Source

What are are the relative advantages of the three in terms of the number of comparisons performed and the amount of memory required by the algorithms. Which of them is their running time guaranteed?

Answer

TypeIA picture TypeIA · Dec 19, 2013

I think Wikipedia's coverage of this is pretty thorough and answers all your questions. The comparison table shows the best, average and worst-case performance, the memory usage, and other characteristics like stability.