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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7c60501a-d781-429b-a18e-0d732cb5d16aCited by top-tier papers1
Ask how each one uses itRelated 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
