Optimal Online Discrepancy Minimization in Linear Time
Data Structures and Algorithms
2026-07-05 v1
Abstract
We provide an online algorithm with the following guarantee: for any fixed sequence of vectors with , the algorithm assigns each arriving vector a random sign such that every prefix sum can be written as the sum of three coupled standard Gaussian vectors. Our algorithm runs in time and achieves the optimal prefix discrepancy bound with high probability. This recovers the optimal bound of Kulkarni, Reis, and Rothvoss, whose algorithm runs in time exponential in and . The algorithm and main proof were discovered in a GPT-5.5 Pro Extended conversation prompted by the author.
Cite
@article{arxiv.2607.04388,
title = {Optimal Online Discrepancy Minimization in Linear Time},
author = {Ishaq Aden-Ali},
journal= {arXiv preprint arXiv:2607.04388},
year = {2026}
}
Comments
8 pages. Comments welcome!