arXiv:2610.16715cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.16715

The Online Steinitz Problem

Matteo Russo, Jiaye Wei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Inspired by Steinitz’s celebrated result (1913) and recent online vector-balancing results of Kulkarni et al. (2024) and Aden-Ali (2026), we introduce the online Steinitz problem: TT vectors in Rd\mathbb{R}^d, each of ℓ2\ell_2-norm at most 1 and with total sum zero, arrive one at a time and must be assigned immediately and irrevocably to unused positions of an array. The goal is to keep every prefix sum of the resulting order small. We first obtain deterministic prefix-discrepancy bounds of O(log⁡T)O(\log T) for d=1d=1 and O(T)O(\sqrt{T}) for d≥2d\geq 2. Our main contribution is a general reduction that converts deterministic and randomized online vector-balancing algorithms, which assign signs to arriving vectors, into online ordering algorithms. Combined with recent vector-balancing results, this yields a randomized algorithm with prefix discrepancy O(log⁡T+dlog⁡T)O(\log T+\sqrt{d\log T}) and running time O(dTlog⁡T)O(dT\log T). The guarantee holds with high probability against an oblivious adversary. The reduction also gives bounds for sparse vectors and extends to inputs in arbitrary compact convex bodies. Finally, we prove matching lower bounds in both the deterministic and randomized cases.

1 Introduction

The classical Steinitz lemma asks how to order a zero-sum family of bounded vectors so that every prefix sum remains small [Ste13]. For vectors v1,…,vT∈Rdv_1, \ldots, v_T \in \mathbb{R}^d with ∥vt∥2≤1\|v_t\|_2 \leq 1 and ∑t=1Tvt=0\sum_{t=1}^T v_t = 0, the goal is to prove there exists an ordering distributes cancellation throughout the sequence instead of postponing it until the end. Indeed, Steinitz [Ste13] proved that there is a permutation π:[T]→[T]\pi: [T] \to [T] such that

max⁡0≤k≤T∥∑j=1kvπ(j)∥2≤d.\max_{0\le k\le T}\left\|\sum_{j=1}^k v_{\pi(j)}\right\|_{2}\le d.

Establishing an O(d)O(\sqrt{d}) upper bound for the Euclidean Steinitz constant has been a long-standing open problem. On 6 October 2026, OpenAI announced a proof of this bound [Ope26], which, if confirmed, would determine the constant depending on dd up to absolute factors.1^1 Beyond the importance of the mathematical question itself, the principle of the Steinitz lemma serves as a standard tool in discrepancy theory and integer programming, e.g., [Cho94, GS80, EW20].

We introduce the online Steinitz problem (OSP). In this problem, there are TT initially empty output positions, and vectors v1,…,vTv_1, \ldots, v_T that arrive sequentially with ∥vt∥2≤1\|v_t\|_2 \leq 1 and ∑t=1Tvt=0\sum_{t=1}^T v_t = 0, identically to the offline case. Upon seeing vtv_t, the algorithm must assign it immediately and irrevocably to an unused position pt∈[T]p_t \in [T], thereby building a permutation π\pi on the fly such that π(pt)=t\pi(p_t) = t. The completed output is therefore vπ(j)v_{\pi(j)} and its prefix discrepancy by the end of the assignment is max⁡0≤k≤T∥∑j=1kvπ(j)∥2\max_{0 \leq k \leq T} \|\sum_{j=1}^k v_{\pi(j)}\|_2. Although the prefix discrepancy is an identical measure in both offline and the online case, the requirement of an immediate and irrevocable placement and the limited future knowledge leads to a substantially harder algorithmic task that we seek to investigate:

∗^{*}EPFL, Switzerland, {matteo.russo, jiaye.wei}@epfl.ch

1^{1}The authors have not independently verified the announced proof, which none of this paper’s results requires.

Question. What is the worst-case online prefix discrepancy for immediate and irrevocable vector decisions, and how does this compare with the offline optimum?

We study this question under the oblivious adversarial model, which fixes the entire input independently of the algorithm’s randomness, and also under the adaptive adversarial model, which may choose each vector after observing the previous assignments. This means that, against the former kind of adversary, randomness may help, while against the latter it does not. We therefore write OSrand(d,T,δ)\mathrm{OS}_{\mathrm{rand}}(d, T, \delta) for the smallest discrepancy bound that a randomized algorithm can guarantee with probability at least 1−δ1 - \delta on every fixed input. The corresponding optimal deterministic worst-case bound against adaptive inputs is denoted by OSdet(d,T)\mathrm{OS}_{\mathrm{det}}(d, T).

The problem is reminiscent of online vector balancing (OVB) [BJSS20, ALS21, KRR24, Ade26]: in that case, an OVB algorithm chooses a sign for each arriving vector and controls signed prefix sums in arrival order. On the other hand, an OSP algorithm chooses among all vacant positions, and one placement may affect many output prefixes, which are evaluated only after the stream ends, and not after each arrival. We defer the reader to the survey of Bansal and Nikolov [BN26] for an extensive treatment of algorithmic discrepancy in its various forms, including offline and online.