计算机科学 > 数据结构与算法
[提交于 2003年12月23日]
标题:Partitioning schemes for quicksort and quickselect
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We introduce several modifications of the partitioning schemes used in Hoare's quicksort and quickselect algorithms, including ternary schemes which identify keys less or greater than the pivot. We give estimates for the numbers of swaps made by each scheme. Our computational experiments indicate that ternary schemes allow quickselect to identify all keys equal to the selected key at little additional cost.
提交历史
来自:Krzysztof C. Kiwiel[v1] 2003年12月23日 星期二 03:47:55 UTC