Generalized Sorting within an Factor of Optimal
arXiv:2612.06291
Abstract
In generalized sorting (Huang, Kannan, and Khanna, FOCS, 2011), one aims to order a set of vertices using a restricted set of comparisons specified by a known graph. The near-optimal algorithm of Khanna, Putterman, and Song (2026) solves this problem with expected comparisons whenever the hidden order is identifiable. We refine their method for predicting edge directions to recover the hidden order using expected comparisons. This brings the upper bound within a factor of of the worst-case lower bound.