Abstract 1 Introduction 2 Preliminaries 3 Our Main Methods 4 Our Optimal Rendezvous Algorithm References

Optimal Deterministic Rendezvous in Labeled Lines

Yann Bourreau ORCID CISPA Helmholtz Center for Information Security, Saarbrücken, Germany Ananth Narayanan ORCID CISPA Helmholtz Center for Information Security, Saarbrücken, Germany Alexandre Nolin ORCID SAMOVAR, Télécom SudParis, Institut Polytechnique de Paris, Palaiseau, France
Abstract

In a rendezvous task, a set of mobile agents initially dispersed in a network have to gather at an arbitrary common site. We consider the rendezvous problem on the infinite labeled line, with 2 initially asleep agents, without communication, and a synchronous notion of time. Each node on the line is labeled with a unique positive integer. The initial distance between the two agents is denoted by D. Time is divided into rounds and measured from the moment an agent first wakes up. We denote by τ the delay between the two agents’ wake up times. If awake in a given round T, an agent at a node v has three options: stay at the node v, take port 0, or take port 1. If it decides to stay, the agent will still be at node v in round T+1. Otherwise, it will be at one of the two neighbors of v on the infinite line, depending on the port it chose. The agents achieve rendezvous in T rounds if they are at the same node in round T. We aim for a deterministic algorithm for this problem.

The problem was recently considered by Miller and Pelc [18, Distributed Computing 2025]. With max the largest label of the two starting nodes, they showed that no algorithm can guarantee rendezvous in o(Dlogmax) rounds. The lower bound follows from a connection with the LOCAL model of distributed computing, and holds even if the agents are guaranteed simultaneous wake-up (τ=0) and are told their initial distance D. Miller and Pelc also gave an algorithm of optimal matching complexity O(Dlogmax) when the agents know D, but only obtained the higher bound of O(D2(logmax)3) when D is unknown to the agents.

In this paper, we improve this second complexity to a tight O(Dlogmax), closing the gap between the best known lower and upper bounds. In fact, our algorithm achieves rendezvous in O(Dlogmin) rounds, where min is the smallest label within distance O(D) of the two starting positions. We obtain this result by having the agents compute sparse subsets of the nodes to gather at (formally, ruling sets over the line), as well as some general observations about the setting of rendezvous on labeled graphs.

Keywords and phrases:
mobile agents, rendezvous, ruling set, deterministic algorithms, labeled line
Copyright and License:
[Uncaptioned image] © Yann Bourreau, Ananth Narayanan, and Alexandre Nolin; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Distributed algorithms
Related Version:
Full Version: https://doi.org/10.48550/arXiv.2505.04564 [5]
Acknowledgements:
We thank Sebastian Brandt for interesting discussions and anonymous reviewers for their valuable feedback. This research was conducted while Alexandre Nolin was at the CISPA Helmholtz Center for Information Security.
Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyễn Kim Thắng

1 Introduction

A classic task for a set of autonomous mobile agents is to meet at some location. The agents might want to gather for a number of reasons: to exchange some resources, to initiate a long journey together, or to assemble in a specific shape. With only two agents, the problem is known as rendezvous [2].

We consider a fully discrete version of this problem: time is divided into rounds, and in each round, each agent is located at a node of a graph G. Furthermore, we assume that each node v of this graph has a unique label (v), and that the graph G inhabited by the agents is an infinite line. The agents wake up at possibly different rounds. Once awake, in each round, an agent can stay at its current location for one round or move to a node neighboring its current location. Rendezvous is achieved if the agents are at the same node in some round. In particular, it does not suffice that the agents are in adjacent nodes, or cross the same edge in opposite directions: they lack a communication or sensing method to detect these situations. The initial distance between the two agents is denoted D, and τ denotes the delay between the two wake-up times. The two agents execute the same algorithm, also known as the symmetric setting. We more formally describe our model in Section 2.

1.1 Our Results

We give an optimal deterministic algorithm for the rendezvous problem on the infinite labeled line.

Theorem 1.

There is a deterministic algorithm for solving rendezvous on the infinite labeled line in O(Dlogmin) rounds from the wake-up time of the first agent, where D is the initial distance between the two agents and min is the smallest label within distance O(D) from the agents’ starting locations.

Theorem 1 improves upon a prior algorithm of complexity O(D2(logmax)3) by Miller and Pelc [18], where max is the largest label of the two starting nodes of the agents. To a lesser extent, we also improve upon their O(Dlogmax) algorithm that assumes that the agents know their initial distance D, by replacing their dependency in max by one in min.

The optimality of our algorithm follows from a lower bound from the same paper by Miller and Pelc [18]. They proved that any algorithm running in o(Dlogmax) rounds would imply an o(logn) algorithm for 3-coloring paths and cycles of poly(n) nodes in the LOCAL model. A seminal result by Linial states that no such o(logn) algorithm exists [16]. Note that our algorithm, while of complexity o(Dlogmax) if considering an infinite family of instances where mino(max), is compatible with this lower bound, as families of instances where minΘ(max) can be constructed. That is, our algorithm is only of complexity o(Dlogmax) on specific instances, not in general111Throughout this paper and as was the case in the paper by Miller and Pelc, we take a slightly non-standard definition of the log function guaranteeing that log(x)1 for all x. This is to clarify that our O(Dlogmin) algorithm does not finish in 0 rounds when min=1, since log(1)=0 with the most common definition of log. See the Preliminaries (Section 2)..

Our algorithm for the infinite line immediately implies a similar result for finite paths and cycles.

Corollary 2.

There is a deterministic algorithm for solving rendezvous on finite labeled paths and cycles in O(min(n,Dlogmin)) rounds from the wake-up time of the first agent, where D is the initial distance between the two agents, min is the smallest label within distance O(D) from the agents’ starting locations, and n is the number of nodes in the graph.

Like our algorithm for the infinite line, this improves upon previous results of complexity O(min(n,D2(logmax)3)) and O(min(n,Dlogmax)) by Miller and Pelc [18].

1.2 Technical Overview

Rendezvous and treasure hunt.

To get some intuition on how rendezvous algorithms typically work, it is instructive to consider one of the simplest variants of the problem: the asymmetric setting with simultaneous startup. Asymmetry means that each agent can execute its own strategy, or equivalently, one agent receives label 1 while the other receives label 2. Simultaneous startup means that the two agents wake up in the same round.

These assumptions allow for the following strategy: one agent goes through successive phases exploring increasingly bigger intervals centered on its initial node, while the other agent waits at its initial node. Having the active agent explore intervals doubling in size between phases, the strategy achieves rendezvous in O(D) rounds, which is optimal up to the hidden constant and lower order terms. Rendezvous reduces to treasure hunt in that scenario.

While this algorithm cannot be used as is in harder settings, our goal will be to somehow reduce to this simple strategy. In the symmetric setting but with access to randomness, for example, the agents can flip coins to decide whether to search or stay put during some time intervals. In all likelihood, the agents should regularly sample opposite roles. Similarly, if the agents are given distinct labels (but importantly, not restricted to the set {1,2}), distinct behaviors can still be constructed from the given identifiers. The agents might for example alternate searching and inactive phases according to the binary representations of their labels. More generally, we need the agents to break symmetry between themselves, so that at some point during the execution, one of the two agents does a search while the other agent stays idle. Given that one agent’s idle phase overlaps sufficiently with the other agent’s searching phase, the two agents will achieve rendezvous.

