betaFeedback

WorksComputer Science

A Near-Optimal Generalized Sorting Algorithm

Abstract

We continue the study of the classic generalized sorting problem, a basic variant of ordinary sorting. There are nn 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)G = (V, E) on the elements. How many comparisons are needed to find the total ordering? In ordinary sorting, Θ(nlog⁡n)Θ(n \log n) comparisons are necessary and sufficient. For generalized sorting, however, the best known upper bound has been O~(n3/2)\tilde{O}(n^{3/2}) since the work of Huang, Kannan, and Khanna (FOCS 2011), who even asked whether the problem might in fact require n1+Ω(1)n^{1+Ω(1)} comparisons. We show that it does not: we give a randomized algorithm that uses O(nlog⁡4n)O(n \log^4 n) comparisons in expectation. Thus, up to logarithmic factors, generalized sorting is no harder than ordinary sorting.

Paper details

vlnc:W_jw2buw8p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC-BY-NC-SA-4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT 6-Astra, ChatGPT 6-Astra Ultra/Pro, 6.1-Sol Ultra

View statement
Looking for related papers…