Lune

SODA2024Top-tier venue

Sorting and Selection in Rounds with Adversarial Comparisons

Christopher Trevisan

Abstract

We continue the study of selection and sorting of n numbers under the adversarial comparator model, where comparisons can be adversarially tampered with if the arguments are sufficiently close.

We derive a randomized sorting algorithm that does O(n log 2 n) comparisons and gives a correct answer with high probability, addressing an open problem of Ajtai, Feldman, Hassadim, and Nelson [AFHN15]. Our algorithm also implies a selection algorithm that does O(n log n) comparisons and gives a correct answer with high probability. Both of these results are a log factor away from the naive lower bound. [AFHN15] shows an Ω(n 1+ε ) lower bound for both sorting and selection in the deterministic case, so our results also prove a discrepancy between what is possible with deterministic and randomized algorithms in this setting.

We also consider both sorting and selection in rounds, exploring the tradeoff between accuracy, number of comparisons, and number of rounds. Using results from sorting networks, we give general algorithms for sorting in d rounds where the number of comparisons increases with d and the accuracy decreases with d. Using these algorithms, we derive selection algorithms in d + O(log d) rounds that use the same number of comparisons as the corresponding sorting algorithm, but have a constant accuracy. Notably, this gives selection algorithms in d rounds that use n 1+o(1) comparisons and have constant accuracy for all d = ω(1), which still beats the deterministic lower bound of Ω(n 1+ε ).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on1

  1. Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 citations

Related papers

  1. Nearly Tight Bounds for the Online Sorting ProblemYossi Azar, Debmalya Panigrahi, Or VardiSODA 2026
  2. Optimal Bounds for Noisy SortingYuzhou Gu, Yinzhan XuSTOC 2023 · 11 citations
  3. Fast and Simple Sorting Using Partial InformationBernhard Haeupler, Richard Hladík, John Iacono, Václav Rozhon et al.SODA 2025 · 3 citations
  4. Naively Sorting Evolving Data is Optimal and RobustGeorge Giakkoupis, Marcos Kiwi, Dimitrios LosFOCS 2024
  5. Sorting with PredictionsXingjian Bai, Christian CoesterNeurIPS 2023 · 29 citations
Dusk over the sea between two cliffs drawn in fine vertical lines