cs.DS — Data Structures and Algorithms
An Optimal Deterministic Adversary for Sorting
This paper describes an optimal deterministic, polynomial-time adversary for ordinary sorting. For any correct sorting algorithm, the adversary forces that algorithm to make comparisons. The best previously known adversary forced comparisons. The adversary recursively moves items into ordered subproblems, extending the classical framework in which items move down a binary tree.
Primarily AI-generated textHuman understanding: some parts