Random-Order Models

Anupam Gupta, Sahil Singla

TL;DR

This paper explores the Random-Order (RO) model, a powerful framework for analyzing online algorithms that sits between overly pessimistic worst-case analysis and overly optimistic stochastic models. By assuming that an adversary chooses the input set but "nature" shuffles the arrival order, researchers can design algorithms with significantly better performance guarantees for classic problems like the Secretary Problem, bin packing, and facility location.

What Problem Does This Paper Address?

Standard online algorithm analysis typically assumes a worst-case adversary who not only chooses the input values but also the specific order in which they arrive. For many real-world problems, this is too punishing; an adversary can easily craft a sequence that forces any deterministic or randomized algorithm to perform poorly.

The authors tackle the gap between this worst-case reality and the need for practical algorithmic guarantees. They focus on the Random-Order model, where the input set is chosen by an adversary but presented to the algorithm in a uniformly random permutation. This model captures scenarios where the data might be difficult, but its arrival sequence is benign or independent of the values themselves—such as job applicants arriving for an interview or packets arriving at a router.

Methods

The paper surveys several key algorithmic strategies tailored for the RO model:

  • Wait-and-Pick (Thresholding): The foundational technique for the "Secretary Problem." The algorithm observes the first fraction of the input (e.g., $1/e \approx 37\%$) without picking anything to establish a "threshold" based on the best value seen so far. It then selects the first subsequent item that exceeds this threshold.
  • Order-Oblivious Algorithms: These algorithms use a two-phase structure. In the first phase, they sample a random subset to learn about the input distribution. In the second phase, they process the remaining items, which could arrive in an adversarial order. This makes them robust to slight deviations from a perfect random shuffle.
  • Order-Adaptive Algorithms: A more sophisticated approach where the algorithm continuously updates its strategy (like a price or threshold) as more items arrive. This is particularly effective for "large budget" problems, such as picking $k$ items instead of just one.
  • Dual-Based Learning: For complex packing problems (like Linear Programs), the algorithm uses the initial random samples to estimate optimal dual variables. These variables act as "prices" for resources, allowing the algorithm to make near-optimal decisions on whether to "buy" an incoming item.

Datasets

As a theoretical survey and research chapter, this paper does not utilize empirical datasets. Instead, it provides mathematical proofs and competitive analysis for various classes of online problems. The "inputs" are abstract sets of numbers, vectors, or graph edges defined by their properties (e.g., values, weights, or resource requirements).

Key Insights and Ideas

  • Shuffling Weakens the Adversary: The core "aha moment" is that randomizing the order breaks the adversary's ability to hide the "best" items at the very end or trick the algorithm into committing too early to mediocre items.
  • The Power of $1/e$: For the single-item secretary problem, waiting for $1/e$ of the sequence and then picking the next best item yields the highest value with probability at least $1/e$. This is a massive improvement over the $1/n$ probability in the worst-case model.
  • Large Budgets Lead to Near-Optimality: When an algorithm needs to pick many items ($k$), the relative error in its threshold estimation decreases. For large $k$, the competitive ratio approaches $1$ (specifically $1 - O(\sqrt{\log k / k})$), meaning the online algorithm performs almost as well as an offline one that sees everything in advance.
  • RO as a Bridge: The RO model is more general than the i.i.d. (independent and identically distributed) model. Any algorithm that works in the RO model automatically works for i.i.d. data, but the RO model is more robust because it doesn't require the algorithm to know the underlying distribution beforehand.

Key Results

  • Multiple Secretary Problem: The authors show that adaptive algorithms can achieve a value of $V^*(1 - O(\sqrt{\log k / k}))$, where $V^*$ is the optimal offline value.
  • Max-Weight Matching: A simple "solve-ignoring-past-decisions" strategy achieves a $1/e$ competitive ratio for bipartite matching.
  • Minimization Problems:
    • Bin Packing: The "Best Fit" heuristic, which has a $1.7$ ratio in the worst case, improves to at most $1.5 + o(1)$ in the RO model.
  • Facility Location: While the worst-case ratio is logarithmic ($\Theta(\frac{\log n}{\log \log n})$), the RO model allows for a constant $O(1)$ competitive ratio.
  • Steiner Tree: Interestingly, the RO model does not help for the Steiner Tree problem, which still faces a logarithmic lower bound, highlighting that random order isn't a silver bullet for every problem.

Limitations and Future Work

  • The Matroid Secretary Problem: One of the most famous open questions in the field is whether a constant competitive ratio exists for the Matroid Secretary Problem. Current best results are $O(\log \log \text{rank})$, leaving a significant gap.
  • Robustness to "Corrupted" Randomness: The authors note that most RO algorithms are fragile. If an adversary can change even a single item's position after the shuffle (the "Byzantine model"), many guarantees collapse. Developing "best-of-both-worlds" algorithms that perform well in both RO and worst-case scenarios is a major research frontier.
  • Beyond Uniform Shuffles: Exploring models with limited entropy—where the order is somewhat random but not perfectly uniform—remains an area with much to explore.

Summary updated

BibTeX
@inproceedings{gupta2020random,
  author = {Anupam Gupta and Sahil Singla},
  title = {{Random-Order Models}},
  booktitle = {Beyond the Worst-Case Analysis of Algorithms},
  year = {2020},
  url = {https://openreview.net/forum?id=zO-50I07_Sk},
}
Figure