Improved Online Sorting
Data Structures and Algorithms
2025-08-21 v1
Abstract
We study the online sorting problem, where real numbers arrive in an online fashion, and the algorithm must immediately place each number into an array of size before seeing the next number. After all numbers are placed into the array, the cost is defined as the sum over the absolute differences of all 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 , and a lower bound of for deterministic algorithms. We obtain a deterministic algorithm with quasi-polylogarithmic cost . Concurrent and independent work by Azar, Panigrahi, and Vardi achieves polylogarithmic cost .
Keywords
Cite
@article{arxiv.2508.14361,
title = {Improved Online Sorting},
author = {Jubayer Nirjhor and Nicole Wein},
journal= {arXiv preprint arXiv:2508.14361},
year = {2025}
}
Comments
10 pages