Skip to main content
QUICK REVIEW

[Paper Review] Maximum Selection and Sorting with Adversarial Comparators and an Application to Density Estimation

Jayadev Acharya, Moein Falahatgar|arXiv (Cornell University)|Jun 9, 2016
Machine Learning and AlgorithmsComputer Science13 references4 citations
TL;DR

This paper studies maximum selection and sorting under adversarial comparators that return the larger value only if inputs differ by more than a threshold Δ; otherwise, outcomes are arbitrarily chosen. It presents efficient algorithms—using at most 2n comparisons in expectation for maximum selection and 2n ln n for sorting under non-adaptive adversaries, and O(n log(1/ε)) for maximum selection under adaptive adversaries—resolving an open problem and enabling faster density estimation with the same approximation guarantee.

ABSTRACT

We study maximum selection and sorting of $n$ numbers using pairwise comparators that output the larger of their two inputs if the inputs are more than a given threshold apart, and output an adversarially-chosen input otherwise. We consider two adversarial models. A non-adaptive adversary that decides on the outcomes in advance based solely on the inputs, and an adaptive adversary that can decide on the outcome of each query depending on previous queries and outcomes. Against the non-adaptive adversary, we derive a maximum-selection algorithm that uses at most $2n$ comparisons in expectation, and a sorting algorithm that uses at most $2n \ln n$ comparisons in expectation. These numbers are within small constant factors from the best possible. Against the adaptive adversary, we propose a maximum-selection algorithm that uses $Θ(n\log (1/ε))$ comparisons to output a correct answer with probability at least $1-ε$. The existence of this algorithm affirmatively resolves an open problem of Ajtai, Feldman, Hassadim, and Nelson. Our study was motivated by a density-estimation problem where, given samples from an unknown underlying distribution, we would like to find a distribution in a known class of $n$ candidate distributions that is close to underlying distribution in $\ell_1$ distance. Scheffe's algorithm outputs a distribution at an $\ell_1$ distance at most 9 times the minimum and runs in time $Θ(n^2\log n)$. Using maximum selection, we propose an algorithm with the same approximation guarantee but run time of $Θ(n\log n)$.

Motivation & Objective

  • Address the challenge of maximum selection and sorting when comparators are adversarial: correct only when inputs differ by more than a threshold Δ, otherwise arbitrary.
  • Analyze two adversarial models: non-adaptive (outcomes fixed in advance) and adaptive (outcomes depend on prior queries).
  • Design algorithms with low comparison complexity that achieve high-probability correctness and near-optimal performance.
  • Apply the results to density estimation, improving runtime from Θ(n² log n) to Θ(n log n) while preserving a 9× approximation guarantee.

Proposed method

  • Propose a maximum-selection algorithm using at most 2n comparisons in expectation under the non-adaptive adversary model.
  • Design a sorting algorithm using at most 2n ln n comparisons in expectation under the non-adaptive adversary model.
  • Introduce a maximum-selection algorithm with O(n log(1/ε)) comparisons under the adaptive adversary model, achieving correctness with probability at least 1−ε.
  • Leverage quick-sort with randomized pivoting, showing that its expected query complexity is bounded by the noiseless case (f(n) = 2n ln n − (4−2γ)n + 2 ln n + O(1)) under non-adaptive noise.
  • Prove that quick-sort maintains zero 2-approximation error under adversarial comparators, as long as input differences exceed Δ.
  • Apply the maximum selection algorithm to density estimation by treating candidate distributions as elements to compare via sample-based distance estimation.

Experimental results

Research questions

  • RQ1What is the minimum number of comparisons required to find the maximum element when comparators are adversarial and only correct if inputs differ by more than Δ?
  • RQ2Can a sorting algorithm be designed with near-optimal comparison complexity under adversarial comparators, particularly in the non-adaptive model?
  • RQ3How does the adaptive adversary model affect the complexity of maximum selection, and can a high-probability guarantee be achieved with sublinear query overhead?
  • RQ4Can the proposed comparator model be used to improve the runtime of density estimation algorithms without sacrificing approximation quality?
  • RQ5What structural properties of comparison graphs (e.g., in-degrees and out-degrees) ensure optimal performance in adversarial comparison models?

Key findings

  • Under the non-adaptive adversary model, a maximum-selection algorithm uses at most 2n comparisons in expectation, within a small constant factor of the information-theoretic lower bound.
  • For sorting under the non-adaptive adversary, the proposed algorithm uses at most 2n ln n comparisons in expectation, matching the performance of merge sort up to constant factors.
  • Under the adaptive adversary model, a maximum-selection algorithm achieves correctness with probability at least 1−ε using O(n log(1/ε)) comparisons, resolving an open problem posed by Ajtai et al. (2015).
  • The quick-sort algorithm maintains zero 2-approximation error under adversarial comparators, as long as input differences exceed Δ, due to the structure of comparator behavior.
  • The expected query complexity of quick-sort under non-adaptive adversarial comparators is bounded by the noiseless case, f(n) = 2n ln n − (4−2γ)n + 2 ln n + O(1), due to favorable pivot distribution.
  • Applying the maximum selection algorithm to density estimation reduces the runtime from Θ(n² log n) (Scheffé’s algorithm) to Θ(n log n), while preserving the 9× approximation guarantee for ℓ₁ distance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.