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

快速排序一个低效问题的完善处理
引用本文:胡圣荣. 快速排序一个低效问题的完善处理[J]. 广州市财贸管理干部学院学报, 2008, 0(2): 62-65
作者姓名:胡圣荣
作者单位:华南农业大学工程学院,广东广州510642
摘    要:为了改善含有大量重复数据时快速排序效率低下的问题,提出了简便有效的拟3路划分算法,即每次划分时并不单独分离出等值元素以形成等值区,而是划分后及时排除基准处自然形成的等值区,从而避免了3路划分的困难,仅需对原算法做极少的修改,数值结果表明效果优于其它同类算法。

关 键 词:快速排序  3路划分  拟3路划分  算法

Perfect Treatment to a Low-efficient Problem of Quicksort
HU Sheng-rong. Perfect Treatment to a Low-efficient Problem of Quicksort[J]. Journal of Guangzhou Finance & Trade Management Institute, 2008, 0(2): 62-65
Authors:HU Sheng-rong
Affiliation:HU Sheng-rong (College of Engineering, South China Agriculture University, Guangzhou 510642, China)
Abstract:To improve the low efficiency of quicksort when sorting data with large number of equals, a simple and effective quasi 3-way partition algorithm is proposed: in partitioning the equals are not needed to draw out specially to form complete equals area, but the equals area naturally formed around the pivot is excluded immediately after partition. In this way, the complexity of 3-way partition is avoided , and very little modification is required for the general partition algorithm. Numerical results show the superiority to other similar algorithms in efficiency.
Keywords:Quieksort  3-way partition  quasi 3-way partition  algorithm
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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