A Near-Optimal Generalized Sorting Algorithm
Sanjeev Khanna, Aaron Putterman, Junkai Song
Abstract
We continue the study of the classic generalized sorting problem, a basic variant of ordinary sorting. There are n elements and an (initially hidden) total ordering π over them. Unlike in ordinary sorting, however, only 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, Θ(n n) comparisons are necessary and sufficient. For generalized sorting, however, the best known upper bound has been O(n3/2) since the work of Huang, Kannan, and Khanna (FOCS 2011), who even asked whether the problem might in fact require n1+Ω(1) comparisons. We show that it does not: we give a randomized algorithm that uses O(n 4 n) comparisons in expectation. Thus, up to logarithmic factors, generalized sorting is no harder than ordinary sorting.
Create a lesson
Related papers
Canonical Cut Hierarchy in Almost-Linear Time via Reduction to Max-Flow
Karthekeyan Chandrasekaran, Harshul Sagar
Connectivity in a New Bounded-Space Dynamic Model
Bardiya Aryanfard, Monika Henzinger, John Kuszmaul et al.
Minimum-Cost k-Arborescence Packing in O(km+k4 n) Time
Zhaienhe Zhou
All minimum cuts of symmetric submodular functions
Chao Xu
Counting over Unbreakable Decompositions: A Single-Exponential Parameterized Algorithm for Minimum Bisection
Aditya Anand, Evangelos Kipouridis, Karol Węgrzycki
Sum-of-Squares Refutation Implies Planted Recovery for Semirandom CSPs
Arpon Basu, Andrew D. Lin, Peter Manohar