arXiv:2609.11013cs.DCSep 2026

Manuscript Offprint

arXiv:2609.11013

Online Treasure Hunt in Vertex-Permuted Dynamic Rings

Kamran Ayoubi, Bernard Mans, Lata Narayanan

Kamran Ayoubi 1^{1}[0009-0008-7768-8639], Bernard Mans 2^{2}[0000-0001-7897-2043], and Lata Narayanan 1^{1}[0000-0002-3875-0371]

1^{1} Department of Computer Science and Software Engineering, Concordia University, Montreal, Canada

kamran.ayoubi@concordia.ca, lata.narayanan@concordia.ca

2^{2} School of Computing, Macquarie University, Sydney, Australia

bernard.mans@mq.edu.au

Abstract. We study the problem of treasure hunt by a group of k≥1k \geq 1 agents in vertex-permuted dynamic rings (VP). In this model, the nn vertices remain on a ring but are permuted at each time step.

We first show that treasure hunt is impossible for any k≤n−3k \leq n - 3 agents, if there are no restrictions on the sequence of permutations used in the dynamic ring. We then study the VP(δ)\mathrm{VP}(\delta) setting, in which for every pair i,ji, j of vertices, the edge (i,j)(i, j) is guaranteed to appear within δ\delta steps. We show that the class VP(δ)\mathrm{VP}(\delta) is feasible only for δ≥⌈n−12⌉\delta \geq \left\lceil \frac{n-1}{2} \right\rceil. For the one-agent case, we show a tight bound of Θ(δn)\Theta(\delta n) on the worst-case search time as well as competitive ratio of any online algorithm for treasure hunt, provided δ≥2n\delta \geq 2n. We then give an optimal algorithm for kk agents, thereby showing that kk agents can obtain a speedup of kk on the worst-case search time. Finally, in the R-VP setting, in which in every step, the vertices are arranged as a ring according to a random permutation, we show that treasure hunt takes expected Θ(n)\Theta(n) steps against an oblivious adversary and Θ(nlog⁡n)\Theta(n \log n) steps against an adaptive adversary.

Keywords: Online treasure hunt · vertex-permuted rings · temporal graphs.

1 Introduction

Modern networks are dynamic rather than static, with links between entities changing over time. These networks are ubiquitous and occur in critical settings, such as wireless and mobile networks, transportation networks, sensor networks, and systems where nodes or links can fail or be turned off. Moreover, changes can be arbitrary, making it challenging to design algorithms for such networks.

In this paper we study the problem of treasure hunt or search by a group of agents in a dynamic ring network. There is a special vertex TT (the treasure), and k≥1k \geq 1 mobile agents located at potentially different vertices of the nn-node ring start looking for the treasure at the same time. Agents are identical, anonymous, memoryless, and operate synchronously and online: at each time step tt they

K. Ayoubi et al.

observe their neighbors in the current graph GtG_{t}, and then decide whether to move to a neighboring vertex or to stay, without any knowledge of future graphs, or memory of past actions. Their collective goal is to minimize the time that the first agent reaches the treasure.

We focus on vertex-permuted rings (VP), a dynamic ring in which, in every time step, the vertex set is permuted and then arranged in a ring topology [1, 5]. A vertex-permuted graph is a temporal graph in which the structure of the graph remains fixed at each time step throughout the graph's lifetime, though the vertices may assume different positions in the graph. For example, cyclists who ride in pelotons, swap their positions after specific time intervals as it is more tiring to be in front of the formation. In the natural world, it has been observed that birds flying in formation or fish swimming in formation swap positions while maintaining the same structure of the formation. In the context of sensor networks that have clusters configured in a star topology, different nodes periodically assume the role of clusterhead, in order to balance energy consumption across cluster members. All the above are examples of vertex-permuted graphs.

We show that treasure hunt is impossible in a vertex-permuted ring if there is no restriction on the dynamicity. In view of this impossibility, we consider restrictions on the dynamicity. We consider the class VP(δ)\mathrm{VP}(\delta): for every ordered pair (u,v)(u, v) with u≠vu \neq v, and every starting time tt, the vertices uu and vv appear as neighbors in some step s∈{t,t+1,…,t+δ−1}s \in \{t, t+1, \ldots, t+\delta-1\}. Finally, we consider a random version of VP. In R-VP, in every step, a random permutation of the vertices is arranged as a ring.