arrow
返回

A sorting algorithm based on ordered block insertions

delete2022-10-01
delete1
PRE
AI
H
Héctor Ferrada *
DOI:10.1016/j.jocs.2022.101866delete
delete原文链接
delete分享
delete收藏
摘要

摘要

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

期刊

Nature Computational Science 封面图
Nature Computational Science
IF:
18.3
论文数:
3.1K
被引数:
7.1K

机构

U
universidad austral de chile
学者数:
181
论文数: 84
被引数: 1.4K
引用论文

引用论文

GPU parallel simulation algorithm of Brownian particles with excluded volume using Delaunay triangulations
err2018-08-01
err6
errOAAI
errCarter, Francisco; Hitschfeld, Nancy; Navarro, Cristobal A.; Soto, Rodrigo
err分享
err收藏
err分享
err收藏
Exact String Matching Algorithms: Survey, Issues, and Future Research Directions
err2019-01-01
err48
errOAAI
errHakak, Saqib Iqbal; Kamsin, Amirrudin; Shivakumara, Palaiahnakote; Gilkar, Gulshan Amin; Khan, Wazir Zada; Imran, Muhammad
err分享
err收藏
Impact of a Formative Program on Transgender Healthcare for Nursing Students and Health Professionals. Quasi-Experimental Intervention Study
err2019-09-02
err0
errOAAI
errJesús Manuel García-Acosta; Maria Elisa Castro-Peraza; Ángeles Arias Rodriguez; María Luisa Perez-Cánovas; Maria Inmaculada Sosa-Alvarez; Rosa Llabrés-Solé; Ana María Perdomo-Hernández; Nieves Doria Lorenzo-Rocha
err分享
err收藏
学者 查看更多内容