The online monotone array completion problem
Abstract
Consider the following online filling game. An array of length is initially empty. At each time step one observes an independent sample from and must either discard it or place it irrevocably into an empty position of the array, while preserving the constraint that the occupied entries are non-decreasing from left to right. Among all possible strategies, what is the optimal expected time required to fill the array? Let denote this optimal expected completion time. Our main result determines up to lower-order terms: More precisely, no strategy, even if randomized and adaptive, can have expected completion time below , while we provide an explicit deterministic strategy whose expected completion time is at most . For comparison, the natural coupon-collector strategy, which partitions into equal intervals and reserves one array position for each interval, has expected completion time . We also consider a with-replacement version of the game, in which previously placed entries may be overwritten. For this variant, we give a deterministic strategy with expected completion time , thereby establishing a separation between the two models.
Cite
@article{arxiv.2606.32015,
title = {The online monotone array completion problem},
author = {Vishesh Jain and Dylan King and Clayton Mizgerd},
journal= {arXiv preprint arXiv:2606.32015},
year = {2026}
}