Stochastic and Worst-Case Generalized Sorting Revisited
William Kuszmaul, Shyam Narayanan
Abstract
The generalized sorting problem is a restricted version of standard comparison sorting where we wish to sortelements but only a subset of pairs are allowed to be compared. Formally, there is some known graphon theelements, and the goal is to determine the true order of the elements using as few comparisons as possible, where all comparisons () must be edges in. We are promised that if the true ordering isforan unknown permutation of the vertices, thenfor all: this Hamiltonian path ensures that sorting is actually possible. In this work, we improve the bounds for generalized sorting on both random graphs and worst-case graphs. For Erdős-Renyi random graphs(with the promised Hamiltonian path added to ensure sorting is possible), we provide an algorithm for generalized sorting with an expectedcomparisons, which we prove to be optimal for query complexity. This strongly improves over the best known algorithm of Huang, Kannan, and Khanna (FOCS 2011), which usescomparisons. For arbitrary graphswithvertices andedges (again with the promised Hamiltonian path), we provide an algorithm for generalized sorting withcomparisons. This improves over the best known algorithm of Huang et al., which usescomparisons.
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.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers1
Related papers
- Tight Bounds for Sorting Under Partial InformationIvor van der Hoog, Daniel RutschmannFOCS 2024 · 8 citations
- Optimal Bounds for Noisy SortingYuzhou Gu, Yinzhan XuSTOC 2023 · 11 citations
- Improved Approximation for Ranking on General GraphsMahsa Derakhshan, Mohammad Roghani, Mohammad Saneian, Tao YuSODA 2026
- Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 citations
- Query Complexity of Inversion Minimization on TreesIvan Hu, Dieter van Melkebeek, Andrew MorganSODA 2023 · 1 citation
