Skip to content
Preprint

Sorting from Counterexamples

Aug 2026 · 0 citations · 43 references
Computer Science Mathematics

TL;DR

The optimal query complexity up to constant factors is determined: while the noiseless complexity matches the classical complexity of sorting, each untruthful counterexample incurs an additional cost of order $n$.

Abstract

Consider the following problem of learning an unknown linear order on $n$ items. In each round, the learner guesses a complete ordering of the items and receives either confirmation that the guess is correct or a counterexample: a pair of items in the wrong order. The goal is to identify the unknown order using as few queries as possible. We study this problem when up to $k$ of the returned counterexamples may be untruthful, where $k$ is not known in advance. We determine the optimal query complexity up to constant factors: \[ \Theta(n\log n + nk). \] Thus, while the noiseless complexity matches the classical complexity of sorting, each untruthful counterexample incurs an additional cost of order $n$. The upper bound is based on a geometric representation of permutations and Gr\"unbaum's theorem, while the lower bound combines sorting arguments with a Condorcet-type construction. We also study the case where the target ranking has a low-dimensional geometric representation: each item is represented by a point in $\mathbb{R}^d$, and the ranking is obtained by projecting the points onto an unknown direction. For these classes we give an upper bound of $O(d^2\log n+dk)$ and a lower bound of $\Omega(d\log n+dk)$, leaving a factor of $d$ gap in the noiseless term.

View source

Similar papers

Preprint Aug 2026

Optimal Rates for Learning with Monotone Adversaries

This model shows that adding correctly labeled examples can make learning harder by a logarithmic factor, even for classes that admit finite mistake bounds in online learning.

Anay Mehrotra · 4 citations · ⚡3
#machine learning Preprint Sep 2026

An Exponential Deterministic--Randomized Gap in ERM-Oracle Complexity for Thresholds on an Unknown Order

Attias, Hanneke and Ramaswami (NeurIPS 2025) asked whether randomization provably reduces the oracle calls needed for online learning when the class is accessible only through an oracle. We study the instance they singled out: transductive online learning of thresholds on an unknown total order of T instances, with a c...

Xuan Li · 0 citations
Conference 2026

Learning-Augmented Online Sorting and TSP

It is shown that predictions enable an algorithm that is simultaneously O (1)-consistent and O (log n )-robust for online sorting with predictions, and this result is extended to the setting of multiple predictions.

I. Bercea, G. Brodal, John Iacono et al. · 0 citations
Preprint Sep 2026

Transposition achieves OPT$+O(1)$ in polynomial time for IID list update

In the classical list update problem, a set of items must be stored in a list-type structure, where accessing the $i$-th element costs $i$. Items will be queried in an IID manner according to some probability distribution $p$ on the items. We want to minimize the expected cost of each query. The optimal order is to pla...

Clayton Mizgerd · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.