How knowledge of 𝑫 helps.

Having the agents know the initial distance D between them drastically reduces the space of possibilities. For instance, from the perspective of either agent, there are only two possibilities for the starting location of the other agent: the two nodes at distance exactly D from its own initial node. If each agent spends its first 3D rounds to go to these two nodes, the first awake agent always finds the other agent in these 3D rounds, granted that the delay τ between the agents’ wake-up times is at least 3D. Not meeting the other agent in these initial 3D rounds thus immediately implies a bound on the delay, τ<3D.

On the infinite labeled line, consider now the subset of nodes whose distances to the starting location of one of the agents are divisible by D. The resulting set of nodes is the same whether we measure the distances from either of the two starting locations, as well as contains them. Connecting each member of this set to the two other members closest to it on the original line, we obtain another infinite labeled line. A possible strategy for the two agents to break symmetry is to agree on a coloring of this sub-line, and to act according to the colors of their starting nodes. As the agents perform searching phases interspersed with waiting phases according to these colors, knowing D allows the agents to limit their phases to intervals of O(D) rounds.

Coloring an infinite line.

Without additional assumptions, the agents cannot truly agree on a coloring of the whole sub-line. Indeed, the agents can only base the coloring of the sub-line on the labels of the nodes of the infinite line. In order for the agents to be able to compute the color of a node, said color should only depend on a finite set of labels. As the agents cannot explore more than T nodes in T rounds, for the sake of speed, the colors given to the agents’ starting nodes should ideally be computable from labels in relative proximity to them.

At a high level, we want a mapping from some universe of possible local neighborhoods to colors, such that if applying this mapping to the infinite line, a valid coloring is obtained. This idea of constructing a mapping between local neighborhoods and a node’s local output almost corresponds to the LOCAL model of distributed computing. A key difference, however, is that the standard LOCAL model assumes a finite graph.

Still, it is easy to adapt a seminal LOCAL algorithm for 3-coloring paths and cycles to obtain a useful mapping. To do so, the algorithm is transformed into an early-stopping one, which has nodes terminate earlier depending on their given labels. While the classic LOCAL algorithm for 3-coloring paths and cycles completes in O(logn) rounds, assuming that the nodes are given unique identifiers between 1 and poly(n), the early-stopping version instead guarantees that a node v of label (v) permanently commits to a color after O(log(v)) rounds. From the point of view of mapping local views to colors, this means that there exists a mapping that infers the color of a node of label (v) from its distance-O(log(v))-neighborhood. Used on the infinite sub-line obtained by taking one out of every D nodes, this allows the two agents to assign distinct colors to their starting nodes after O(Dlogmax) rounds of exploration, where max is the largest of the starting locations’ labels. This roughly summarizes the approach of Miller and Pelc [18].

Limitations of the regular sub-line approach.

The approach sketched in previous paragraphs is very dependent on the assumption that the agents have knowledge of D, as it has the agents essentially ignore all but a specific 1/D fraction of the line. If the agents run the same algorithm with a wrong “guess” for D, the two agents are effectively not synchronizing in any way, as the sub-lines they each construct are only the same if the agents’ guess for D is a divisor of the actual distance D. Even when their guess divides D, the agents’ starting nodes are only adjacent in the sub-line if the guess is exactly D.

As a result, to tackle the setting without knowledge of D by using the previous algorithm with different guesses for D basically requires to test every possible value for D. This is true even if the agents are given an upper bound on D. This difficulty is the source of the O(D2) dependency in the earlier algorithm by Miller and Pelc [18].

Limitations of a purely coloring-based approach.

For simplicity, let us assume for now that the agents are given an upper bound on D. In the paper, we will see that handling a fully unknown D can be handled relatively easily by essentially considering geometrically increasing bounds on D. As a first try, let us aim for the agents to agree on a common coloring of the line that ensures that their starting locations receive distinct colors.

With only an upper bound on D, the agents now need to break symmetry with 2D nodes instead of just 2. Guaranteeing that any two nodes within distance D from one another are colored differently cannot be done with 3 colors. Pushing forward with this approach, one could color the line with O(D) colors. But now, the increased number of colors necessitates to design the same number of distinct behaviors of alternating searching and waiting phases guaranteeing rendezvous. This higher number of behaviors is likely to lead to a DlogD dependency in the distance, similar to how in anonymous networks with labeled agents, larger labels lead to higher complexity in this fashion222For instance, with the smallest of the two agents’ labels, D their initial distance, and simultaneous startup, the complexity of rendezvous is Θ(Dlog) in the anonymous ring [8].. This would be far from the Ω(Dlog) lower bound.

Our solution: ruling set nodes as local landmarks.

To reduce the number of behaviors we have to design, and thus, improve on the complexity that would follow from an approach based on computing a distance-D coloring, we have the agents agree on a 1/Θ(D) fraction of the nodes that act as common milestones, or landmarks. One way to understand our algorithm is that we have the agents build their common sparse sub-line instead of receiving it from the get-go as when they know D. Formally, the agents compute a ruling set over the line: a set of nodes such that every two of its members are at least at some minimum distance Θ(D) from one another, and every node in the graph is within some maximum distance Θ(D) from the nearest member. Computation of this ruling set by the agents corresponds, again, to a computation in the early-stopping LOCAL model.

To achieve rendezvous, each agent effectively substitutes its starting position with the nearest node on the sub-line. By having the agents agree on a common coloring of this sub-line, as before, the agents can now find each other by performing some waiting and searching phases based on the colors of their location in the sub-line. Even if our new sub-line is less structured than the one considered in the setting with knowledge of D, its properties are sufficient to be able to give distinct colors to members of the sub-line at distance O(D) in the original line, while only using O(1) colors.

Computing the ruling set we need in the early-stopping LOCAL model follows relatively straightforwardly from standard results in distributed computing. We perform this computation by repeated applications of an algorithm for Maximal Independent Set (MIS). At a high level, we start from a set containing all nodes of the lines and gradually remove nodes from it. Each call to the MIS subroutine roughly doubles the minimum distance between members of the set, while maintaining that the maximum distance of any node on the graph to the nearest member of the set increases only moderately. A small subtlety is that we have each node mostly coordinate with other nodes whose labels are of the same order of magnitude.

A simplifying remark: avoiding simultaneous edge crossings.

Contributing to the overall simplicity of our algorithm is a subroutine for crossing edges that prevents the agents from exchanging positions on the line without achieving rendezvous. The idea behind it is very simple: on the labeled line, every edge can be given a canonical orientation, for example, from lower to higher ID. By having the agents perform a different set of moves to cross an edge depending on the direction in which they take it, we can make sure that the agents must be at the same node at some point during the crossing. The first few moves are the same for both orientations of the edge, which enables an agent to discover the orientation of the edge while crossing it – e.g., on the labeled line, through learning the identifier of the other endpoint. Replacing every one-round edge crossing by this procedure only incurs a multiplicative factor of 4 in the complexity of the algorithm. We believe that this observation might be useful to the design of future rendezvous algorithms on graphs whose edges can easily be given an orientation.

