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

一种节省空间的排序算法
引用本文:方同祝,胡正国,田铮,金文凯.一种节省空间的排序算法[J].小型微型计算机系统,2005,26(7):1200-1201.
作者姓名:方同祝  胡正国  田铮  金文凯
作者单位:西北工业大学,计算机工程与科学系,陕西,西安,710072
基金项目:国家自然科学基金(60375003)资助,航空基金(03153059)资助
摘    要:目前报道的一些排序算法,空间复杂度都比较大.提出了一种改进其空间复杂度的方法,其特点是算法简单、稳定,时间复杂度为O(n^2),空间复杂度为2n,达到下界.与传统的排序算法用变量与变量比较的思路不同,本文提出的是一种用变量与其分布区间进行比较的新思路.本算法特别适合那些范围确定且分布基本均匀的待排数据,也适合一般数据对象的排序.

关 键 词:排序  时间复杂度  空间复杂度
文章编号:1000-1220(2005)07-1200-02

Space-Minimized Sorting Algorithm
FANG Tong-zhu,HU Zheng-guo,TIAN Zheng,JIN Wen-kai.Space-Minimized Sorting Algorithm[J].Mini-micro Systems,2005,26(7):1200-1201.
Authors:FANG Tong-zhu  HU Zheng-guo  TIAN Zheng  JIN Wen-kai
Affiliation:FANG Tong-zhu,HU Zheng-guo,TIAN Zheng,JIN Wen-kai[HJ1 [HJ
Abstract:A new,simple and stable sorting algorithm,which reduces space complexity to the theoretically possible minimum, is proposed.The proposed algorithm has time complexity O(n 2) and space complexity 2n.The difference of idea between our method and the current available algorithms is that ours compares each variable with the distributing intervals,but previous sorting algorithms compare one variable with another.Experiments demonstratc the proposed algorithm is suitable for sorting general data, especially for sorting the data whose bound is given and distribution is basically even.
Keywords:sorting algorithm  time complexity  space complexity  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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