Towards universally optimal sorting algorithms
Sandeep Sen
TL;DR
The paper addresses how sorting efficiency can be made universally optimal by conditioning on input-dependent parameters beyond size, challenging the traditional $\Omega(n \log n)$ worst-case benchmark. It develops an oblivious, partition-sort-based approach guided by a new $\alpha$-sorted subsequence measure, achieving a bound $O\left(\sum_{i=1}^{k} n_i \log\left(\frac{n}{n_i}+1\right)\right)$, with a matching lower bound expressed via $H(\cdot)$. By linking to SUS/SMS, multisorting, and universal optimality, the work broadens adaptive sorting theory and provides a framework for input-structure-aware algorithm design. Practically, it proposes methods that adapt to input structure without explicit parameter estimation, suggesting a versatile paradigm for universal optimality applicable to broader computational problems.
Abstract
We formalize a new paradigm for optimality of algorithms, that generalizes worst-case optimality based only on input-size to problem-dependent parameters including implicit ones. We re-visit some existing sorting algorithms from this perspective, and also present a novel measure of sortedness that leads to an optimal algorithm based on partition sort. This paradigm of measuring efficiency of algorithms looks promising for further interesting applications beyond the existing ones.
