arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1403.2777cs.DS
收藏

时间复杂度为O(n log n)的排序算法

Zig-zag Sort: A Simple Deterministic Data-Oblivious Sorting Algorithm Running in O(n log n) Time

Michael T. Goodrich

摘要:

我们描述和分析曲折排序-一个确定性的数据不经意的排序算法运行在O(n log n)的时间,可以说是简单的比以前已知的算法具有类似的属性,这是基于AKS排序网络。因为它是数据不经意和确定性的,所以曲折排序可以实现为一个简单的O(n log n)大小的排序网络,从而为Incerpi和Sedgewick在1985年提出的一个开放问题提供了解决方案。此外,Zig-zag Sort是Shellsort的一个变体,实际上是第一个在O(n log n)时间内运行的确定性Shellsort变体。Plaxton等人在1992年和Sedgewick在1996年提出了这样一个算法的存在性问题。然而,与今天更相关的事实是,在O(n log n)时间内运行的简单数据不经意确定性排序算法的存在简化了几种提议的遗忘RAM模拟方法(其利用AKS排序网络)中的内部循环计算,并且这反过来意味着在几种云计算应用中用于隐私保护数据外包的简化机制。我们提供了曲折排序的建设性和非建设性的实现,基于被称为ε-halver的电路的存在,使得在我们的建设性实现中的常数因子比AKS排序网络的建设性变体的常数因子小几个数量级,AKS排序网络的建设性变体也基于ε-halver的使用。

英文摘要:

We describe and analyze Zig-zag Sort--a deterministic data-oblivious sorting algorithm running in O(n log n) time that is arguably simpler than previously known algorithms with similar properties, which are based on the AKS sorting network. Because it is data-oblivious and deterministic, Zig-zag Sort can be implemented as a simple O(n log n)-size sorting network, thereby providing a solution to an open problem posed by Incerpi and Sedgewick in 1985. In addition, Zig-zag Sort is a variant of Shellsort, and is, in fact, the first deterministic Shellsort variant running in O(n log n) time. The existence of such an algorithm was posed as an open problem by Plaxton et al. in 1992 and also by Sedgewick in 1996. More relevant for today, however, is the fact that the existence of a simple data-oblivious deterministic sorting algorithm running in O(n log n) time simplifies the inner-loop computation in several proposed oblivious-RAM simulation methods (which utilize AKS sorting networks), and this, in turn, implies simplified mechanisms for privacy-preserving data outsourcing in several cloud computing applications. We provide both constructive and non-constructive implementations of Zig-zag Sort, based on the existence of a circuit known as an epsilon-halver, such that the constant factors in our constructive implementations are orders of magnitude smaller than those for constructive variants of the AKS sorting network, which are also based on the use of epsilon-halvers.

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

↑