arXiv:2610.13712cs.DSOct 2026

Manuscript Offprint

arXiv:2610.13712

Tight asymptotic competitive ratio for the Canadian Traveller Problem on unit-weighted grids

Pierre Bergé, Vsevolod Chernyshev, Malory Marin, Alexey Pyrko, Lou Salaün

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

Abstract

We study the k-Canadian Traveller Problem (k-CTP), an online navigation problem introduced by Papadimitriou and Yannakakis in 1991. Given an undirected weighted graph G=(V,E,ω)G = (V, E, \omega) and two vertices s,t∈Vs, t \in V, a traveller aims at navigating from ss to tt while minimizing the total distance travelled. However, up to kk edges of the graph may be blocked, and the traveller discovers that an edge is blocked only upon reaching one of its endpoints. The performance of an online algorithm for k-CTP is measured with the competitive ratio, which is the quotient between the distance actually traversed and the distance traversed by an omniscient traveller who knows all blockages in advance.

A general lower bound 2k+12k + 1 for the competitive ratio of deterministic algorithms remains valid even when the input graph is series-parallel, whereas constant competitive ratios can be achieved on restricted graph classes, such as cycles or unit-weighted outerplanar graphs. In this paper, we establish the first intermediate competitive ratio between constant and linear regimes. We prove that, on unit-weighted solid grid graphs, there exists an online algorithm with competitive ratio O(k)O(\sqrt{k}). This ratio is asymptotically tight and cannot be defeated, even on unit-weighted square grids. Finally, we show that both the unit-weighted and solidity assumptions are essential: going further with arbitrary edge weights (even on square grids) or non-solid unit-weighted grid structures yields a linear lower bound of Ω(k)\Omega(k).

2012 ACM Subject Classification Theory of computation → Online algorithms

Keywords and phrases Canadian Traveller Problem, online algorithms, competitive analysis, grid graphs

Competitive analysis for the k-CTP on unit-weighted grids

1 Introduction

We study an online navigation problem on graphs, the k-Canadian Traveller Problem (k-CTP), introduced by Papadimitriou and Yannakakis [15]. Given an undirected connected weighted graph G=(V,E,ω)G = (V, E, \omega) and a source-target pair s,t∈Vs, t \in V, a traveller must navigate from s to t in G while minimizing the total distance travelled. Edge weights are positive. Unfortunately, certain edges (at most k) of the graph can be blocked. The traveller discovers that an edge e=(u,v)e = (u, v) is blocked upon reaching one of its endpoints u or v. The k-CTP is PSPACE-complete [4, 15]. Several variants have been studied, including settings in which edges are blocked with a certain probability [1, 4, 12], predictions are given [3], remote edges can be sensed at a cost [12], or the objective is to find a shortest tour [13, 14]. This problem has applications in robot routing for humanitarian logistics [1, 2, 11].

Any instance of the k-CTP can be divided into two parts: a visible one, the weighted graph G=(V,E,ω)G = (V, E, \omega) with s,t∈Vs, t \in V and a hidden one, the set of blocked edges E∗⊊EE_* \subsetneq E, ∣E∗∣≤k|E_*| \leq k. The objective is to make the traveller attain the target tt at a minimum cost, i.e. the sum of the weights of the traversed edges. An instance (G,E∗)(G, E_*) is called a road map. Road maps are assumed feasible: ss and tt belong to the same connected component of the graph obtained from GG by removing E∗E_*. In other words, there is always a way to complete the walk despite the blockages.

A solution to the k-CTP is an online algorithm, called a strategy, which guides the traveller along the walk from s to t on the graph. The competitive ratio [8] of a strategy on a given instance is the quotient between the distance actually traversed by the traveller on that instance and the distance they would have traversed, knowing which edges are blocked in advance. Westphal [17] proved that, for any deterministic strategy A, there is at least one k-CTP road map for which the competitive ratio of A is at least 2k+12k + 1.