1.3 Related Work

Most relevant to the results of this paper is the work by Miller and Pelc [18], that considered the rendezvous problem with the exact same set of assumptions as we do in this paper, as well as some easier settings. They showed that when agents know the distance D between themselves, and the maximum labels of the two starting nodes of the agents is , deterministic rendezvous can be done in O(Dlog) rounds. They gave a matching lower bound of Ω(Dlog), shown on a line whose IDs all have the same log. The lower bound holds even with simultaneous startup. The upper bound does not assume this. When D is unknown, they give an upper bound of O(D2(log)3). They also gave an algorithm to achieve rendezvous in O(D) rounds when the agents know their positions on the infinite line, improving upon an earlier result by Collins et al. [7] which additionally assumed simultaneous startup of the agents.

On an anonymous line, where the agents themselves are given two distinct labels, the problem is known to be harder. Dessmark et al. [8] showed that the problem has complexity Θ(Dlog), assuming simultaneous startup, where is the smallest of the two agents’ labels. With arbitrary startup, they consider a harder setting where the agents only appear in the graph once they are awake. With that harder assumption, the algorithms tend to have a dependency on n, the size if the graph (which is then not assumed to be infinite in this work). Rendezvous in infinite lines was first studied in [17], in which the authors considered the harder asynchronous setting, but with the agents capable of detecting each other in edges.

Table 1: Comparison of our result with some of the most relevant works in the literature.

Before they were formulated as questions of computational complexity and algorithm design, coordination problems of agents trying to meet appeared in the economics literature [21]. Algorithms for rendezvous in graphs were first studied by Alpern [1]. Some of the graph structures in which deterministic rendezvous has been considered include the infinite tree [4], the infinite grid [10], the plane [9] and the ring [13]. Deterministic rendezvous was also studied in general graphs [22], and in a setting where agents are given additional information about their location in the graph [7]. Rendezvous on the line has also been studied with random resources [15, 3].

The Ω(Dlog) lower bound obtained in [18] comes from a reduction of the rendezvous problem in labeled lines to the problem of coloring nodes on a line in the LOCAL model with some number of colors C3. This problem has been shown to have a Ω(lognlogC) lower bound [16, 14]. This lower bound is tight, due to an earlier algorithm by Cole and Vishkin matching its complexity [6]. Many works consider a version of the LOCAL model in which the nodes know an upper bound n on the number of nodes, and have IDs between 1 and poly(n). A generic way to remove this type of global knowledge was developed in a work by Korman, Sereni, and Viennot [12]. Several ideas are transferable from the setting where n is unknown to that of infinite graphs.

Readers interested in a broader view of the area of deterministic rendezvous might be interested in a recent survey by Pelc [19]. The book by Alpern and Gal [2] offers an introduction to the area of rendezvous that includes many topics outside the scope of this paper (asymmetric agents, continuous versions of the problem). For an introduction to the LOCAL model, see the book by Peleg [20], as well as the online book by Hirvonen and Suomela [11].

1.4 Organization of the Paper

We start with some preliminaries in Section 2, where we introduce the notations and the model we are going to be considering throughout the paper.

In Section 3, we present the techniques and algorithms that the agents are going to be using to break symmetry between them and achieve rendezvous. Section 3.1 shows how to devise a way for the agents to meet during the execution of the algorithm when they both move through the same edge at the same time but from different starting nodes. In Section 3.2, we build an efficient algorithm to compute ruling sets on paths in LOCAL. Then, using this algorithm, we obtain in Section 3.3 an efficient algorithm for computing ruling sets on paths in LOCAL in which nodes with smaller IDs terminate earlier.

Section 4 describes an optimal algorithm for the agent to reach rendezvous in our setting and analyses its complexity. Section 4.1 presents the algorithm computed by the agents. To prove that the agents achieve rendezvous, we focus on a specific phase of the algorithm of one of the agents. We show that after reaching this phase the agents will achieve rendezvous before switching to the next phase. We split the analysis according to whether the agents are in the same phase or not. We argue about the two agents achieving rendezvous when in different phases in Section 4.3, and when in the same phase in Section 4.4. We additionally show that the phase of our algorithm for which our arguments hold is guaranteed to occur within our stated upper bound, and finish the proof of our optimal upper bound in Section 4.5.

Due to space constraints, Corollary 2 and all results in Section 3 are stated without proofs. The missing proofs are all available in the full version of the paper [5].

2 Preliminaries

2.1 Notation

Throughout the paper, log refers to the base-2 logarithm, i.e., log(2x)=x for any x. For each x, the log function is defined as log(x)=1 if x1, log(x)=1+log(log(x)). This is off-by-one from the maybe more common definition that sets log(x)=0 if x1. We do so to have that Θ(Dlog) is of order Θ(D) rather than 0 when =1.

Graph notation.

We write G=(V,E) for a graph over vertices V and edges E. Each node vV is equipped with a unique label or identifier (v). We identify the set of labels with the positive integers, =. We partition the nodes according to their labels and the log function, defining Vi={vV:log((v))=i}, so that V=i1Vi. We also define Vi=j=1iVj and V<i=ViVi. The degree of a node vV is denoted by deg(v), the distance dist(v,v) between two nodes corresponds to the (edge-)length of a shortest path between them, and N(v) is the set of neighbors of v. For every integer k, Nk(v)={uV:dist(u,v)[1,k]} is the k-hop neighborhood of v.

For UV a subset of the nodes of a graph G=(V,E), the graph G[U]=(U,E) is the graph induced by U, whose set of nodes is U and whose set of edges is E={vvE:vUvU}. For a positive integer k1, the power graph of order k is the graph Gk=(V,E′′) with the same set of nodes as G and whose set of edges is E′′={vv:distG(v,v)[1,k]}. Note that Gk[U]=(Gk)[U] rather than (G[U])k, i.e., Gk[U] is an induced subgraph of a power graph of G, rather than a power graph of an induced subgraph of G.

The Labeled Infinite Line.

An infinite labeled line is a 2-regular connected graph G=(V,E) over a countably infinite set of nodes.

For the analysis’ sake, it is sometimes convenient to consider a canonical orientation and naming for the line. When we do so, we refer to nodes on the infinite line as relative integers, s.t. for any i, node vi is adjacent to nodes vi1 and vi+1 on the line.

2.2 Computational Models

Our Mobile Agent Model.

The agents are placed and move in a network modeled by a graph G=(V,E). G can be finite or countably infinite. Each node vV of the graph has deg(v) ports, and each edge is the graph is matched to exactly one port of each of its two endpoints. The ports of a node v are labeled 0 to deg(v)1. At a node v, an agent can read the node’s label (v) if the graph is labeled, see the node’s degree deg(v), and distinguish the deg(v) ports leading out of the node.

The agents execute the same deterministic algorithm, as in, when put in the same configuration, agents α and β perform the same set of moves. Time is divided into discrete rounds. The agents are initially asleep, and upon wake-up (or startup), they have no notion of how much time has elapsed before. Formally, the agents have an internal clock that is initialized at 0 upon waking-up, and from there on keeps track of how many rounds passed since wake-up. We denote by τ the delay between the wake-up times of the two agents. The agents can be thought of as waking up in rounds 0 and τ. The initial distance between the two agents is denoted by D.

