NeurIPS 2026QuestionsPapersAreasAboutMarkdown

The Power of a Random Sample in Online Algorithms

Omer Wasim, Sami Davies, Shallu Tomer, Rathish Das

NeurIPS page · Open on the map

Category: Bandits, Online Learning & Economics › Online Allocation and Optimization · Type: new method · Keywords: online algorithms, random sample, secretary problem, facility location, competitive analysis

Areas: Optimization & Algorithms › Optimization under Uncertainty › Online Optimization and Bandits

Summary

The paper introduces the online with a random sample (ORS) model, which blends adversarial and random-order inputs, and provides optimal algorithms for the secretary problem and facility location under this model.

Explained to a 5-year-old

Imagine you are picking the best gift from a pile, but you only see some gifts early in a random order. After those early gifts, the rest come in a tricky order that you cannot control. Your helper looks at the early gifts and tries to guess which later gift might be the best. When many early gifts are shown, the helper can almost always pick the very best one. The same idea also helps in a game where you decide where to put new shops.

Explained to a 5-year-old, longer

In a game, you have to choose the best item from a list that you never see all at once. Some items are shown to you early, and they are chosen by chance, not by anyone trying to trick you. After those early items, the rest of the items appear in a order that might be unfair or confusing. Your helper looks at the early items and uses them to guess which later item could be the best. When many early items are shown, the helper can almost always pick the very best one. For a different game where you need to place new places like shops, the same idea helps. The helper decides where to put each new place based on what it saw early. This way, even if the later places appear in a tricky order, you still end up with good choices. The method works well whether you see a little or a lot of early items. It balances between guessing and being careful, so you don’t waste time or resources. The idea is useful for any situation where you have to make decisions with limited information. Overall, it makes decision-making more reliable when you can’t see everything at once.

For a technical reader

The paper defines the Online with a Random Sample (ORS) model, where a random fraction p of the input is revealed online in random order before the rest arrives adversarially. This model bridges the gap between fully adversarial and fully random input orders, making online algorithms more robust to real-world uncertainty. For the classic secretary problem, the authors present an algorithm that achieves the optimal competitive ratio of p·e-p. They also extend the approach to the (k,1)-secretary variant and facility location, obtaining a competitive ratio that converges to optimal as p approaches 1 and an O(log(1/p)) bound for facility location. The key insight is that the early random sample provides a cheap proxy for global statistics, allowing simple greedy decisions to perform near-optimally.

Problem

How can online algorithms achieve good performance when part of the input is randomly sampled and presented in random order while the remaining elements arrive adversarially?

Method

The authors define a semi-random model where a random p-fraction of the input is revealed online in random order before the remaining elements arrive adversarially. They then design algorithms that leverage this sampled information to make decisions, achieving competitive ratios that depend on p. For the secretary problem they obtain an optimal pe-p competitive algorithm, and for facility location they provide an O(log(1/p)) competitive algorithm.

Results

The approach achieves an optimal pe-p competitive ratio for the secretary problem, converges to optimal competitiveness for the (k,1)-variant as p approaches 1, and attains an O(log(1/p)) competitive ratio for facility location.

Contributions

It introduces a semi-random ORS model that interpolates between adversarial and random order inputs, and provides optimal competitive algorithms for the secretary problem and facility location under this model.

Limitations and assumptions

The model assumes a fixed random sample fraction p and that the sampled elements are revealed online; the analysis is limited to the secretary problem, its (k,1) variant, and facility location.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction