首页 | 本学科首页   官方微博 | 高级检索  
     

一种三路划分快速排序的改进算法
引用本文:王善坤,陶祯蓉.一种三路划分快速排序的改进算法[J].计算机应用研究,2012,29(7):2513-2516.
作者姓名:王善坤  陶祯蓉
作者单位:1. 大连理工大学城市学院网络信息中心,辽宁大连,116600
2. 四川省计算机研究院,成都,610041
摘    要:快速排序是一种经典的排序算法,它的平均性能非常突出。针对快速排序在某些特殊情况下(如数据已有序或重复数据较多时)效率较低的问题进行了研究,对三路快速排序进行改进,使快速排序在特殊情况下也能保持较好的效率。通过大量的数据测试发现,该算法在最好情况下其性能在几个数量级上优于普通快速排序,在最坏情况下,其性能较普通快速排序无明显差距。改进后的三路快速排序是一种通用高效的排序算法,因此在某些情况下选用、该算法会获得更好的效率。

关 键 词:快速排序  平均时间复杂度  三路划分快速排序  算法  排序性能

Enhanced algorithm for three-route quick sort
WANG Shan-kun,TAO Zhen-rong.Enhanced algorithm for three-route quick sort[J].Application Research of Computers,2012,29(7):2513-2516.
Authors:WANG Shan-kun  TAO Zhen-rong
Affiliation:1. Network Information Center, City Institute, Dalian University of Technology, Dalian Liaoning 116600, China; 2. Sichuan Institute of Computer Sciences, Chengdu 610041, China
Abstract:Quick sort is a kind of classic sorting method whose average operation stands out. For the low efficiency problem of the quick sort in some special caseswhen dealing with ordered or repetitive data, the algorithm improved the three-way quick sort, so that in special cases, the algorithm still maintainsed good efficiency. Large number of tests show that, in its best scenario, this calculating approach is largely superior to the ordinary ones, and in its worst scenario, it equals to the ordinary ones. The improved three-way quick sort is a general and efficient sorting algorithms , so in certain case, it may provide access to more efficiency.
Keywords:quick sort  average time complexity  three-route quick sort  algorithm  efficiency for sorting
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号