Best-of-Both-Worlds Analysis of Online Search

Spyros Angelopoulos, Christoph Dürr, Shendan Jin

Introduction

In the field of online algorithms, competitive analysis serves as the standard for evaluating performance. It compares an algorithm's cost against an optimal offline adversary with perfect foresight. However, in certain scenarios, this metric lacks the granularity to distinguish between strategies that are theoretically "optimal" but practically different. In their paper, "Best-of-both-Worlds Analysis of Online Search," Spyros Angelopoulos, Christoph Dürr, and Shendan Jin address this limitation in the context of the classic "cow-path problem." By introducing the discovery ratio, the authors provide a framework to differentiate between cautious and aggressive search strategies, proving that aggressive exploration is often mathematically superior.

The Linear Search Problem

The linear search problem, or the "cow-path problem," involves a searcher (the "cow") on an infinite line looking for a target at an unknown location. The goal is to minimize the total distance traveled. For decades, the optimal worst-case competitive ratio for this problem has been known to be 9. This is typically achieved via a "doubling strategy": the searcher moves 1 unit in one direction, returns to the origin, moves 2 units in the opposite direction, returns, and continues doubling the distance ($1, 2, 4, 8, \dots$).

Figure 1: Illustration of a search strategy on a line, defined by a sequence of segments $x_i$.

While many strategies can achieve a competitive ratio of 9, they vary significantly in how they explore the environment. Some are conservative, frequently revisiting known territory, while others are aggressive, pushing further into the unknown. Standard competitive analysis treats all 9-competitive strategies as equivalent, failing to capture these nuances.

The Discovery Ratio

To resolve this, the authors propose the discovery ratio. Unlike the competitive ratio, which measures the cost to find a specific point, the discovery ratio measures the cost to explore a certain total length $l$ of the environment. It compares the time a strategy takes to discover a length $l$ against the absolute minimum time any strategy could have taken.

This metric is a continuous-domain extension of the bijective ratio used in discrete problems. Using linear programming and inductive proofs, the authors established lower bounds for this ratio, allowing for a more refined ranking of search strategies.

Key Insights and Results

The research reveals a fundamental "Pareto frontier" between the competitive ratio (safety) and the discovery ratio (exploration efficiency). Optimizing for one often requires a sacrifice in the other.

The authors analyzed three primary types of 9-competitive strategies:

  1. Aggressive Strategy: This strategy explores as far as possible in each step without violating the 9-competitive constraint. It achieves a discovery ratio of $dr = 1.6$ (or $8/5$), the theoretical minimum for 9-competitive algorithms.
  2. Doubling Strategy: The standard textbook approach has a discovery ratio of $dr \approx 2.33$ (or $7/3$). While simple, it is significantly less efficient at exploration than the aggressive approach.
  3. Conservative Strategy: This approach explores as slowly as possible while remaining 9-competitive, resulting in a discovery ratio of $dr = 3$.

The discovery ratio successfully separates these strategies, proving that the "aggressive" approach is the "best-of-both-worlds" choice—it maintains the optimal worst-case safety while maximizing the rate of discovery.

Conclusion and Future Work

This work provides a new lens through which to view online search problems. While the current analysis focuses on linear search, the discovery ratio offers a promising tool for more complex environments, such as $m$-ray (star) search. Future research may also investigate how randomization impacts the discovery ratio and whether similar "best-of-both-worlds" guarantees can be found in stochastic settings.

Summary updated

BibTeX
@article{angelopoulos2023best,
  author = {Spyros Angelopoulos and Christoph Dürr and Shendan Jin},
  title = {{Best-of-Both-Worlds Analysis of Online Search}},
  journal = {Algorithmica},
  year = {2023},
  doi = {10.1007/s00453-023-01165-5},
}
Figure