In each round, an awake agent at a node v chooses one of deg(v)+1 possible moves. One of these moves is staying at v for one round, the other moves being to take one of the ports leading out of v. When an agent takes a port, in the next round, it arrives at the other endpoint of the edge behind that port. When entering a node, an agent knows the port it enters it from. We put no limit on the memory of the agents, and they can base each of their decisions on everything they have experienced in previous rounds: the labels of all the nodes they were at in previous rounds, and from which port they were all entered from.

The agents can detect each other if they are at the same node in the same round, in which case they achieve rendezvous. This is also the case if one of the agents is asleep, i.e., agents exist in the network before waking up. They have no other means of communication. By default, the agents do not detect each other if they cross the same edge in opposite directions in the same round. We consider agents able to detect simultaneous edge-crossing in some parts of the paper.

The agents have no shared notion of orientation of the line, no idea of their position on the line with respect to some shared point of origin, and have no knowledge of both D and τ.

The LOCAL Model on Infinite Graphs.

The standard LOCAL model is a model of distributed computation in which a network is represented as a graph G=(V,E) whose nodes possess computational power. Every node has a unique identifier, typically assumed to be an integer between 1 and poly(n), where n is the number of nodes in the graph. The time is measured in rounds, in which a node can receive the messages sent by its neighbors in the previous round, do some internal computation, and send a message to each of its neighbors for them to receive in the next round. Computation starts at the same time for all nodes and is done synchronously. An algorithm’s complexity on instances of size n is the maximum number of rounds before all nodes in the graph have terminated executing the algorithm and permanently committed to an output. The complexity of a problem on instances of size n is the minimum complexity over all possible algorithms solving the problem over instances of size n. Messages sent in the LOCAL model can be arbitrarily large. As a result, without loss of generality, each node learns its entire T-hop neighborhood in T rounds of LOCAL. This makes a T-round algorithm for a problem in the LOCAL model equivalent to a map from possible T-hop neighborhoods to possible node outputs.

In infinite graphs, it is nonsensical to consider the complexity of most problems as the time needed for the last node to terminate. The complexity also cannot be measured with respect to the number of nodes or the value of the largest identifier. To tame the infinite, we instead aim to bound the time it takes a node to finish with respect to some local parameters, for example, its identifier. To have nodes terminate at different times, the problems we consider must be inherently quite local. We refer to this model, where nodes commit to an output in a time that is a function of a local parameter, and thus algorithms make sense on both finite and infinite graphs, as the EarlyStop-LOCAL model (ES-LOCAL for short). This model was also used in the work by Miller and Pelc [18] and appeared previously in other sources [11, Exercise 1.7].

2.3 Useful Subroutines

Consider a graph G=(V,E) and a subset SV of its nodes. The set S is independent iff for all u,vS, uvE. S is dominating iff for all uVS, vS, uvE. If S is both independent and dominating, it is a maximal independent set (MIS).

Let each node vV be given a list of colors ψ(v). A list-coloring of the graph for these lists is a map χ:VvVψ(v) s.t. for each node v, χ(v)ψ(v), and for any two adjacent nodes u and v, χ(u)χ(v). When each node v is given a list of size |ψ(v)|deg(v)+1, the coloring is known as a degree+1-list coloring. Having lists with this minimum size guarantees the existence of a solution χ. In fact, it also guarantees that a partial solution can always be extended to a full one. When the lists are all equal to [k] for some integer k, the problem is known as k-coloring. In the extensively studied Δ+1-coloring problem, each node has [Δ+1] as its list of colors, where Δ is an upper bound on the maximum degree of the graph.

Recall that in the LOCAL model, n corresponds to the number of nodes in the graph, and poly(n) bounds the nodes’ identifiers.

Lemma 3 ([16]).

Both computing a Maximal Independent set and computing a degree+1-list coloring can be done in O(logn) rounds of LOCAL on n-node graphs of constant maximum degree ΔO(1).

3 Our Main Methods

3.1 Ensuring Rendezvous from Crossing: CarefulWalk

Our model assumes that the agents have no detection mechanism other than that they know if they are at the same node in a given round, in which case they achieve rendezvous. In particular, the agents cannot detect if they cross the same edge in opposite directions in the same round, and this does not count as achieving rendezvous. In this section, we show that having a labeled line makes this distinction irrelevant.

We give a simple procedure (Algorithm 1) to cross edges which ensures that the agents cannot exchange positions on the line without achieving rendezvous. To do so, CarefulWalk takes 4 rounds to cross each edge. Its basic idea is to have the agents behave differently depending on whether they cross an edge in the direction of increasing or decreasing IDs. The same can be achieved given a common orientation of the edges instead of node labels.

Algorithm 1 CarefulWalk, for crossing an edge e=uv.
Figure 1: Illustration of the moves performed by CarefulWalk to cross an edge uv. The five circles below each 0 (resp. 1) represent the node of lower ID (resp. higher ID) at 5 successive time steps. Arrows represent the moves (or absence thereof) of an agent in a CarefulWalk crossing the edge. The left and middle figures depict crossing the edge in opposite directions. The right figure depicts two agents performing a CarefulWalk over the same edge simultaneously in opposite directions, achieving rendezvous at time step 4, after 3 moves. The 5-bit strings in the figures describe the positions occupied the agents over the 5 time steps.

Consider an algorithm 𝒜 for the moves of an agent. Let care(𝒜) be the algorithm obtained from 𝒜 by replacing each edge-crossing in 𝒜 by a call to CarefulWalk, and stretching each stay at a node by a factor of 4. This new algorithm basically does the same moves as 𝒜 at a slower pace. We show in Theorem 4 that this transformed algorithm is able to achieve rendezvous as 𝒜 would in the stronger setting where the agents can detect simultaneous edge-crossing.

Theorem 4.

Let G be a labeled graph, with agents placed at two locations vα and vβ of the graph, T an integer, and let 𝒜 be a deterministic algorithm for the agents’ moves. Suppose that for any delay τ0 between the wake-up times of the two agents, with simultaneous edge-crossing counting as rendezvous, the two agents achieve rendezvous in at most T rounds when executing 𝒜 on the graph G with vα and vβ as the starting nodes for the two agents.

Let care(𝒜) be the algorithm obtained from 𝒜 by replacing every edge-crossing by a CarefulWalk, and every action of staying at a node by 4 such actions. Then in the setting without simultaneous edge-crossing, on the same graph G and with the same starting nodes vα and vβ, care(𝒜) has the agents achieve rendezvous in at most 4T rounds, for any delay τ0 between the agents’ wake-up times.

Theorem 4 allows us to design algorithms for the simpler setting where agents detect simultaneous edge-crossing, and automatically translate rendezvous results about these algorithms to the setting where agents only achieve rendezvous if at the same node in a given round, which is the original setting of interest. This dramatically simplifies the work of the algorithm designer. Importantly, on the line, having a detection mechanism for simultaneous edge-crossing prevents the agents to swap positions without achieving rendezvous.

Proposition 5.

