This work studies Random-Order Online Sorting, a model interpolating between the adversarial and stochastic settings, that was posed as a challenging open question by Hermansen (ESA'26), and proves an O(\log^2 n)-competitive algorithm with high probability, matching the state-of-the-art high probability guarantee for the stochastic setting in this more general model.
Abstract
In Online Sorting, we are given an array $A$ of $n$ initially empty cells. At each time step $t\in[n]$, an element $x_t\in[0,1]$ arrives and must be placed irrevocably into an empty cell, without knowledge of future arrivals. The objective is to minimize the sum of absolute differences between elements assigned to adjacent cells. The problem has been studied under both adversarial and stochastic input models. For adversarial sequences, Aamand, Abrahamsen, Beretta, and Kleist (SODA'23) gave a tight $O\sqrt n)$-competitive algorithm, fully resolving the worst-case setting. For stochastic sequences, in which the elements are drawn i.i.d.\ from $U[0,1]$, Hu (SODA'26) gave an $\log n\cdot 2^{O(\log^* n)}$-competitive algorithm in expectation and proved an $\Omega(\log n)$ lower bound, while Kalavas, Platanos, and Tolias (STACS'26) gave an $O(\log^2 n)$-competitive algorithm with high probability. Very recently, Hermansen (ESA'26) closed the remaining gap by designing an $O(\log n)$-competitive algorithm in expectation. In this work, we study Random-Order Online Sorting, a model interpolating between the adversarial and stochastic settings, that was posed as a challenging open question by Hermansen (ESA'26). Here, the input is a multiset chosen adversarially, but its elements arrive in uniformly random order. We take a different point of view by solving the problem in rank space, and prove an $O(\log^2 n)$-competitive algorithm with high probability, matching the state-of-the-art high probability guarantee for the stochastic setting in this more general model. We also study a multidimensional generalization, which we call Random-Order Online TSP, and obtain an $O(\log^3 n)$-competitive algorithm with high probability.
A random preview can replace worst-case sequential complexity by classical statistical dimensions without randomizing the online order by using an online analogue of chaining, implemented as a multiscale aggregation algorithm rather than only as an analytic argument.
Suppose an online algorithm is given an unbiased $p$-sample of its input as offline advice; can the algorithm exploit the sample to achieve beyond-worst-case performance? We study this online algorithms with a sample (OAS) model. We show a tight $O\left(\log (1/p) \cdot \log m + \log n\right)$-competitive algorithm for...
A. Hebbar, Ravi Kumar, Roie Levin et al.· 0 citations
We study online allocation problems where $n$ requests over $m$ resources arrive in an adversarial order and must be served immediately and irrevocably. This framework captures both Online Resource Allocation, where the goal is to maximize value subject to resource budgets, and Online Load Balancing, where the goal is...
Matthew Faw, Sahil Singla, Yi-Fan Wang· 0 citations
We study the online allocation of indivisible goods among $n$ agents, where each good must be allocated immediately and irrevocably upon arrival. Against an adaptive adversary, Neoh and Teh [2026] proved that no algorithm can guarantee a positive approximation to proportionality up to one good (PROP1) that is independe...
Saar Cohen, Nicholas J. Teh, Michael Wooldridge· 0 citations
Setting $m=1$ proves that the $\log K$ for ordinary $K$-armed bandits against adaptive non-anticipating adversaries is unavoidable, closing the remaining $\sqrt{\log K}$ gap between confidence-tuned upper and lower bounds left by Gerchinovitz and Lattimore.
F. Bacchiocchi, Tommaso Cesari, Roberto Colomboni· 1 citation
A set of intervals $I = \{ I_1, I_2, \dots, I_n \}$ forms a simple chain if, for every $2\leq i \leq n-1$, interval $I_i$ overlaps only with $I_{i-1}$ and $I_{i+1}$. We show that a deterministic memoryless one-directional revoking algorithm achieves a competitive ratio of $2(1 - 1/\sqrt{e}) \approx 0.786$ on the simple...
Ya-Qiao Li, Ali Mohammad Lavasani, Denis Pankratov· Theoretical Computer Science· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.