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

一种基于堆的快速排序算法
引用本文:余冬梅.一种基于堆的快速排序算法[J].科学技术与工程,2014,14(35).
作者姓名:余冬梅
作者单位:陕西理工学院数学与计算机科学学院,汉中,723000
基金项目:陕西省教育厅科学研究计划(自然科学专项)项目(2013JK0853);陕西省科学技术研究发展计划项目(2013K02-10-01);汉中市科技发展专项项目(2013hzzx-38)
摘    要:堆排序算法具有低时间复杂度和低空间复杂度的优点;但对原始序列的有序性不敏感。快速排序算法是在平均情况下公认的高速算法;但有较高空间复杂度。对两个算法扬长避短,设计了一种新的排序算法HQSort;并从理论和实例两个角度分析了该算法的效率,在不同量级的数据集上对该算法和三种经典排序算法进行了对比运行和测试,验证了该算法不仅在时间效率上优于其他算法,而且在辅助存储空间上比快速排序算法减少约50%。

关 键 词:快速排序  堆排序  算法效率  排序算法  时间复杂度  空间复杂度
收稿时间:8/4/2014 12:00:00 AM
修稿时间:2014/9/29 0:00:00

A Heap-Based Quick Sorting Algorithm
YU Dongmei.A Heap-Based Quick Sorting Algorithm[J].Science Technology and Engineering,2014,14(35).
Authors:YU Dongmei
Abstract:The advantage of heap sorting algorithm is lower complexity of time and space, but it is insensitive to the ordering of original array. Quick sorting algorithm is accepted high speed in average case, but it has higher space complexity. A new sorting algorithm named HQSort is designed, it combines advantages of the above two algorithms in this paper. The validity of HQSort is proved from two aspects of theory and instance. And a comparison study with other classical sorting algorithms is presented. The comparison is done on different data groups. This study shows that HQSort algorithm has the best performance relative to other three classical sorting algorithms, and only need less than half additional spaces of quick sorting algorithm.
Keywords:quick sort  heap sort  sorting algorithm  time complexity  space complexity
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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