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

原地结合排列排序

In-place associative permutation sort

A. Emre Cetin

摘要:

就地关联整数排序技术是针对不同整数而开发、改进和专门化的。该技术适用于整数排序。因此,给定n个整数S[0. n-1],该技术按升序或降序对整数进行排序。它取代了桶排序,分布计数排序和地址计算排序算法家族,并且只需要恒定数量的额外内存来存储输入列表旁边的计数器和索引。该技术的灵感来自于“行为序列”的有序理论之一,并通过与认知神经科学中记忆形成和检索的三个主要阶段的类比来解释:(i)练习,(ii)存储和(iii)检索。在这项研究中,就地关联置换技术被引入整数密钥排序问题。给定n个元素的列表S[0. n-1]中的每一个都有一个在[0,m-1]范围内的整数键,如果m<=n,则该技术仅使用O(1)的内存量,在O(n)时间内根据它们的整数键对元素进行排序。另一方面,如果m>n,它在O(n+m)时间内排序最坏的情况,O(m)时间平均(均匀分布的键)和O(n)时间最好的情况下使用O(1)额外空间。

英文摘要:

In-place associative integer sorting technique was developed, improved and specialized for distinct integers. The technique is suitable for integer sorting. Hence, given a list S of n integers S[0...n-1], the technique sorts the integers in ascending or descending order. It replaces bucket sort, distribution counting sort and address calculation sort family of algorithms and requires only constant amount of additional memory for storing counters and indices beside the input list. The technique was inspired from one of the ordinal theories of "serial order in behavior" and explained by the analogy with the three main stages in the formation and retrieval of memory in cognitive neuroscience: (i) practicing, (ii) storing and (iii) retrieval. In this study in-place associative permutation technique is introduced for integer key sorting problem. Given a list S of n elements S[0...n-1] each have an integer key in the range [0,m-1], the technique sorts the elements according to their integer keys in O(n) time using only O(1) amount of memory if m<=n. On the other hand, if m>n, it sorts in O(n+m) time for the worst, O(m) time for the average (uniformly distributed keys) and O(n) time for the best case using O(1) extra space.

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

↑