Online and Fully-Dynamic Sorting
Yossi Azar, Sujoy Bhore, Devdan Dey, Debmalya Panigrahi, Or Vardi, Ian Zhang
Key points
From the paper's conclusion- Without recourse, these problems face strong lower bounds on the competitive ratio: $\Omega(\sqrt{n})$ for online sorting and $\Omega(n)$ for fully-dynamic sorting.
Abstract
Online sorting asks how to place $n$ sequentially arriving elements in an array to minimize the sum of absolute differences between consecutive elements. Fully-dynamic sorting further extends the problem to allow both element insertions and deletions. Without recourse, these problems face strong lower bounds on the competitive ratio: $\Omega(\sqrt{n})$ for online sorting and $\Omega(n)$ for fully-dynamic sorting. In sharp contrast, we show that allowing only poly-logarithmic recourse yields at least exponential improvements in the competitive ratio for both problems:(1) Our main algorithmic result is a deterministic fully-dynamic sorting algorithm that is $O(\log^2 n)$-competitive and has $O(\log^4 n)$ amortized recourse per update. We complement this with a lower bound showing that any deterministic algorithm with any $O(\mathrm{polylog}(n))$ competitive ratio has amortized recourse at least $\Omega(\sqrt{\log n})$.(2) For the insertion-only setting, we establish a family of approximation--recourse tradeoffs, including $O(\log\log n)$ competitive ratio with $O(\log\log n)$ amortized recourse. Given the lower bound in the fully-dynamic case, this result shows that the insertion-only problem yields exponentially better bounds than the fully-dynamic one.(3) Finally, we show that the stronger approximation-recourse tradeoff for the insertion-only case extends to the fully-dynamic setting when the array has $(1+\varepsilon)n$ space.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Consistent Submodular Maximization with Full ForesightarXiv · 2026
- Dynamic $(\Delta+1)$-Coloring Against an Adaptive Adversary: Faster, Simpler, Worst-Case, and Bounded RecoursearXiv · 2026
- Dynamic $k$-Median with Worst-Case Update Time and RecoursearXiv · 2026
- Amortized Cell-Probe Lower Bounds for Dynamic Boolean ProblemsarXiv · 2026
- Fast and Simple Sorting Using Partial Information.Algorithmica · 2026
- Connectivity in a New Bounded-Space Dynamic ModelarXiv · 2026