arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1206.3511cs.DS
收藏

桶排序与RADIX排序的比较

Comparison of Bucket Sort and RADIX Sort

Panu Horsmalahti

摘要:

桶排序和RADIX排序是两个著名的整数排序算法。本文以经验的方法测量了不同类型的输入序列的时间消耗和内存消耗。这些算法既从理论的角度进行了比较,也从使用随机数字序列的六种不同用例中进行了比较。这些测量提供了关于它们在不同现实生活情况下的表现的数据。我们发现桶排序比RADIX排序更快,但是桶排序在大多数情况下使用更多的内存。排序算法对较小的整数执行得更快。对于已经排序的输入,RADIX排序并不快,但是桶排序快。

英文摘要:

Bucket sort and RADIX sort are two well-known integer sorting algorithms. This paper measures empirically what is the time usage and memory consumption for different kinds of input sequences. The algorithms are compared both from a theoretical standpoint but also on how well they do in six different use cases using randomized sequences of numbers. The measurements provide data on how good they are in different real-life situations. It was found that bucket sort was faster than RADIX sort, but that bucket sort uses more memory in most cases. The sorting algorithms performed faster with smaller integers. The RADIX sort was not quicker with already sorted inputs, but the bucket sort was.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