Consider a canonical naming of the nodes on the infinite line as relative integers, s.t. for any i, node vi is adjacent to nodes vi1 and vi+1 on the line. Let a,b,c,d be integers and T,T be two rounds with T>T. For each t[T,T], let x(t) (resp. y(t)) be the location of agent α (resp. β) in round t. Consider the following two scenarios:

  1. 1.

    (Agents swap positions on the line) ab<cd, x(T)=a<c=x(T) and y(T)=d>b=y(T).

  2. 2.

    (An agent scans an interval that the other agent stays in) abcd, z[a,d], t[T,T] s.t. x(t)=z, and t[T,T], y(t)[b,c].

If simultaneous edge-crossing counts as rendezvous, then in both scenarios, the agents necessarily meet in a round between T and T.

3.2 Computing Ruling Sets on Paths

In this section, we give a LOCAL algorithm for computing what is essentially a ruling set over a path, but focusing on a subset of the nodes UV.

Definition 6 (Set-Limited Ruling Sets).

Let α and β be two nonnegative integers, G=(V,E) be a graph, and UV a subset of its nodes. A set of nodes S is a U-limited (α,β)-ruling set of G if and only if:

  1. 1.

    SU,

  2. 2.

    For any two nodes u,vS, dist(u,v)α (packing property),

  3. 3.

    For any node uU, vS, dist(u,v)β (covering property).

A standard ruling set of a graph G=(V,E) is a V-limited ruling set of G. As simple examples of standard ruling sets, the whole set of nodes V is an (1,0)-ruling set, a maximal independent set of a graph G is a (2,1)-ruling set of that graph, and a maximal independent set of its order-k power graph Gk is a (k+1,k)-ruling set of G.

Our U-limited ruling sets are exactly like standard ruling sets, except that they only need to cover nodes in U and can only contain nodes from U. Importantly, they are not equivalent to computing a standard ruling set of G[U]: in our definition of U-limited ruling sets, we measure the distances in the original graph G, not G[U]. Taking a finite set U on an infinite graph G means that its complexity can be measured as the longest time taken by a node to terminate, as in the standard LOCAL model, even as the communication takes place on an infinite graph. This algorithm will be the basis of our subsequent algorithm that performs a similar task, but additionally colors the ruling set and is early stopping.

Algorithm 2 PathRulingSet.
Lemma 7.

Executed by a set of nodes U with identifiers between 1 and n on an infinite labeled line, Algorithm 2 computes a U-limited (R,R1) ruling set of G in O(Rlogn) rounds of deterministic LOCAL.

3.3 Computing Colored Ruling Sets on Paths, and Stopping Early

The previous section considered the standard LOCAL model of distributed computing, applied to a finite set of nodes (at most n, due to the bound on the nodes’ identifiers), even if on an infinite line. In this section, we use this algorithm to compute the same kind of object on the infinite line, in the Early Stop paradigm.

Our algorithm gradually computes a ruling set S of the infinite line, in the sense that we provide an algorithm in which every node on the infinite line eventually decides whether it is part of the ruling set or not, and in any given round, the set of nodes that committed to their output and joined the set S is a ruling set over the nodes that committed to their output. At a high level, Algorithm 3 partitions the nodes on the infinite line according to their IDs, and computes a ruling set over each set of nodes of this partition using Algorithm 2 (PathRulingSet) from the previous section. The computation done by the set of nodes Vi={vV:log(v)=i} is well defined as it is performed by a finite set of nodes, with bounded IDs. After Θ(Ri) rounds, the nodes in Vi have all finished their execution of PathRulingSet, as did previously nodes in the sets Vj, j<i. Once Vi has computed a Vi-limited ruling set Si, we use it to extend the current ruling set S, that only contains nodes from V<i at this point. This is done greedily. We first have each node vSi join S if and only if S does not already contain a node at distance <R from v on the line. A second greedy extension slightly improves the covering distance. Finally, we assign a color to the new members of the ruling set.

Algorithm 3 ES-ColPathRulingSet.
Lemma 8.

For any round T, let UT be the set of nodes that committed to their outputs by round T, STUT the set of nodes that joined S by round T, and χT:ST[17] the colors assigned to nodes in ST. Algorithm 3 achieves the following:

  1. 1.

    A node v of label (v) terminates in O(Rlog(v)) rounds,

  2. 2.

    At termination, a node v outputs whether it is part of the ruling set S or not, and if part of S, it also outputs a color between 1 and 17. If outside S, v knows the members of S at distance R1 from itself together with their colors.

  3. 3.

    ST is a UT-limited (R,R1)-ruling set, and χT is a proper coloring of G9R1[ST].

4 Our Optimal Rendezvous Algorithm

4.1 The Algorithm

In this section, we describe our deterministic rendezvous algorithm. We actually describe an algorithm working in the setting where agents achieve rendezvous when crossing the same edge in opposite directions. By Theorem 4, this implies an algorithm with similar asymptotic complexity for the setting where agents only detect each other if at the same node in a given round.

Recall that both agents behave according to the same algorithm, which is just a sequence of moves. In most of this section, we take the perspective of one of the two agents, which we will denote as agent α. We call agent β the other agent. vα and vβ are as before the starting nodes of agents α and β.

The two basic building blocks of our algorithm are ZWalk and ES-ColPathRulingSet, respectively Algorithm 4 and Algorithm 3. ZWalk is simply a procedure in which the agent executing it scans the 2L+1 nodes of the distance-L neighborhood of the node it starts the ZWalk from, in 4L rounds. Note that while the agents do not have a common orientation, they have a sense of direction in that they know the port from which they enter a node. This allows the agents to keep walking in the same direction for successive steps, and to change direction, as desired. Most moves taken during our algorithm are done in executions of ZWalk. ES-ColPathRulingSet is the early-stopping algorithm for computing colored ruling sets presented in the previous section.

Algorithm 4 ZWalk(L), agent α moves on the path up to distance L from v on both sides.
Algorithm 5 Rendezvous algorithm for agent α starting at node vα.

Our algorithm (Algorithm 5) consists of a loop with a parameter L that doubles between iterations. Inside the loop are two phases, which we call the discovery phase and the searching phase. In the discovery phase, an agent explores the distance-L neighborhood around their starting position, roughly doubling how much of the network they know about. The agents use this information to compute a colored ruling set of parameter R, where RL/16 is the largest power of 4 s.t. the distance-O(R) neighborhood of their starting location contains a ruling-set node. Of course, as the agents have different views, they do not necessarily end up computing a ruling-set with the same parameter R, and we denote by Rα,L and Rβ,L the distance of the ruling sets computed by agents α and β in their phase L. The agents use their respective computed ruling set to search for one another, using procedure SearchingWalk (Algorithm 6), which constitutes the searching phase.

In SearchingWalk (Algorithm 6), each agent goes to a nearby colored node of the computed ruling set. Once at this node, the agents alternate calls to ZWalk and waiting periods, according to the color of the ruling set node. The fact that close enough ruling set nodes have distinct colors guarantees that the two agents, if they have computed a ruling set with the same distance RD, will have different behaviors at some point. That is, one of the agents will be performing a ZWalk while the other is not moving. The agents achieve rendezvous as this happens.

