[1]王代星,袁琳琳.双向交替折半插入排序法[J].计算机技术与发展,2020,30(07):25-29.[doi:10. 3969 / j. issn. 1673-629X. 2020. 07. 006]
 WANG Dai-xing,YUAN Lin-lin.A Bidirectional Alternating Binary Insertion Sort Algorithm[J].COMPUTER TECHNOLOGY AND DEVELOPMENT,2020,30(07):25-29.[doi:10. 3969 / j. issn. 1673-629X. 2020. 07. 006]
点击复制

双向交替折半插入排序法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
30
期数:
2020年07期
页码:
25-29
栏目:
智能、算法、系统工程
出版日期:
2020-07-10

文章信息/Info

Title:
A Bidirectional Alternating Binary Insertion Sort Algorithm
文章编号:
1673-629X(2020)07-0025-05
作者:
王代星1 袁琳琳2
1. 贵州大学 教育教学评估中心、高等教育研究所,贵州 贵阳 550025; 2. 贵州职业技术学院,贵州 贵阳 550023
Author(s):
WANG Dai-xing1 YUAN Lin-lin2
1. Higher Education Evaluation Center & Institute of Higher Education,Guizhou University,Guiyang 550025,China; 2. Guizhou Vocational Technology Institute,Guiyang 550023,China
关键词:
插入排序双向交替折半插入算法改进
Keywords:
insertion sortbidirectionalalternatingbinary insertion sortimproved algorithm
分类号:
TP301
DOI:
10. 3969 / j. issn. 1673-629X. 2020. 07. 006
摘要:
提出了一种 2-路插入排序法的改进算法。 首先在分析 2-路插入排序算法和其他改进算法的基础上,给出了改进算法的思想、算法描述、算法分析。 改进算法通过在待排序序列的两端交替地插入排序,有效地减少了数据移动次数。 同时保证两端的有序序列同步增长,排序在序列的中间点结束,有效地避免了 2-路插入排序效率受分界元素影响的缺点。算法的空间复杂度为 O(1) 。 实验数据证明,在对随机序列排序时,数据移动次数比折半插入排序降低了 50% 、比 2-路插入排序降低了 25% ;在对正序序列排序时,数据比较次数为 2n-3 次,数据移动次数为 0 次,而 2-路插入排序的数据比较次数为 nlog2 n 次,移动数据为 2n 次;在对逆序数据排序时,相比 2-路插入排序而言,数据比较次数降低了 47.37% ,数据移动次数降低了 25% 。
Abstract:
A new improved 2-way insertion sort algorithm is put forward. Firstly,based on the analysis of the traditional insertion sorting algorithm,2-way insertion sorting algorithm and other improved algorithms,the idea,description and analysis of the proposed algorithm are given. The proposed algorithm effectively reduces the number of data movement by alternately inserting at both ends of the sequence to be sorted. At the same time,it ensures that the ordered sequence at both ends grows synchronously,and the ordering action ends at the middle point of the sequence,and it avoids the disadvantage that the sorting efficiency of 2-way insertion sorting algorithm is affected by the first element. The spatial complexity of the proposed algorithm is O(1) . The experimental data shows that when sorting a random sequence,the number   of data moves is 50% less than the binary insertion sort and 25% less than the 2-way insertion sort; when sorting sorted sequence data,the number of data comparisons is 2n-3 times,the number of data movement is 0 times,while the number of data comparisons of 2-way insertion sort is nlog2 n times,and its number of data movement is 2n times; when ordering an inverse ordered sequence,compared with 2-way insertion sort,the number of data comparisons and data movement decreases by 47.37% and 25% .

相似文献/References:

[1]刘晓婷,周成杰. 双向全双工MIMO中继系统的自干扰消除[J].计算机技术与发展,2016,26(04):153.
 LIU Xiao-ting,ZHOU Cheng-jie. Loop-interference Suppression in Two-way Full-duplex MIMO Relay System[J].COMPUTER TECHNOLOGY AND DEVELOPMENT,2016,26(07):153.

更新日期/Last Update: 2020-07-10