Optimal Sorting with Persistent Comparison Errors

04/20/2018
by   Barbara Geissmann, et al.
0

We consider the problem of sorting n elements in the case of persistent comparison errors. In this model (Braverman and Mossel, SODA'08), each comparison between two elements can be wrong with some fixed (small) probability p, and comparisons cannot be repeated. Sorting perfectly in this model is impossible, and the objective is to minimize the dislocation of each element in the output sequence, that is, the difference between its true rank and its position. Existing lower bounds for this problem show that no algorithm can guarantee, with high probability, maximum dislocation and total dislocation better than Ω( n) and Ω(n), respectively, regardless of its running time. In this paper, we present the first O(n n)-time sorting algorithm that guarantees both O( n) maximum dislocation and O(n) total dislocation with high probability. Besides improving over the previous state-of-the art algorithms -- the best known algorithm had running time Õ(n^3/2) -- our result indicates that comparison errors do not make the problem computationally more difficult: a sequence with the best possible dislocation can be obtained in O(n n) time and, even without comparison errors, Ω(n n) time is necessary to guarantee such dislocation bounds. In order to achieve this optimal result, we solve two sub-problems, and the respective methods have their own merits for further application. One is how to locate a position in which to insert an element in an almost-sorted sequence having O( n) maximum dislocation in such a way that the dislocation of the resulting sequence will still be O( n). The other is how to simultaneously insert m elements into an almost sorted sequence of m different elements, such that the resulting sequence of 2m elements remains almost sorted.

READ FULL TEXT
research
08/09/2018

Longest Increasing Subsequence under Persistent Comparison Errors

We study the problem of computing a longest increasing subsequence in a ...
research
02/24/2023

Optimal Bounds for Noisy Sorting

Sorting is a fundamental problem in computer science. In the classical s...
research
05/05/2018

A Nearly Optimal Algorithm for Approximate Minimum Selection with Unreliable Comparisons

We consider the approximate minimum selection problem in presence of ind...
research
05/09/2018

Optimally Sorting Evolving Data

We give optimal sorting algorithms in the evolving data framework, where...
research
02/01/2019

A note on self-improving sorting with hidden partitions

We study self-improving sorting with hidden partitions. Our result is an...
research
05/03/2022

Approximate Selection with Unreliable Comparisons in Optimal Expected Time

Given n elements, an integer k and a parameter ε, we study to select an ...
research
03/12/2018

Sorting by Swaps with Noisy Comparisons

We study sorting of permutations by random swaps if each comparison give...

Please sign up or login with your details

Forgot password? Click here to reset