Algorithm 6 SearchingWalk(R,L,r,c), in which agent α searches in the distance-8R neighborhood of node r close to its initial position vα.

4.2 Analysis Overview

Missing from the previous section’s rough overview is notably how the argument is robust to the fact that agents can have a delay of τ between their wake-up times. We now explain how, in the next sections, we analyze our algorithm and prove Theorem 1, that is, that the agents achieve rendezvous in O(Dlogmin) rounds when executing Algorithm 5.

Organization of the proof.

To prove Theorem 1, we first bound in Section 4.3 how out-of-sync the two agents can be without trivially achieving rendezvous. Knowing that a delay τ that exceeds some threshold Θ(D) necessarily implies that the agents achieve rendezvous in O(D) rounds, the rest of the analysis can assume some degree of synchronization between the agents.

We then argue that as the agents reach a large enough value of L (of order Θ(Dlogmin)) in their executions of Algorithm 5, they compute nodes from colored ruling sets parameterized by distances of order at least Ω(D). When using such ruling set nodes in their executions of SearchingWalk (Algorithm 6), the agents can achieve rendezvous in two different ways. If the two agents have computed nodes from distinct ruling sets (i.e., the distance parameters of their ruling sets do not match), the agent with the larger distance is guaranteed to find the other agent. This follows from the agent with the smaller distance parameter being constrained to some interval on the line, which we show gets fully explored by the agent with the larger parameter. We show this in Section 4.4.1. The analysis for when the two agents computed nodes from the same ruling set (i.e., with the same distance parameter) is in Section 4.4.2. There, we argue that rendezvous is easily achieved if the two agents decided to go to the same node of the ruling set, and if not, they find each other from the fact that they perform SearchingWalk from nodes that are both close enough to one another, and are colored with distinct colors. The various arguments are put together in Section 4.5.

Notation and preliminary remarks.

We use the following notation:

  • For each L{2ii}, Tα,L is the round in which agent α starts its discovery phase with parameter L (line 3 in Algorithm 5). Tβ,L is the equivalent for agent β.

  • T𝗋𝖽𝗏{} is the round in which the agents first achieve rendezvous ( if the agents never do so).

  • As previously in the paper, we identify the infinite line with the relative integers. For each t, let x(t) (resp. y(t)) be the position of agent α (resp. β) in round t. We assume α to be the first agent to wake up, so that y(t)=y(0)=vβ for all tτ.

  • For each L{2ii}, let Rα,L({4ii}[1,L/16]){} be the value of R for agent α for the loop iteration of parameter L. Rβ,L represents the same quantity for β, and the value represents the fact that no valid R was found for this loop iteration.

A useful remark about our algorithm is that the discovery and searching phases of our agents have fixed runtimes.

Proposition 9.

For each L{2ii}, we have:

  1. 1.

    Tβ,L=Tα,L+τ,

  2. 2.

    Tα,L=28(L1).

Proof.

The loop iteration of Algorithm 5 with a given value of L takes 28L rounds. Indeed, the discovery phase is a ZWalk of parameter L, taking 4L rounds. Whether some R=4j is found such that uNR(vα),Nκ3Rlog(u)(u)NL(vα) or not, the rest of the loop always takes 24L rounds. Either these rounds are spent waiting at vα, or they are spent executing SearchingWalk (Algorithm 6). SearchingWalk has this complexity that is a function of L only because each of its actions whose runtime increases with R is compensated by a waiting period whose time decreases with R by the exact same amount. 2×L rounds are spent traveling and waiting between vα and r, and 11×2L are spent in 11 calls to ZWalk(8R) and/or waiting periods, for a total of 24L rounds.

The results follow from the just established formulas Tα,2L=Tα,L+28L and Tβ,2L=Tβ,L+28L, together with the base case Tβ,1=Tα,1+τ.

4.3 First Argument: Out-of-Sync Rendezvous

In this section, we show that the agents achieve rendezvous relatively fast and easily when the delay τ is large enough. For a high-level intuition, assume that τ is very large compared to D. A property of our algorithm is that after t rounds of being active, an agent has explored a neighborhood of size Θ(t) around its starting location. With a distance of D between the two agents’ starting locations, this means that if after Θ(D) rounds of being active, agent α has reached the starting location of agent β. If β is still asleep as this happens, we have that agent α finds it as it reaches vβ for the first time. We essentially show an extension of this for smaller values of τ.

We make some simple observations about the positions of the agents, from which it immediately follows that a delay of 10D or more makes the agents achieve rendezvous in O(D) rounds.

Proposition 10.

Let L=2i for some integer i.

  1. 1.

    For all tTα,L+L/2, |x(t)vα|L/2.

  2. 2.

    For all z[vαL,vα+L], t[Tα,L,Tα,L+3L] s.t. x(t)=z.

Proof.

