Improved Online Sorting
Abstract
We study the online sorting problem, where n real numbers arrive in an online fashion, and the algorithm must immediately place each number into an array of size (1+) n before seeing the next number. After all n numbers are placed into the array, the cost is defined as the sum over the absolute differences of all n-1 pairs of adjacent numbers in the array, ignoring empty array cells. Aamand, Abrahamsen, Beretta, and Kleist introduced the problem and obtained a deterministic algorithm with cost 2O( n · n + -1), and a lower bound of ( n / n) for deterministic algorithms. We obtain a deterministic algorithm with quasi-polylogarithmic cost (-1 n)O( n). Concurrent and independent work by Azar, Panigrahi, and Vardi achieves polylogarithmic cost O(-12 n).
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.