arXiv:2610.10253cs.DSOct 2026

Manuscript Offprint

arXiv:2610.10253

On the Cyclic Assumption of the Cow-Path Search Algorithm

Yuan Ma, Yiqun Lisa Yin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In the cow-path problem, a cow must find a goal lying at an unknown distance on one of ww paths connected only at the origin, and performance is measured by competitive ratio. An efficient randomized algorithm is designed in [2], in which the cow visits the paths in a fixed cyclic order. The algorithm is proved to be optimal for w=2w = 2 in [2], and for all ww in [3] with a claim that no algorithm does better than the best cyclic one. This note provides a detailed proof of that claim.

1 Introduction

In the w-lane cow-path problem, there are w infinite paths from a common origin and a goal lying at an unknown distance on one of these paths. A cow (or robot) starts at the origin but does not know which path contains the goal or how far the goal is, and it discovers the goal only upon reaching it. Its objective is to find the goal while minimising the total distance travelled, and its performance is measured by competitive ratio.

Baeza-Yates, Culberson and Rawlins [1] determined the optimal deterministic competitive ratio, 1+2ww/(w−1)w−11+2w^{w}/(w-1)^{w-1}, which is 9 for w = 2. Kao, Reif and Tate [2] introduced a randomized algorithm with competitive ratio

Rw=min⁡r>1{1+2w⋅1+r+⋯+rw−1ln⁡r},R_{w}=\min_{r>1}\Big\{1+\frac{2}{w}\cdot\frac{1+r+\cdots+r^{w-1}}{\ln r}\Big\},

which is approximately 4.5911 for w=2w = 2, proved its optimality for w=2w = 2, and conjectured its optimality for w>2w > 2. Kao, Ma, Sipser and Yin [3] subsequently proved this conjecture.

A common feature of these analyses is that the algorithm visits the paths in a fixed cyclic order, which means that the algorithm visits all the w paths in its first w visits and then repeatedly searches these paths in that order. Fact 4 in [3] stated explicitly that it suffices to analyze these cyclic algorithms but left a detailed proof to a manuscript by us [4], which was never formally published. This note constructs a complete proof from some surviving hand-written notes.