One way to circumvent this lower bound consists in adding randomization [6, 10]. A second approach, which we pursue in this paper, is to restrict the competitive analysis of deterministic strategies to certain families of graphs. The 2k+12k + 1 lower bound remains valid even when restricted to unit-weighted series-parallel 1^1 graphs [9]. However, positive results are known for some families: competitive ratio 3 for cycles and cacti (folklore), competitive ratio 9 for unit-weighted outerplanar graphs [5] and competitive ratio 2⋅k+O(1)\sqrt{2} \cdot k + O(1) for graphs where the maximum (s,t)(s, t)-cut has a bounded size [7].

In this paper, we study the k-CTP on unit-weighted solid grids. Informally, these are induced subgraphs of the square grid whose bounded faces are all unit squares. In particular, this family contains square and rectangular grids. Besides their simple geometric structure, solid grids provide a natural abstraction for studying navigation in transportation networks.

Xu et al. [18] previously investigated the design of efficient strategies for unit-weighted rectangular grids. They showed that when k is smaller than both the horizontal and vertical widths of the shortest (s,t)(s, t)-path, then the GREEDY strategy achieves a constant competitive ratio 3. Strategy GREEDY simply consists, at each moment of the walk, of going through the shortest path between the current position to target t, taking into account the already discovered blockages. Their assumption on k, however, substantially simplifies the set of instances under consideration. Indeed, in this paper, we prove that the competitive ratio of GREEDY without any restriction on k is at least linear in k, even on square grids.

We thus propose a new strategy, called DOUBLING-FOLLOWWALL achieving a smaller competitive ratio on all unit-weighted solid grid graphs. Our main contribution is summarized:

1^{1} a sub-family of planar graphs of treewidth at most 2

▶ Main result. There is a polynomial-time deterministic strategy which achieves competitive ratio O(k)O(\sqrt{k}) for the k-CTP on unit-weighted solid grids. This ratio is asymptotically tight, since no deterministic strategy can achieve a competitive ratio o(k)o(\sqrt{k}) on this family.

Some techniques employed in our work bear similarities with the ones proposed for outerplanar graphs in [5]. Indeed, a key limitation of GREEDY strategy is its tendency to persist in one direction when successive blockages are discovered. The distance traversed thus depends linearly on k, whereas a constant distance could have been covered on some other open (s,t)(s,t)-path. To address this shortcoming, we introduce the DOUBLING-FOLLOWWALL strategy, which always keeps a close look on the possible open (s,t)(s,t)-distance instead of insisting on one direction full of blockages. To do so, we assign to the traveller a distance budget, which doubles at each iteration: a similar technique was used in [5]. In addition, several topological arguments compatible with the grid embedding are used in our competitive analysis for DOUBLING-FOLLOWWALL, leading to ratio O(k)O(\sqrt{k}). To the best of our knowledge, it is the first time that such tools are employed for the study of k-CTP.

A natural question would be whether our result can be extended to grids without weight restrictions. Unfortunately, we show that it is not possible to outperform linear-in-k competitive ratio, even on arbitrarily-weighted square grids.

In Section 2, we introduce graph notations, the definition of the k-CTP, and some preliminary observations on grids. Section 3 aims at establishing lower bounds to motivate our main contribution: we derive a lower bound Ω(k)\Omega(\sqrt{k}) for the competitive ratio of unit-weighted square grids, and prove that GREEDY is far from this bound. In Section 4, we introduce our strategy FOLLOWWALL and show that it achieves a competitive ratio O(k)O(\sqrt{k}) when the size of the solid grid graph is small relative to the (s,t)(s,t)-distance. This serves as a preliminary result for Section 5 which generalizes it to all unit-weighted solid grids by introducing the DOUBLING-FOLLOWWALL strategy. For all results annotated with a (⋆)(\star), the full proof is given in the Appendix.

References (34)