What sort algorithm provides the best worst-case performance?

后端 未结 16 2123
[愿得一人]
[愿得一人] 2020-12-15 14:44

What is the fastest known sort algorithm for absolute worst case? I don\'t care about best case and am assuming a gigantic data set if that even matters.

16条回答
  •  萌比男神i
    2020-12-15 15:13

    If you have a sufficiently huge data set, you're probably looking at sorting individual bins of data, then using merge-sort to merge those bins. But at this point, we're talking data sets huge enough to be VASTLY larger than main memory.

    I guess the most correct answer would be "it depends".

提交回复
热议问题