计算机科学 > 数据结构与算法
[提交于 2021年6月10日]
标题:Pattern-defeating Quicksort
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A new solution for the Dutch national flag problem is proposed, requiring no three-way comparisons, which gives quicksort a proper worst-case runtime of $O(nk)$ for inputs with $k$ distinct elements. This is used together with other known and novel techniques to construct a hybrid sort that is never significantly slower than regular quicksort while speeding up drastically for many input distributions.
提交历史
来自:Orson Peters[v1] 2021年6月10日 星期四 00:00:00 UTC