A Near-Optimal Generalized Sorting Algorithm
Sanjeev Khanna, Aaron Putterman, Junkai Song
Key points
From the paper's conclusion- Thus, up to logarithmic factors, generalized sorting is no harder than ordinary sorting.
Abstract
We continue the study of the classic \emph{generalized sorting problem}, a basic variant of ordinary sorting. There are $n$ elements and an (initially hidden) total ordering $\pi$ over them. Unlike in ordinary sorting, however, only \emph{some} comparisons are allowed: those given by the edges of an undirected graph $G = (V, E)$ on the elements. How many comparisons are needed to find the total ordering? In ordinary sorting, $\Theta(n \log n)$ comparisons are necessary and sufficient. For generalized sorting, however, the best known upper bound has been $\tilde{O}(n^{3/2})$ since the work of Huang, Kannan, and Khanna (FOCS 2011), who even asked whether the problem might in fact require $n^{1+\Omega(1)}$ comparisons. We show that it does not: we give a randomized algorithm that uses $O(n \log^4 n)$ comparisons in expectation. Thus, up to logarithmic factors, generalized sorting is no harder than ordinary sorting.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Generalized Sorting via Four-CyclesarXiv · 2026
- Fast and Simple Sorting Using Partial Information.Algorithmica · 2026
- Should Tables Be Sorted? Revisited with a Large Language ModelarXiv · 2026
- Cliques, Quasi-Cliques, and Bicliques in Random Graphs: Sampling and AlgorithmsarXiv · 2026
- Shellsort with $O(n\log n)$ Average-Case ComplexityarXiv · 2026
- The Online Steinitz ProblemarXiv · 2026