For the first inequality, first note that by definition x(Tα,L)=x(0)=vα since the agent always returns at vα before starting a new loop iteration. This immediately implies that |x(t)x(0)|L/2 for t[Tα,L,Tα,L+L/2], as agents can only cross one edge per round. For smaller t (t[0,Tα,L], let us consider the movements done in loop iterations for smaller values of L. As an agent executes a ZWalk with some parameter d, it stays at distance d from the node where it started its execution. As a results, all calls to ZWalk as part of previous discovery phases have kept the agent at distance L/2 from x(0)=vα. As for the movements done in the searching phase, the agent moves at distance at most 2R1+8R<L from vα. Indeed, at most 2R1 are done to go to a nearby ruling set node, from which ZWalk is called with parameter 8R, and RL/16.

The second item simply follows from the fact that a ZWalk of parameter L consists of going L steps away from the starting position, then taking 2L steps in the other direction. Therefore, either x(Tα,L+L)=vαL and x(Tα,L+3L)=vα+L, or x(Tα,L+L)=vα+L and x(Tα,L+3L)=vαL. In either case, the entire interval [vαL,vα+L] is swept.

Lemma 11.

Let L=2logD+1. Either τ<5L/210D, or T𝗋𝖽𝗏Tα,L+3LO(D).

Proof.

Note that L[2D,4D1]. If τ5L/2, then for all tTα,L+3LTα,L+τ+L/2=Tβ,L+L/2, |y(t)vβ|L/2 by Proposition 10. Because |vαvβ|=D, this also implies that |y(t)vα|D+L/2L for all tTα,L+3L. Since α explores the entire distance-L neighborhood of vα between Tα,L+L and Tα,L+3L by Proposition 10, the two agents achieve rendezvous before round Tα,L+3L by Proposition 5.

4.4 Second Argument: In-Sync Rendezvous

Suppose now that the delay between the agents is less than 10D. This implies that for sufficiently large values of L (greater than some Θ(D)), the discovery and searching phases of parameter L of the two agents mostly overlap. We argue now that in this case, the agents can rely on the searching phase to achieve rendezvous, once L has reached a large enough value (of order Θ(Dlogmin)).

Recall that Rα,L and Rβ,L are the values R computed by the two agents in the loop iteration of parameter L. Rα,L is the maximal value R{4ii}[0,L/16] such that for some node u within distance R from vα, the output of u in ES-ColPathRulingSet(R) can be inferred from nodes within distance L from vα. Rα,L= indicates that no such value R exists for the loop iteration L. Rβ,L is the same variable for agent β.

The output of a node u in ES-ColPathRulingSet(R) includes a node from a (R,R1)-ruling set within distance R1 from u (possibly u itself), by Lemma 8. In a loop iteration where Rα,L, this means that α has learned about a node from the (Rα,L,Rα,L1)-ruling set computed by algorithm ES-ColPathRulingSet(Rα,L) at distance at most 2Rα,L1 from vα. We denote rα,L this node, and cα,L the color it got imparted in ES-ColPathRulingSet(Rα,L).

Recall that min is the smallest label within distance D from one of the agents’ starting locations, i.e., min{(u)uND(vα)ND(vβ)}, and that κ3 is a universal constant s.t. a node u of label (u) executing ES-ColPathRulingSet(R) computes its output in at most κ3Rlog(u) rounds.

Lemma 12.

If L8κ3Dlogmin+128D and L{2ii}, we have Rα,L2D and Rβ,L2D.

Proof.

Let vminND(vα)ND(vβ) be the node s.t. (vmin)=min and RD=4log4(2D). Note that 2DRD<8D, dist(vmin,vα)2DRD, and dist(vmin,vβ)2DRD.

Consider lines 5 and 6 in Algorithm 5. Rα,L is the largest value that satisfies the following three properties: Rα,L is a power of 4, Rα,LL/16, and agent α has discovered enough of the line in its discovery phase of parameter L to compute the output of at least one node within distance Rα,L from vα in an execution of ES-ColPathRulingSet(Rα,L). Rβ,L is defined similarly for agent β. We show that all these properties hold for RD=4log4(2D) with the lower bound on L given as hypothesis, which implies the lemma.

RD is a power of 4 by definition. Also, since L128D and RD<8D, we have RDL/16. Node vmin is at distance at most 2DRD from vα. Finally, consider the distance-(κ3RDlogmin) neighborhood of vmin. From the bound on the distance between vmin and vα, and RD<8D, it holds that Nκ3RDlogmin(vmin)N8κ3Dlogmin+2D(vα)NL(vα). This implies that SRD for SRD defined as in lines 5 and 6 of Algorithm 5, and therefore, Rα,LRD2D. The same holds for agent β.

4.4.1 Mismatched Ruling Sets Rendezvous

We first consider the case where one of the agents has computed part of a ruling set of higher distance R than the other agent. As Rα,L and Rβ,L are powers of 4, Rα,L>Rβ,L implies that Rα,L4Rβ,L. This large difference between the two distances allows us to prove rendezvous by similar arguments as in the previous section (Lemma 11).

Lemma 13.

Suppose that Rα,LRβ,L and max(Rα,L,Rβ,L)D. Then T𝗋𝖽𝗏Tα,L+7LO(L).

Proof.

Assume τ10D as otherwise Lemma 11 already yields the claim.

Let agent α have computed the ruling set of higher distance, i.e., Rα,L>Rβ,L and Rα,LD. Note that Rα,LL/16, so L16D8τ/5. In the first L rounds of SearchingWalk (rounds Tα,L+4L to Tα,L+5L), α moves to the ruling set node rα,L at distance at most 2Rα,L1 from vα. It then performs a ZWalk of parameter 8Rα,L. As a result, all the nodes within distance 8Rα,L(2Rα,L1)D>5Rα,L from vβ are explored by α between round Tα,L+5L and Tα,L+6L.

Consider agent β during the same rounds. We know that β started its discovery phase of parameter L in round Tβ,L=Tα,L+τTα,L+L. Therefore, between round Tα,L+5L and Tα,L+6L, β has finished its discovery phase of parameter L and is either staying idle at vβ or executing SearchingWalk. Either way, β remains within distance (2Rβ,L1)+8Rβ,L(5/2)Rα,L from vβ in those rounds.

Therefore, between round Tα,L+5L and Tα,L+6L, β stays within an interval of nodes while α fully explores that interval of nodes. By Proposition 5, the agents achieve rendezvous by round Tα,L+6L. The case Rβ,L>Rα,L is similar, only introducing an extra τ10DL to the number of rounds needed to achieve rendezvous.

4.4.2 Common Ruling Set Rendezvous

The only case that remains to analyze is that where Rα,L=Rβ,L. We first show that if the agents go to the same node from the ruling set, they easily achieve rendezvous. Otherwise, they achieve rendezvous as they perform successive calls to ZWalk according to the (distinct) colors given to rα,L and rβ,L by ES-ColPathRulingSet.

Figure 2: Timeline of an execution of SearchingWalk by the two agents, with colors c=𝟷𝟶𝟷𝟶𝟶 and c=𝟷𝟶𝟷𝟷𝟶. Horizontal solid lines represent movement (mainly, calls to ZWalk) while dotted lines represent waiting. Rendezvous occurs during the processing of bit i=3.
Lemma 14.

Suppose that Rα,L=Rβ,LD and rα,L=rβ,L. Then T𝗋𝖽𝗏Tα,L+5LO(L).

Proof.

As before we assume that τ10D, since Lemma 11 otherwise already yields the claim. As DRα,L, and Rα,LL/16, this implies τ5L/8.

The agents both take at most 2Rα,L1L/8 rounds from the start of their respective SearchingWalk to reach the node rα,L=rβ,L. Therefore, between rounds Tα,L+4L+L/8 and Tα,L+5L, α is at rα,L=rβ,L. β reaches this node by round Tβ,L+4L+L/8Tα,L+τ+4L+L/8Tα,L+4L+3L/4 at the latest. Thus the agents necessarily meet at rα,L=rβ,L during the beginning of SearchingWalk before round Tα,L+5L.

Finally, we tackle the last case of our analysis: the agents have computed nodes from the same ruling set, and they achieve rendezvous using the colors that were assigned to these nodes by ES-ColPathRulingSet.

Lemma 15.

Suppose that Rα,L=Rβ,LD and rα,Lrβ,L. Then T𝗋𝖽𝗏Tα,L+28LO(L).

Proof.

Again let τ10D (Lemma 11), and note that τ10Rα,LL.

Consider cα,L and cβ,L the colors assigned to the nodes rα,L and rβ,L by the execution of ES-ColPathRulingSet(Rα,L). As we have that dist(vα,rα,L)2Rα,L1, dist(vβ,rβ,L)2Rα,L1, and dist(vα,vβ)DRα,L, it holds that nodes rα,L and rβ,L are at distance dist(rα,L,rβ,L)5Rα,L2. Algorithm ES-ColPathRulingSet(R) computes a colored (R,R1)-ruling set such that nodes of the ruling set get distinct colors when at distance 9R1 or less from one another (Lemma 8). Therefore, cα,Lcβ,L.

Let i be the first bit where cα,L and cβ,L differ. Let us assume that α has a 1 at index i of its color while β has a 0, the opposite case being similar. Between round Tα,L+5L+(2i+1)32Rα,L and Tα,L+5L+(2i+3)32Rα,L, agent α is executing ZWalk(8Rα,L) twice in succession. In particular, α scans the entire distance-8Rα,L neighborhood of rα,L between round Tα,L+5L+(2i+2)32Rα,L and Tα,L+5L+(2i+3)32Rα,L. Recall that τ10D10Rα,L and Tβ,L=Tα,L+τ. Agent β is staying at rβ,L for 64Rα,L rounds starting from round Tβ,L+5L+(2i+1)32Rα,LTα,L+5L+(2i+1)32Rα,L+10Rα,L. Therefore, α necessarily finds β during its second ZWalk for bit i, by Proposition 5. See Figure 2 for an illustration with i=3 as first index where their colors differ. The bound on T𝗋𝖽𝗏 simply follows from the runtime of SearchingWalk.

4.5 Full Analysis

We now have analyzed all the cases necessary to show Theorem 1.

Theorem 1. [Restated, see original statement.]

There is a deterministic algorithm for solving rendezvous on the infinite labeled line in O(Dlogmin) rounds from the wake-up time of the first agent, where D is the initial distance between the two agents and min is the smallest label within distance O(D) from the agents’ starting locations.

Proof.

Recall that Tα,LO(L) (Proposition 9). If the delay τ between the startup times of the two agents is 10D or larger, by Lemma 11, the agents reach rendezvous in Tα,O(D)+O(D)O(D) rounds (T𝗋𝖽𝗏O(D)). We assume a smaller delay τ in what follows.

By Lemma 12, we know that Rα,LD and Rβ,LD for L>Θ(Dlogmin). For L a large enough Θ(Dlogmin), if during the loop iteration of parameter L the agents settle on different values Rα,LRβ,L for their ruling sets’ distances, they achieve rendezvous before round Tα,L+O(L)=O(L)=O(Dlogmin) by Lemma 13. If they have the same value Rα,L=Rβ,L, then they also achieve rendezvous before round Tα,L+O(L)=O(L)=O(Dlogmin), whether they go to the same ruling set node (Lemma 14) or different ones (Lemma 15).

References

  • [1] Steve Alpern. The rendezvous search problem. SIAM Journal on Control and Optimization, 33(3):673–683, 1995. doi:10.1137/S0363012993249195.
  • [2] Steve Alpern and Shmuel Gal. The Theory of Search Games and Rendezvous, volume 55 of International series in operations research and management science. Springer, 2003. doi:10.1007/b100809.
  • [3] Vic Baston and Shmuel Gal. Rendezvous on the line when the players’ initial distance is given by an unknown probability distribution. SIAM Journal on Control and Optimization, 36(6):1880–1889, 1998. doi:10.1137/S0363012996314130.
  • [4] Subhash Bhagat and Andrzej Pelc. Deterministic rendezvous in infinite trees. Theoretical Computer Science, 984:114313, 2024. doi:10.1016/j.tcs.2023.114313.
  • [5] Yann Bourreau, Ananth Narayanan, and Alexandre Nolin. Optimal deterministic rendezvous in labeled lines. Full version of this paper, 2025. doi:10.48550/arXiv.2505.04564.
  • [6] Richard Cole and Uzi Vishkin. Deterministic coin tossing with applications to optimal parallel list ranking. Information and Control, 70(1):32–53, 1986. doi:10.1016/S0019-9958(86)80023-7.
  • [7] Andrew Collins, Jurek Czyzowicz, Leszek Gasieniec, Adrian Kosowski, and Russell A. Martin. Synchronous rendezvous for location-aware agents. In Proc. Int. Symp. on Distributed Computing (DISC), volume 6950 of LNCS, pages 447–459. Springer, 2011. doi:10.1007/978-3-642-24100-0_42.
  • [8] Anders Dessmark, Pierre Fraigniaud, Dariusz R. Kowalski, and Andrzej Pelc. Deterministic rendezvous in graphs. Algorithmica, 46(1):69–96, 2006. doi:10.1007/s00453-006-0074-2.
  • [9] Yoann Dieudonné, Andrzej Pelc, and Franck Petit. Almost universal anonymous rendezvous in the plane. Algorithmica, 85(10):3110–3143, 2023. doi:10.1007/s00453-023-01122-2.
  • [10] Younan Gao and Andrzej Pelc. Sniffing helps to meet: Deterministic rendezvous of anonymous agents in the grid. Theoretical Computer Science, 1050:115395, 2025. doi:10.1016/j.tcs.2025.115395.
  • [11] Juho Hirvonen and Jukka Suomela. Distributed Algorithms 2020. Online book, 2020. Accessed on Feb 8, 2025. Source code at github.com/suomela/da2020. URL: https://jukkasuomela.fi/da2020/.
  • [12] Amos Korman, Jean-Sébastien Sereni, and Laurent Viennot. Toward more localized local algorithms: removing assumptions concerning global knowledge. Distributed Computing, 26(5-6):289–308, 2013. doi:10.1007/s00446-012-0174-8.
  • [13] Evangelos Kranakis, Nicola Santoro, Cindy Sawchuk, and Danny Krizanc. Mobile agent rendezvous in a ring. In Proc. IEEE Int. Conf. on Distributed Computing Systems (ICDCS), pages 592–599. IEEE, 2003. doi:10.1109/ICDCS.2003.1203510.
  • [14] Juhana Laurinharju and Jukka Suomela. Brief announcement: Linial’s lower bound made easy. In Proc. ACM Symp. on Principles of Distributed Computing (PODC), pages 377–378. ACM, 2014. doi:10.1145/2611462.2611505.
  • [15] Wei Shi Lim and Steve Alpern. Minimax rendezvous on the line. SIAM Journal on Control and Optimization, 34(5):1650–1665, 1996. doi:10.1137/s036301299427816x.
  • [16] Nathan Linial. Locality in distributed graph algorithms. SIAM Journal on Computing, 21(1):193–201, 1992. doi:10.1137/0221015.
  • [17] Gianluca De Marco, Luisa Gargano, Evangelos Kranakis, Danny Krizanc, Andrzej Pelc, and Ugo Vaccaro. Asynchronous deterministic rendezvous in graphs. Theoretical Computer Science, 355(3):315–326, 2006. doi:10.1016/j.tcs.2005.12.016.
  • [18] Avery Miller and Andrzej Pelc. Fast deterministic rendezvous in labeled lines. Distributed Computing, 38(4):435–489, 2025. doi:10.1007/s00446-025-00489-5.
  • [19] Andrzej Pelc. Deterministic rendezvous algorithms. In Paola Flocchini, Giuseppe Prencipe, and Nicola Santoro, editors, Distributed Computing by Mobile Entities, Current Research in Moving and Computing, volume 11340 of LNCS, pages 423–454. Springer, 2019. Also at arxiv:2303.10391. doi:10.1007/978-3-030-11072-7_17.
  • [20] David Peleg. Distributed Computing: A Locality-Sensitive Approach. SIAM, 2000. doi:10.1137/1.9780898719772.
  • [21] Thomas C. Schelling. The Strategy of Conflict. Harvard University Press, 1981. First published in 1960. URL: https://www.hup.harvard.edu/books/9780674840317.
  • [22] Amnon Ta-Shma and Uri Zwick. Deterministic rendezvous, treasure hunts, and strongly universal exploration sequences. ACM Transactions on Algorithms, 10(3):12:1–12:15, 2014. doi:10.1145/2601068.