一种针对持久随机比较故障的最优排序算法
An Optimal Sorting Algorithm for Persistent Random Comparison Faults
AI总结:
本文针对持久随机比较错误下的排序问题,提出首个 $O(n\log n)$ 时间算法,在 $p<1/4$ 时以高概率实现 $O(\log n)$ 最大错位和 $O(n)$ 总错位,并证明这些界是最优的。
摘要:
我们考虑在持久随机比较错误条件下对 $n$ 个元素进行排序的问题。在该问题中,两个元素之间的每次比较都可能以某个固定(较小)概率 $p$ 出错,并且对同一对元素进行多次比较总是得到相同的结果。在该模型下不可能实现完美排序,目标是最小化输出序列中每个元素的错位,即其在序列中的位置与其真实排名之间的差值。本文提出了第一个 $O(n\log n)$ 时间的排序算法,当 $p<\frac{1}{4}$ 时,该算法以高概率同时保证 $O(\log n)$ 的最大错位和 $O(n)$ 的总错位。这解决了在给定 $p$ 范围内具有持久比较错误的排序的时间复杂度问题,并表明比较错误不会增加其计算难度。事实上,即使没有比较错误,要实现 $O(\log n)$ 的最大错位也需要 $Ω(n\log n)$ 时间。此外,我们证明没有任何算法能够以高概率保证 $o(\log n)$ 的最大错位,也无法在期望意义上保证 $o(n)$ 的总错位。为了设计我们的排序算法,我们解决了两个相关的子问题,这些子问题可能具有独立的研究价值。更准确地说,我们证明 $O(\log n)$ 时间足以在一个包含 $n$ 个元素、最大错位至多为 $d=Ω(\log n)$ 的近似有序序列 $S$ 中找到一个插入新元素 $x$ 的位置,使得 $x$ 在结果序列中的错位以高概率为 $O(d)$(这可以等价地看作估计 $x$ 在 $S$ 中的排名的问题)。我们还证明,一个包含 $n$ 个元素的近似有序序列 $S$ 的最大(相应地,总)错位可以在 $O(nd)$ 时间内以高概率降低到 $O(\log n)$(相应地,$O(n)$),其中 $d$ 是 $S$ 最大错位的一个上界。
英文摘要:
We consider the problem of sorting $n$ elements subject to persistent random comparison errors. In this problem, each comparison between two elements can be wrong with some fixed (small) probability $p$, and comparing the same pair of elements multiple times always yields the same result. Sorting perfectly in this model is impossible, and the objective is to minimize the dislocation of each element in the output sequence, i.e., the difference between its position in the sequence and its true rank. In this paper, we present the first $O(n\log n)$-time sorting algorithm that guarantees both $O(\log n)$ maximum dislocation and $O(n)$ total dislocation with high probability when $p<\frac{1}{4}$. This settles the time complexity sorting with persistent comparison errors in the given range of $p$ and shows that comparison errors do not increase its computational difficulty. Indeed, $Ω(n\log n)$ time is necessary to archive a maximum dislocation of $O(\log n)$ even without comparison errors. Moreover, we prove that no algorithm can guarantee a maximum dislocation of $o(\log n)$ with high probability, nor a total dislocation of $o(n)$ in expectation. To develop our sorting algorithm, we solve two related sub-problems, which might be of independent interest. More precisely, we show that $O(\log n)$ time suffices to find a position in which to insert a new element $x$ in an almost-sorted sequence $S$ of $n$ elements having dislocation at most $d=Ω(\log n)$, so that the dislocation of $x$ in the resulting sequence is $O(d)$ with high probability (which can be equivalently thought as the problem of estimating the rank of $x$ in $S$). We also show that the maximum (resp. total) dislocation of an approximately sorted sequence $S$ of $n$ elements can be lowered to $O(\log n)$ (resp. $O(n)$) in $O(nd)$ time, w.h.p., where $d$ is an upper bound on the maximum dislocation of $S$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。