Lune

FOCS2021Top-tier venue

Stochastic and Worst-Case Generalized Sorting Revisited

William Kuszmaul, Shyam Narayanan

2021Year
2Citations
1Top-tier citations

Abstract

The generalized sorting problem is a restricted version of standard comparison sorting where we wish to sortnnelements but only a subset of pairs are allowed to be compared. Formally, there is some known graphG=(V,E)G=(V, E)on thennelementsv1,…,vnv_{1, \ldots, v_{n}}, and the goal is to determine the true order of the elements using as few comparisons as possible, where all comparisons (vi,vjv_{i, v_{j}}) must be edges inEE. We are promised that if the true ordering isx1<x2<⋯<xnx_{1 < x_{2} < \cdots < x_{n}}for{xi}\{x_{i\}}an unknown permutation of the vertices{vi}\{v_{i\}}, then(xi,xi+1)∈E(x_{i, x_{i+1})\in E}for allii: 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 graphsG(n,p)G(n, p)(with the promised Hamiltonian path added to ensure sorting is possible), we provide an algorithm for generalized sorting with an expectedO(n lg(np))O(n\ \text{lg}(np))comparisons, 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 usesO(min⁡(nnp, n/p2))~\tilde{O(\min(n\sqrt{np},\ n/p^{2}))}comparisons. For arbitrary graphsGGwithnnvertices andmmedges (again with the promised Hamiltonian path), we provide an algorithm for generalized sorting withO(mn)~\tilde{O(\sqrt{mn})}comparisons. This improves over the best known algorithm of Huang et al., which usesmin⁡(m,O~(n3/2))\min(m,\tilde{O}(n^{3/2}))comparisons.

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 7c60501a-d781-429b-a18e-0d732cb5d16a

Cited by top-tier papers1

Ask how each one uses it

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines