Skip to content

Polynomial-Time Generalized Sorting via Compressed Error Isolation

Brendan Mumey

cs.DS

Abstract

In generalized sorting, comparisons are restricted to the edges of a known undirected graph on nn vertices, and the unknown total order is promised to form a Hamiltonian path in that graph. Khanna, Putterman, and Song recently obtained an expected O(nlog⁡4n)O(n\log^4 n) comparison bound, leaving polynomial running time as an open question. We give a randomized polynomial-time algorithm attaining the same comparison bound. Our main ingredient is a polynomial-time error-isolation procedure: we query sampled stars, order their centers using certified two-edge paths, and compress the ordered list of centers by a greedy neighborhood-coverage rule. The compressed list determines a small family of possible postponement sets and covers every prediction error in the sampled stars. A union bound over this family replaces the exponential permutation search. Combining repeated error isolation with the prediction-repair theorem of Lu, Ren, Sun, and Zhang yields the result.

Create a lesson