Generalized Sorting via Four-Cycles
Abstract
We study the generalized sorting problem where only a subset of the pairs can be compared. Equivalently, we are given an -vertex -edge graph where the vertex set is to be sorted, and the edge set indicates possible comparisons. The goal is to sort with as few (adaptive) queries to as possible. When is the complete graph, the problem is equivalent to standard sorting for which queries are sufficient and necessary. All classical sorting algorithms crucially rely on the ability to compare any pair and do not imply an -query algorithm in the general case. This was improved 15 years ago by Huang, Kannan, and Khanna [FOCS'11] who achieved a bound of . Kuszmaul and Narayanan [FOCS'21] later gave a bound of , which is more efficient for sparse graphs, but matches the barrier for dense graphs. In this paper, we present an algorithm for generalized sorting that makes at most queries, therefore breaking the longstanding barrier for all graphs. The key to our result is to query edges that belong to many (specific types of) four-cycles. We show that querying such edges allows the algorithm to verify the direction of many other edges (specifically, their opposing edges in the four-cycles) and thus achieve a much better amortized query cost.
Create a lesson
Metadata
- Comments
- 22 pages, 2 figures
Related papers
A Near-Optimal Generalized Sorting Algorithm
Shared title terminologycs.DSSanjeev Khanna, Aaron Putterman, Junkai Song
Minimizing Total Busy Time with Bounded Parallelism: A 3/2-Approximation for Parallelism Two and a Forest Characterization for General Parallelism
Shared title terminologycs.DSChi-Yeh Chen
Tight Analysis for Online Generalized Network Design with Power Functions
Shared title terminologycs.DSKarl Li, Yanzhi Li, Viswanath Nagarajan
Revisiting Generalized Median Estimators: Exact Bitwise Computation and Gray Code Acceleration
Shared title terminologycs.DSRobin Nunkesser
Tight Bounds for Distance-Unbiased Sorting
Shared title terminologycs.DSMats Bierwirth, Carola Doerr, Johannes Lengler
Sorting by block-reversals: closing the gap
Shared title terminologycs.DSLászló Kozma