arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0305005cs.DScs.CC
收藏

时间复杂度为O(n),时间复杂度为O(n)

An In-Place Sorting with O(n log n) Comparisons and O(n) Moves

Gianni Franceschini, Viliam Geffert

摘要:

我们提出的第一个就地算法排序的大小为n的数组,执行,在最坏的情况下,最多O(n log n)的元素比较和O(n)的元素传输。这解决了一个长期存在的公开问题,明确指出,例如,在[J. I. Munro和V. Raman,Sorting with minimum data movement,J. Algorithms,13,374-93,1992],是否存在同时匹配所有计算资源上的渐近下界的排序算法。

英文摘要:

We present the first in-place algorithm for sorting an array of size n that performs, in the worst case, at most O(n log n) element comparisons and O(n) element transports. This solves a long-standing open problem, stated explicitly, e.g., in [J.I. Munro and V. Raman, Sorting with minimum data movement, J. Algorithms, 13, 374-93, 1992], of whether there exists a sorting algorithm that matches the asymptotic lower bounds on all computational resources simultaneously.

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

↑