English

Optimal Bounds for Noisy Sorting

Data Structures and Algorithms 2023-03-16 v2 Information Theory math.IT

Abstract

Sorting is a fundamental problem in computer science. In the classical setting, it is well-known that (1±o(1))nlog2n(1\pm o(1)) n\log_2 n comparisons are both necessary and sufficient to sort a list of nn elements. In this paper, we study the Noisy Sorting problem, where each comparison result is flipped independently with probability pp for some fixed p(0,12)p\in (0, \frac 12). As our main result, we show that (1±o(1))(1I(p)+1(12p)log2(1pp))nlog2n(1\pm o(1)) \left( \frac{1}{I(p)} + \frac{1}{(1-2p) \log_2 \left(\frac{1-p}p\right)} \right) n\log_2 n noisy comparisons are both necessary and sufficient to sort nn elements with error probability o(1)o(1) using noisy comparisons, where I(p)=1+plog2p+(1p)log2(1p)I(p)=1 + p\log_2 p+(1-p)\log_2 (1-p) is capacity of BSC channel with crossover probability pp. This simultaneously improves the previous best lower and upper bounds (Wang, Ghaddar and Wang, ISIT 2022) for this problem. For the related Noisy Binary Search problem, we show that (1±o(1))((1δ)log2(n)I(p)+2log2(1δ)(12p)log2(1pp)) (1\pm o(1)) \left((1-\delta)\frac{\log_2(n)}{I(p)} + \frac{2 \log_2 \left(\frac 1\delta\right)}{(1-2p)\log_2\left(\frac {1-p}p\right)}\right) noisy comparisons are both necessary and sufficient to find the predecessor of an element among nn sorted elements with error probability δ\delta. This extends the previous bounds of (Burnashev and Zigangirov, 1974), which are only tight for δ=1/no(1)\delta = 1/n^{o(1)}.

Keywords

Cite

@article{arxiv.2302.12440,
  title  = {Optimal Bounds for Noisy Sorting},
  author = {Yuzhou Gu and Yinzhan Xu},
  journal= {arXiv preprint arXiv:2302.12440},
  year   = {2023}
}

Comments

To appear at STOC'23; fixed issues in the previous version

R2 v1 2026-06-28T08:48:31.988Z