Sorting under Partial Information with Optimal Preprocessing Time via Unified Bound Heaps
arXiv:2604.12653
Abstract
In 1972, Fredman proposes the problem of sorting under partial information: preprocess a directed acyclic graph with vertex set so that you can sort in time, where is the number of sorted orders compatible with . Cardinal, Fiorini, Joret, Jungers and Munro [STOC'10] show that you can preprocess in time and then sort in time and comparisons. Recent work of van der Hoog and Rutschmann [FOCS'24] implies an algorithm with preprocessing time where and sorting time. Haeupler, HladÃk, Iacono, RozhoÅ, Tarjan and TÄtek [SODA'25] achieve an overall running time of . In this paper, we achieve tight bounds for this problem: preprocessing time and sorting time. As a key ingredient, we design a new fast heap data structure that might be of independent theoretical interest.
Submitted to FOCS