返回
A sorting algorithm based on ordered block insertions
DOI:10.1016/j.jocs.2022.101866.png)
摘要
En 中文
Among the comparison-based algorithms, INSERTIONSORT is recognized as one of the fastest methods to sort relatively small data sets, or when the elements are relatively ordered. However, due to not offering good asymptotic complexity in its runtime, it performs very poorly both in the worst case and in the average case for most large data collections. In this article we offer a new sorting algorithm based on orderer block insertions with worst case optimal time. At the cost of an additional memory space of nk words, for any constant k, our algorithm is able to easily transform it into an in-place algorithm with a time of symbolscript in the worst case. Empirically, our method outperforms symbolscript in all the different cases tested, even for small input collections. Furthermore, our experiments show that, for small or large datasets from either of the two main probability distributions-Uniform and Normal; our algorithms also outperform any traditional method like symbolscript symbolscript or symbolscript and even better than the efficient hybrid algorithm symbolscript symbolscript method provided by the GNU C++ Standard Library.
Keyword:
Sorting algorithm
Insertionsort
Optimal time sorting
期刊
IF:
18.3
论文数:
3.1K
被引数:
7.1K
机构
引用论文
The singularity of the two-fluid plasma equations, its relations to boundary conditions, and the numerical solution of these equations两种流体等离子体方程的奇异性、其与边界条件的关系以及这些方程的数值解
Influence of the temperature of positive ions on the sheath formation and parameter space region in magnetized electronegative plasmas正离子温度对磁化电负性等离子体中鞘层形成及参数空间区域的影响

