Abstract 1 Introduction 2 Preliminaries 3 Algorithms 4 Lower bounds 5 Discussion 6 Conclusion References Appendix Appendix A Proof of Lemma 1 Appendix B Proof of Theorem 2 Appendix C Proof of Theorem 3 Appendix D Proof of Theorem 5 Appendix E Proof of Lemma 6

Approach of Agents with Restricted Fuel Tanks

Adam Ganczorz ORCID Institute of Computer Science, University of Wrocław, Poland Tomasz Jurdzinski ORCID Institute of Computer Science, University of Wrocław, Poland Andrzej Pelc ORCID Département d’informatique, Université du Québec en Outaouais, Gatineau, Canada Grzegorz Stachowiak ORCID Institute of Computer Science, University of Wrocław, Poland
Abstract

Two mobile agents, modelled as points in the plane moving at speed 1, have to get at a distance at most 1 from each other. This task is known as approach or rendezvous in the plane. An adversary initially places both agents at distinct points, called their bases, at distance at most D, and wakes them up at possibly different times. Each of the agents has a fuel tank that allows them to traverse a trajectory of length D, and can be replenished at the base of the agent. The algorithm of each agent consists of a series of actions which are either moves at a chosen distance in a chosen direction or staying idle for a chosen period of time. For a given instance of the approach task, the execution time of an approach algorithm is the length of the period between the start of the later agent and the moment of approach.

Our goal is to design approach algorithms with optimal time complexity. We consider two independent coherence assumptions. One of them is time coherence, i.e., agents start simultaneously, and the other is orientation coherence: agents have compatible compasses, showing the same North direction. Our main result is establishing optimal time complexity of the approach problem with restricted fuel tanks. It turns out that this optimal complexity heavily depends on the above coherence assumptions. If both of them are satisfied then approach can be performed in time O(D2) and we show that this complexity is optimal. If any of the two coherence assumptions is missing then approach can be performed in time O(D2D) and we prove that this order of magnitude cannot be improved.

Our main technical contribution are lower bounds showing that, for each of the considered scenarios, our fairly natural approach algorithms are, in fact, optimal.

Keywords and phrases:
mobile agent, approach, rendezvous, plane, restricted energy
Funding:
Andrzej Pelc: Partially supported by NSERC discovery grant RGPIN 2024-03767 and by the Research Chair in Distributed Computing at the Université du Québec en Outaouais.
Copyright and License:
[Uncaptioned image] © Adam Ganczorz, Tomasz Jurdzinski, Andrzej Pelc, and Grzegorz Stachowiak; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Distributed algorithms
Funding:
Supported by the National Science Center, Poland (NCN), grant 2020/39/B/ST6/03288.
Editor:
Dariusz R. Kowalski

1 Introduction

1.1 The background

Two mobile agents, modelled as points moving in the plane, have to get at a distance at most 1 from each other. This task is known as approach or rendezvous in the plane and has numerous applications. The final distance, normalized to 1, should be viewed as the distance at which agents can “see” each other, hence the goal of approach is mutual perception. In human interaction, people may want to meet in a large terrain, where meeting means seeing each other. In robotics applications, two mobile robots, independently deployed in a contaminated territory and collecting samples of the ground, may need to meet in order to exchange these sample and coordinate further actions. Robots have limited energy, either a fuel tank or an electric battery, that allows them to travel a certain maximum distance and then has to be replenished at the base.

1.2 The model and the problem

We consider two mobile agents modelled as points moving in the plane, that have to get at a distance at most 1 from each other. An adversary initially places both agents at distinct points, called their bases, at distance at most D, and wakes them up at possibly different times. Both agents execute the same deterministic algorithm. If they were identical then, in the case of simultaneous start and identical compasses, they would move along trajectories that are shifts of each other, and consequently, at any time, their distance would be the same as at the start, thus precluding approach, for any D>1. In order to allow approach, this symmetry has to be broken. We do this in the way that is most common in the literature: agents have distinct labels that are integers from a set {1,,L}, where L is some constant number. This may be viewed as the set of all identifiers used by the manufacturer of the robots. We make an assumption, standard in rendezvous/approach literature (cf. e.g., [4, 10]) that each agent only knows its own label that can be used as a parameter in a common deterministic algorithm they execute. Each agent is equipped with a clock and a compass showing the cardinal directions. Clocks of the agents tick at the same rate and the clock of each agent starts at its wake-up. Compasses may be inaccurate and arbitrarily distorted, i.e., for each agent, its North can point in any (fixed) direction. Each of the agents has a fuel tank that allows them to traverse a trajectory of length D, and can be replenished at the base of the agent.111The discussion of the size of the tank is postponed to Section 5.

The execution of an approach algorithm by an agent consists of a series of actions. An agent can either choose a direction α (according to its compass) and a distance x, in which case it travels distance x in direction α with speed 1, or it can stay put at the current point for a chosen time t. Whenever agents get at a distance at most 1, the algorithm is interrupted and the goal of approach is achieved. For a given instance of the approach task, the execution time of an approach algorithm is the length of the period between the start of the later agent and the moment of approach.

1.3 Our results

Our goal is to design approach algorithms with optimal time complexity. We consider two independent coherence assumptions. One of them is time coherence, i.e., agents start simultaneously, and the other is orientation coherence: agents have compatible compasses, showing the same North direction. The presence or absence of these two assumptions yields four possible scenarios. Our main result is establishing optimal time complexity of the approach problem for each of these scenarios. It turns out that this optimal complexity heavily depends on the above coherence assumptions. If both of them are satisfied then approach can be performed in time O(D2) and we show that this complexity is optimal. If any of the two coherence assumptions is missing then approach can be performed in time O(D2D) and we prove that this order of magnitude cannot be improved.

Our main technical contribution are lower bounds showing that, for each of the considered scenarios, our fairly natural approach algorithms are, in fact, optimal. In both our Ω(D2D) lower bound proofs, we consider the most difficult instances of the approach problem, when bases of the agents are at a distance exactly D. For these instances, approach is only possible in short time periods in which both agents are close to their maximal range, i.e., at distance D/2 from their respective bases. We will prove that these time periods must be separated by time segments of length Ω(D). Due to lack of simultaneous start or of compass compatibility, any of these time periods may be necessary for approach, depending on the instance. In view of the above, the main difficulty is proving that the number of these time periods is Ω(DD), which will imply the lower bound Ω(D2D) on the time of approach.

1.4 Related work

The task of rendezvous of mobile agents has been extensively studied, both when agents move in graphs, and when they move in the plane. For a survey of randomized rendezvous algorithms, see the classic book [1], amd for a survey of deterministic rendezvous, see [16].

Deterministic rendezvous in networks modelled as graphs has been studied under two scenarios. In the synchronous scenario, agents move in synchronous rounds, in each round deciding either to stay put at the current node or to move to an adjacent neighbor. The goal is to get both agents at the same node in the same round. The time of rendezvous is the number of rounds used. A time-efficient synchronous rendezvous algorithm was designed in [17], although the problem of optimal synchronous rendezvous is still open. In the asynchronous scenario, an agent chooses the edge along which it wants to go but the adversary chooses the speed of the agent during the move. The goal is to meet at a node or inside an edge, and the cost is the number of traversed edges. A polynomial-cost algorithm for asynchronous rendezvous in arbitrary graphs was designed in [10].

Rendezvous in the plane, often called approach, has also been studied both under the synchronous and asynchronous scenarios. In [8, 9], this task was investigated under various assumptions concerning attributes of agents, such as orientation, chirality and speed. An asynchronous approach algorithm in the plane working at cost polynomial in the initial distance and in the lengths of agents’ labels was designed in [4]. The more general task of gathering many agents in the plane was studied in [6, 7, 12], under various assumptions concerning perception capabilities of the agents.

A special, well researched variation of rendezvous, both in graphs and in the plane, is treasure hunt. An inert treasure is hidden at a node of the graph or in a point in the plane, and a mobile agent starting at some other node or point in the plane has to find it. Thus, treasure hunt can be viewed as rendezvous in which one of the agents is permanently inert. Treasure hunt in the plane was considered, e.g., in [3, 15], see also surveys [13, 14]. Treasure hunt in graphs was investigated, e.g., in [2, 5, 11], under some constraints imposed on the mobile agent: in [2], the mobile agent had a restricted fuel tank that could be replenished at the base (as in the present paper), and in [11], the agent was tethered, i.e., attached to the base with a rope of fixed length. To the best of our knowledge, the general task of approach in the plane of agents with restricted fuel tanks has never been studied before.

2 Preliminaries

We will use the following geometric lemma which informally says that two points on tangent circles C1 and C2 of radius r located roughly symmetrically with respect to the tangent line of C1 and C2 are at a distance at most 1, provided that they are in arc-distance O(r) from the common point of C1 and C2. The proof of Lemma 1 is in the Appendix, Section A.

Lemma 1.

Let C1 and C2 be tangent circles of the same radius r, centered at O1 and O2, respectively. Let S be the common point of C1 and C2. For i=1,2, and for any point P on Ci, let αi(P) be the length of the arc PS on Ci. Let y=r/4. Let P1 be a point on C1 such that α(P1)y, and let P2 be a point on C2 such that α1(P1)1/2α2(P2)α1(P1)+1/2. Suppose that either P1 on C1 is counterclockwise from S and P2 on C2 is clockwise from S, or P1 on C1 is clockwise from S and P2 on C2 is counterclockwise from S. Then |P1P2|<1. (See Figure 1.)

Figure 1: Illustration for Lemma 1. The lemma says that, if the arc length of P1S is at most r/4, this length and the length of P2S differ by at most 1/2, then the distance between P1 and P2 is less than 1.

3 Algorithms

This section is devoted to our positive results. We design two approach algorithms: an algorithm with time complexity O(D2) for the strongest scenario where both coherence assumptions are satisfied, and an algorithm with time complexity O(D2D) working even in the weakest scenario where none of the coherence assumptions is satisfied.

For both algorithms, two variations are presented: one for agent Blue and the other for agent Red. This corresponds to a simplified version of our model, in which agents have labels 1 and 2, i.e., they know from the outset how symmetry between them is broken (they know which of them is Blue and which is Red). In Section 3.3, we show how these algorithms can be modified in order to conform with our model, where agents have distinct labels from the set {1,,L} and each agent only knows its label, i.e., it does not know if it is Blue or Red.

3.1 Time 𝑶(𝑫𝟐) for simultaneous start and common orientation

In this section, we design Algorithm Faster working in the strongest scenario where both coherence assumptions are satisfied. We prove that this algorithm has complexity O(D2).

Let O1 be the base of agent Blue and O2 the base of agent Red. Let C1 be the circle of radius D/2 centered at O1 and let C2 be the circle of radius D/2 centered at O2. Let n=4πD. Let A0,,An1 (resp. B0,,Bn1) be points on C1 (resp. on C2) in clockwise order, such that A0 is North of O1 B0 is North of O2, and all distances between points Ai and A(i+1)modn and points Bi and B(i+1)modn are equal. Each agent visits consecutive points on its circle but they start from antipodal points.

Algorithm Faster for agent Blue (Red, resp.): the algorithm works in n phases. In phase i=0,1,n1, agent Blue (Red, resp.) goes from its base straight to Ai (B(i+n/2)modn, resp.) and comes back straight to its base.
The following theorem establishes the correctness and complexity of Algorithm Faster. Its proof is in the Appendix, Section B.

Theorem 2.

Algorithm Faster guarantees approach in time O(D2).

3.2 Time 𝑶(𝑫𝟐𝑫) for arbitrary start delay and arbitrary orientations

In this section, we design Algorithm Slower working even in the weakest scenario where none of the coherence assumptions is satisfied. We prove that this algorithm has complexity O(D2D). Let O1 be the base of agent Blue and O2 the base of agent Red. Let C1 be the circle of radius D/2 centered at O1 and let C2 be the circle of radius D/2 centered at O2. Let n=2πD and let m=4πD. Let A0,,An1 (resp. B0,,Bm1) be points on C1 (resp. on C2) in clockwise order, such that A0 is North of O1 according to agent’s Blue compass, B0 is North of O2 according to agent’s Red compass, and all distances between points Ai and A(i+1)modn and points Bi and B(i+1)modn are equal. Each agent visits consecutive points on its circle. However, agent Blue visits only Θ(D) points on C, waiting in each of them for time Θ(D2), while agent Red visits Θ(D) points on C without any waiting.

Algorithm Slower for agent Blue: The algorithm works in phases. In phase i0, agent Blue goes from its base straight to Aimodn, waits there for time 44πD2, and comes back straight to its base.
Algorithm Slower for agent Red: The algorithm works in phases. In phase i0, agent Red goes from its base straight to Bimodm and comes back straight to its base.

The following result establishes the correctness and complexity of Algorithm Slower. Its proof is in the Appendix, Section C.

Theorem 3.

Algorithm Slower guarantees approach in time O(D2D).

3.3 Algorithms for agents with arbitrary labels

The algorithms presented so far assume that each agent knows in advance whether it is Blue or Red, and therefore it can execute the appropriate version of the algorithm. However, in our model we assume that the agents do not have prior knowledge of their roles. The only way to break symmetry is provided by distinct labels of agents from the set of natural numbers {1,,L}, where the value of L is a constant not known to the agents. Each agent knows only its own label that can be used as a parameter in their common deterministic algorithm.

It turns out that our algorithms can be adjusted to the above scenario at the multiplicative cost in time complexity of the order of O(logL). Since we assume that L is a constant, this does not change the previously established complexities. The idea behind the generalizations is that the original algorithms presented earlier are executed by each agent several times, until the approach happens. The agent uses an appropriate binary encoding of its label in order to decide whether to act as Blue or Red in its ith execution. More precisely, the agent X with the binary encoding of its label equal to l(X) executes the algorithm for Blue in the ith execution if the ith bit of l(X) is equal to 0 and it executes the algorithm for Red otherwise. Using fairly standard encodings of size O(logL) and appropriate proof techniques one can prove that there will appear simultaneously a period in which one of the agents acts as Blue and the other one acts as Red in the first O(logL) executions of the original algorithm designed for agents Blue and Red. These facts will lead to the following result.

Theorem 4.

There exist algorithms for agents with unique labels from the set {1,,L} which:

  • guarantee approach in time O(D2logL) in the model with common orientation and simultaneous start (using the assumption that L is constant, this complexity is O(D2));

  • guarantee approach in time O(D2DlogL) in the model without simultaneous start and without common orientation (using the assumption that L is constant, this complexity is O(D2)).

4 Lower bounds

This section is devoted to our negative results. We present three lower bounds. The first is the lower bound Ω(D2) on the time approach that holds for the strongest scenario with simultaneous start and common orientation. This lower bound shows that our algorithm for this scenario has optimal time complexity. The two other lower bounds concern scenarios when one of the coherence assumptions is not satisfied. If either arbitrary delay between starting times is permitted or different orientations of agents are allowed, we prove that approach requires time Ω(D2D). This result, combined with the complexity O(D2D) of our algorithm working even in the weakest scenario shows that Θ(D2D) is the optimal complexity of approach in all the scenarios except the strongest one.

4.1 Time 𝛀(𝑫𝟐) for simultaneous start and common orientation

As a warm-up, in this section, we prove the lower bound Ω(D2) on the time of approach that holds even for the strongest scenario with simultaneous start and common orientation. In fact we will show the following stronger lower bound implying our result: it turns out that this lower bound holds even for unbounded fuel tanks. Its proof is in the Appendix, Section D.

Theorem 5.

The time of approach for two agents simultaneously starting at a distance at most D, with common orientation and unbounded tanks is Ω(D2).

Proof.

Consider an arbitrary approach algorithm for two agents A and B. Let a(t) (resp. b(t)) be a vector describing the position of agent A (resp. B) relative to its starting point in time t. Let d(t)=a(t)b(t). Let T be the approach time of the algorithm.

For i,j[D4,D42] let ri,j be the rectangle with vertices in points (2i,2j),(2i+2,2j),(2i,2j+2),(2i+2,2j+2).

We will consider only even rectangles, that is the rectangles ri,j where both i and j are even. We say that the algorithm marks the rectangle ri,j if there is a moment t of the execution of the algorithm such that the point d(t) is inside ri,j. As for any t1,t2 such that, |t1t2|1 the length of the vector d(t1)d(t2) is at most 2, the algorithm can mark at most T+1 even rectangles.

Assume that the time of approach T is less than D216. The algorithm can mark at most D216+1 even rectangles, and thus there exists an unmarked even rectangle ri,j. By fixing the base of agent A at point (0,0) and the base of B at point (2i+1,2j+1) the adversary can guarantee that the approach does not occur. This contradiction concludes the proof.

4.2 Geometric preliminaries for 𝛀(𝑫𝟐𝑫) lower bounds

In this section we define the common notions and prove geometric properties useful in lower bounds from Sections 4.4 and 4.5. Some missing proofs will be provided in the full version of the paper.

Consider an arbitrary approach algorithm for two agents A and B. Each agent’s range disc is the disc with radius D/2 centered at the base of the agent. Each agent’s range circle is the boundary of its range disc. We assume that the bases of the agents are at distance D, i.e., their range discs are tangent. Consider the trajectory of an agent between its wake-up and the approach. This trajectory can be partitioned into a sequence of sub-trajectories between consecutive visits of the base, and the final sub-trajectory finishing at the approach. These sub-trajectories are called walks. For each walk, we distinguish its meeting part between the first and last points of the walk at distance at least D/21 from the source. The bisector of the angle between these points is called the walk bisector. The angle between North and the walk bisector of agent A is called the walk angle of agent A. The angle between South and the walk bisector of agent B is called the walk angle of agent B. We define the angle δ=arcsin(1D/21). The meeting area of a walk is the part of the plane bounded by two half-lines with origin at the base, forming angle δ with the walk bisector, and circles of radii D/2 and D/21 centered at the base (see Fig. 2).

Fact 1.

If an agent goes back to its base at the end of a walk w, the intersection of w with the annulus between circles of radii D/21 and D centered at the base of this agent is included in the meeting area of the walk w.

Proof.

In order to get back to the base after leaving the disk Δ with the radius D/21 centered at the base, an agent can only move at distance at most 1 before getting back to the disc Δ. A possible part of the trajectory outside of Δ corresponds to an angle arcsin(1D/21).

Figure 2: The meeting area of a walk: The dashed line is the walk bisector. The marked area is the meeting area, where δ=arcsin(1D/21).

Note that approach can occur only when an agent is in the meeting area of its walk.

Consider a geometric instance I of the approach problem consisting of bases a of agent A and b of agent B. The angle between the segment ab and the half-line with direction North, originating at a is denoted by γ(I). This is also the angle between the segment ab and the half-line with direction South, originating at b.

We define a pair of walks as a two-element set containing a walk of agent Blue and a walk of agent Red. We say that a pair of walks {w1,w2} supports the geometric instance I if these walks are at distance at most 1.

Now, we provide some properties regarding “usefulness” of walks and pairs of walks with respect to the success of approach (cf. Fig. 3).

Figure 3: Illustration for Lemmas 6 and 7. The blue dashed segment is the walk bisector of agent Blue and the red dashed segment is the walk bisector of agent Red.

In the following lemma we focus on a single walk. We show that, a given walk w can belong to a pair of walks assuring approach for an instance I, only if the walk bisector of w is O(1/D)-close to γ(I). In other words, the angle between the segment connecting the bases and the walk bisector of w should be O(1/D). Otherwise, the agent is at distance greater than 1 from any point reachable by the other agent during the walk w of the first agent. The proof of the lemma is in the Appendix, Section E.

Lemma 6.

If |αγ(I)|>3/D, for D>256, then no pair of walks {w1,w2} of agents A and B, such that α is the walk angle of one of the agents, supports the geometric instance I.

Now, we analyze additional requirements which have to be satisfied for a pair of walks in order to make approach feasible, provided that walks from the pair are appropriately synchronized in time and both of them are close to the tangency point of their circles with radius D/2, as expressed in Lemma 6. In Lemma 7 we show that, apart from the requirements of Lemma 6, a pair of walks {w1,w2} might lead to approach only if their walk bisectors are O(1/D)-close. More precisely, if α and β are the angles of bisectors of these walks (clockwise from Blue and counterclockwise from Red) then approach might be possible only if |αβ| O(1/D). Let Xi be the common point of Ci and the bisector of the walk wi, for i{1,2}, where w1 is the walk of Blue and w2 is the walk of Red. Then, the lemma says that, in order to make approach feasible, X1 and X2 should be located almost symmetrically with respect to the line tangent to C1 and C2. By moving one of these points on its circle by a distance O(1D2πD)=O(1), the positions of those points would be ideally symmetric.

Lemma 7.

Consider the set of geometric instances supported by a set {wA,wB} of walks. Let α be the walk angle of agent A, and β the walk angle of agent B. Then, for D>100 and for any I, γ(I)[α+β26D,α+β2+6D].

Lemma 7 gives us the following corollary.

Corollary 8.

Consider the set of geometric instances supported by a set (wA,wB) of walks. Then all angles γ(I), for I, belong to an interval of length at most 12/D, for D>100.

4.3 High-level ideas of lower bounds for scenarios without simultaneous start or without common orientation

In this section we describe the ideas of the lower bounds Ω(D2D) presented in Sect. 4.4 and 4.5.

4.3.1 Time-shifted instances

In order for a pair of walks {w1,w2} to yield approach, both walks have to be sufficiently close geometrically (i.e., their trajectories should be close to each other). These requirements, combined with the assumption that the distance between the bases of agents is the largest still allowing approach, lead to Lemmas 6 and 7. Additionally, the walks w1 and w2 assuring approach should be somehow synchronized. This synchronization is necessary in order to assure that the agents get to the closest parts of the pair of walks at the same time. This property should be satisfied regardless of the delay of starting times of agents, chosen by the adversary.

Lemma 10 formalizes the above intuition and expresses some conclusions regarding time T needed for approach in the following way. First, we restrict attention to such instances I that the angle γ(I) belongs to one of the angle-intervals from the set {gi}i=1z for z=Θ(D) such that:

  • the length of each interval is Θ(1/D),

  • the intervals gi and g1+imodz are separated by an interval of length Θ(1/D).

Then, by Lemma 6, for all instances I,I such that γ(I)gi, γ(I)gi for ii, there is no pair of walks which simultaneously supports I and I. Actually, Lemma 6 implies even a stronger property that no walk w1 belongs to the sets {w1,w2}, {w1,w2} such that the former set supports an instance I and the latter supports I such that Igi, Igi, ii.

Now, assume that one agent starts at time 0 and the start of the other agent is chosen uniformly at random in the period [0,cT] for some constant c, where T is the time of approach of an analyzed algorithm. For this distribution, let pi and qi be random variables corresponding to the fractions of time serving the interval gi by the agents Blue and Red, respectively. Let ri(t) be the expected fraction of time in which both agents simultaneously are in their walks which could support instances from gi in some pairs, for time shift t.

In Lemma 11, we prove a lower bound on the time which agents need to spend in parallel in their walks designated for any interval gi of length Ω(1/D), in order to achieve the approach for those time-shifted instances I for which the angle γ(I) belongs to gi. It turns out that this time has to be Ω(DD). An intuition behind this bound is that an interval of size Ω(1/D) requires Ω(1/D1/D)= Ω(D) separate pairs of walks due to Lemma 7 and each change of a pair of walks takes Ω(D) time. Importantly, walks of both agents cannot help with approach for γ(I)gi and ii, since gi is separated from gi1 and gi+1 by intervals of lengths Ω(1/D) as well – cf. Lemma 6.

In Lemmas 11 and 12 we take advantage of the fact that time shift is an appropriately chosen random variable and each walk can support instances from only one of the intervals gi:

  • In Lemma 11 we show that, for randomly chosen time-shift in [0,10T] with uniform distribution, the expected value of time fraction when both agents perform walks supporting approach for the value of γ(I) in gi, for each i, is at least 1.1cpiqi.

  • Using purely algebraic arguments we show in Lemma 12 that the minimum of piqi is Ω(1/D). This fact holds by substituting the maximum value of i which is O(D) in the place of n in the lemma.

In Theorem 13 we combine the above observations (Lemmas 11 and 12) with Lemma 10, proving a lower bound on the time spent performing walks in the interval gi, for each i and for each starting time of agent B.

4.3.2 Orientation-shifted instances

For the model without common orientation, we carefully choose the set of orientation-shifted instances of size Θ(DD) such that no pair of walks can support more than one instance from . The set consists of instances Ii,j for natural i and j, such that the largest i is O(D), the largest j is O(D), γ(Ii,j) is i times an appropriate value of the order Θ(1/D) and ϕ(Ii,j) is equal to j times an appropriate value of the order Θ(1/D). Thus,

  • If i1i2 then the instances Ii1,j1, Ii2,j2 cannot be supported by the same pair of walks due to the purely geometric argument regarding distance between tangency points of different geometric instances, see Lemma 6.

  • If i1=i2 and j1j2 then the instances Ii1,j1, Ii2,j2 cannot be supported by the same pair of walks due to the fact that the differences between orientation shifts of those instances contradict the geometric argument regarding relative locations of walks bisectors of the walks from the set if both instances are supported by the considered pair of walks (see Lemma 7).

The above observations imply that Ω(DD) pairs of walks have to be scheduled in such a way that both agents performing walks of a pair have to be in the meeting parts of their walks at the same time. However, as an agent is at distance D/2 from its base in a meeting part of its walk, there is time D between two consecutive pairs of walks supporting some instances from . This observation leads to the lower bound expressed in Theorem 15. However, some extra consideration is needed in order to tackle the case that an agent may move away by distance >D/2 from its base which prevents it from getting back to the base. This can happen in the final walk, at the end of which the agent does not return to the base. This special case is tackled in the final part of the proof of Theorem 15.

4.4 Time 𝛀(𝑫𝟐𝑫) for arbitrary start delay

In this section, we prove the lower bound Ω(D2D) on the time of approach that holds if arbitrary start delay is permitted, even if agents have the same orientation. Some missing proofs of lemmas will be provided in the full version of the paper.

Consider an instance I of the approach problem consisting of bases a of agent A and b of agent B, and of a delay between the starting times of the agents. As I is a geometric instance with an additional delay parameter we will call it a time-shifted instance. We say that a pair of walks W of agents A and B supports the time-shifted instance I if W supports the geometric part of the instance I.

Let z=2D, and let gi=[(2i1)2πz,2i2πz) for i=1,2,,z/2.
The following corollary is implied directly by Lemma 6.

Corollary 9.

Consider any walk w of one of the agents, and any walks w1, w2 of the other agent. Let I1 and I2 be time-shifted instances supported by pairs of walks {w,w1} and {w,w2}, respectively. Then γ(I1) and γ(I2) cannot belong to different segments gi.

For any i=1,2,,z/2, we define the set Pi of walks of agent A and the set Qi of walks of agent B as follows.

We say that wPi (resp. wQi), if there exists a walk w of agent B (resp. of agent A), such that the pair of walks {w,w} supports a time-shifted instance I with γ(I)gi. Note that, due to Corollary 9, sets Pi, for different indices i, and sets Qi, for different indices i, are pairwise disjoint.

Without loss of generality, we will assume that agent A starts first. Let 0 be the time when agent A starts, and t0 be the time when agent B starts. The local time of each agent is the time counted since its start. Assume that T is the approach time counted from the start of agent B, for a worst-case instance.

Denote by pi the fraction of time spent by agent A in walks from set Pi in the period [0,11T]. Denote by qi the fraction of time spent by agent B in walks from set Qi in the period [0,T]. (Recall that, we measure time for agent B according to its local time. In particular time 0 for agent B is equal to time t at which B starts the execution of the algorithm.) By definition, ipi1 and iqi1.

We define the indicator function 𝕀Ai(s) as follows: 𝕀Ai(s)=1, if at time s, agent A performs a walk from the set Pi and 𝕀Ai(s)=1 otherwise. Analogously, 𝕀Bi(s)=1 if at its local time s, agent B performs a walk from the set Qi and 𝕀Bi(s)=0 otherwise.

Note that pi=111T011T𝕀Ai(s)𝑑s and qi=1T0T𝕀Bi(s)𝑑s. The common period of walks in Pi and Qi is defined as the set of time points when agent A performs a walk from Pi while agent B performs a walk from Qi. The attempt period of walks in Pi and Qi is the subset of the common period of walks in Pi and Qi consisting of time points such that both walks are in their meeting parts. This set of time points depends on the starting time of agent B. Moreover define ri(t)=1T0T𝕀Ai(t+s)𝕀Bi(t)𝑑s. This is the fraction of the time segment [t,t+T] occupied by the common period of walks in Pi and Qi.

Lemma 10.

Suppose that, for some i=1,2,,z/2 and some starting time t of agent B, the inequality ri(t)T<(πD121)(D2) holds. Then there exists a time-shifted instance I such that γ(I)gi and t is the starting time of agent B, for which approach does not happen.

Lemma 11.

Assume that agent B starts in time taken uniformly at random from the range [0,10T]. The expected value of ri is not greater than 1.1piqi.

Proof.

The expected value of ri is

𝔼[ri] =110T010Tri(t)𝑑t=110T010T1T0T𝕀Ai(t+s)𝕀Bi(s)𝑑s𝑑t
=110T20T𝕀Bi(s)010T𝕀Ai(t+s)𝑑t𝑑s
110T20T𝕀Bi(s)011T𝕀Ai(t)𝑑t𝑑s
1110111T011T𝕀Ai(t)𝑑t1T0T𝕀Bi(s)𝑑s=1.1piqi

To complete our considerations, we will also need the following algebraic lemma.

Lemma 12.

Consider real numbers pi,qi[0,1], for i=1,,n, such that i=1npi1 and i=1nqi1. Then min{piqi:in}1n2.

Theorem 13.

The time of approach for two agents with arbitrary start delay, starting at a distance at most D, is Ω(D2D).

Proof.

We apply Lemma 12 for n=z/2=D and for pi,qi defined before in this section. By Lemma 12, there exists an i for which piqi1/n24/D. By Lemma 11, the expected value of ri is at most 1.1piqi. Thus there exists an argument t for which ri(t)1.1piqi. Suppose that the approach occurs for an instance I for which γ(I)gi and the delay between starting times of the agents is t. By Lemma 10, we have ri(t)T(πD121)(D2), where T is the length of time between the start of agent B and the approach. Hence

(πD121)(D2)ri(t)T1.1piqiT5T/D.

Thus we get TD5(πD121)(D2)Ω(D2D) which proves the theorem.

4.5 Time 𝛀(𝑫𝟐𝑫) for arbitrary orientations

In this section, we prove the lower bound Ω(D2D) on the time of approach that holds if orientations of agents may be different and arbitrary, even if they start simultaneously.

We will call the orientation of agent A the global orientation. Consider an instance I of the approach problem consisting of bases a of agent A and b of agent B, and of the orientation of agent B. As it is a geometric instance with an additional rotation parameter we will call it an orientation-shifted instance. Let ϕ(I) be a the angle between the half-line indicating north according to the local orientation of agent B and the halfline indicating north in the global orientation. Thus, an orientation-shifted instance I is determined by the locations a and b of the bases of agents and the angle ϕ(I). Let {wA,wB} be a pair of walks, where wA, wB are walks of agent A and agent B, respectively. Let wB(I) be the walk wB of agent B rotated around the base of agent B by ϕ(I), i.e., the walk wB expressed according to the global orientation in the orientation-shifted instance I. We say that the pair of walks {wA,wB} supports the orientation-shifted instance I if {wA,wB(I)} supports the part of the instance I determined by the locations of the bases.

Let be a set of orientation-shifted instances Ii,j for i{0,,2πD61} and j{0,,2πD301} such that:

  • the distance between the bases of agents A and B is exactly D.

  • γ(Ii,j)=6iD,

  • ϕ(Ii,j)=30jD.

Lemma 14.

Let 𝒮 be a collection of pairs of walks. If each instance I is supported by a pair of walks from 𝒮 then |𝒮|||.

Proof.

It is sufficient to prove that each pair of walks can support only one instance from the set . For the sake of contradiction assume that there exists a pair of walks S𝒮 supporting two different instances Ii1,j1,Ii2,j2 for i1,i2{{0,,2πD61}} and j1,j2{0,,2πD301}. Let us analyze two cases.

  • i1i2. Let α be the walk bisector of the walk of agent A. By Lemma 6, we need both inequalities |αγ(Ii1,j1)|3/(2D) and |αγ(Ii2,j2)|3/(2D) in order to assure that S supports Ii1,j1 and Ii2,j2. However, these inequalities imply that |γ(Ii1,j1)γ(Ii2,j2)|3/D and, by the definition of , |γ(Ii1,j1)γ(Ii2,j2)|6/D which gives a contradiction.

  • i1=i2 and j1j2.

    Let α be the walk bisector of the walk of agent A and let β(Iik,jk) be the walk bisector of the walk of agent B with respect to the global orientation for the instance Iik,jk where k{1,2}. By Lemma 7, we need that both γ(Ii1,j1)[α+β(Ii1,j1)26D,α+β(Ii1,j1)2+6D] and γ(Ii2,j2)[α+β(Ii2,j2)26D,α+β(Ii2,j2)2+6D] hold, in order to assure that S supports both Ii1,j1 and Ii2,j2.

    However, as γ(Ii1,j1)=γ(Ii2,j2), β(Ii1,j1)=β(Ii2,j2)+ϕ(Ii1,j1)ϕ(Ii2,j2), and, given that |ϕ(Ii1,j1)ϕ(Ii2,j2)|30D, the segments

    [α+β(Ii1,j1)26D,α+β(Ii1,j1)2+6D]

    and

    [α+β(Ii2,j2)26D,α+β(Ii2,j2)2+6D]
    = [α+β(Ii1,j1)2+ϕ(Ii1,j1)ϕ(Ii2,j2)26D,
    α+β(Ii1,j1)2+ϕ(Ii1,j1)ϕ(Ii2,j2)2+6D]

    are disjoint, which gives a contradiction.

Using Lemma 14, we can prove the main theorem of this section.

Theorem 15.

The time of approach for two agents with arbitrary orientations, starting at a distance at most D is Ω(D2D), even if agents start simultaneously.

Proof.

The proof is by contradiction. Assume that there is an approach algorithm for two agents with arbitrary orientations, starting at a distance D, which completes the approach task in time at most 132(D6D301)(D2)+D for all instances in .

First, consider only walks wholly contained inside the range circles of radius D/2 of the respective agents. We say that a pair of walks {w1,w2} is useful if there exists a time t such that both w1 and w2 are in their meeting areas at time t.222Note that we work in the model with common start here, so both agents work according to the same time. The pair of walks {w1,w2} cannot lead to approach in any instance, if it is not useful. (The reason is that, in such a case, at each time t the actual distance between the agents is larger than 1, regardless of the current instance.) A usefulness witness of a useful set {w1,w2} is the smallest time t such that both walks are in their meeting areas at time t. Consider the sequence t1<t2<<tp, for some positive integer p, which consists of all usefulness witnesses of all pairs of walks (one walk for agent A, and one for agent B) of the algorithm. Then, by Lemma 14, at most p instances from could potentially be supported by the algorithm. On the other hand, tltl1D2 for each l[2,p] because at least one agent has to move back to its base from a point at distance D/21, and then move away from the base at a distance D/21, in the time period [tl1,tl]. Therefore, p is at most 132(D6D301) which is smaller than 132th of the size of – a contradiction.

Thus, for at least 3132|| instances in the approach must occur when at least one agent leaves its range disc333Recall that the range disc of an agent is the disk with radius D/2 centered at the base of the agent.. Denote the set of such instances by .

Recall that, by the definition of a walk, the agent gets back to its base at the end of each walk, except the final walk that ends with approach. As an agent is not able to get back to the base after leaving its range disc, the only walk of the agent after it leaves the range disc can be the final walk. Let’s call the walk during which an agent leaves its range disc a special walk.

Hence the approach for all instances from the set (whose size is 3132||) must occur during the special walk of at least one agent. (However, many other walks of the other agent might occur during this special walk.)

Let n=2πD6 and m=2πD30. For clarity of presentation we assume that both n and m are divisible by 4. One can easily verify that the proof holds in the general case as well, i.e., when n or m is not necessarily divisible by 4.

Now, let

i,j={Ia,b|Ia,b=Ii+an4,j+bm4 for each a,b[0,3]}

for i[0,n/41] and j[0,m/41]. Since ||3132|| and can be split into ||/16 subsets i,j, there exists a subset i,j for some i[0,n/41] j[0,m/41] which is entirely included in .

Figure 4: The location of the point C1 in the instance Ia,b. The dots at the ends of the dashed segments illustrate all possible locations of C1 for instances Ia,b for arbitrary b[0,3] and various values of a[0,3].

Thus, let i[0,n/41] j[0,m/41] be such that i,j. Hence, none of the pairs of non-special walks of the agents are such that an approach occurs during executions of some of those pairs of walks for any of the 16 instances from i,j.

We now show that the other agent must also leave its range disc in order to ensure approach for all instances from i,j. The proof is by contradiction. Assume that it is not the case. Without loss of generality assume that A is the only agent which leaves its range disc. Let C1 be a point in the only special walk of A, at distance D/2+ε1 from its base for some constant ε1>0, such that A is at C1 before approach happens for any of the instances from i,j (recall that approach cannot happen as long as both agents are inside their range discs, according to the definition of i,j). Observe that, by choosing different values of a[0,3], we can change the location of C1 with respect to the base OB of B in the instances Ia,j for all j[0,3]. Indeed, as we assume that the orientation of A corresponds to the global orientation, the value of γ(Ia,b) determines relative location of C1 and OB as illustrated on Figure 4. The value of γ(Ia,b) is determined by the value of a. Let a[0,3] be such that the base OB of B is furthest from the point C1 in Ia,b, for b[0,3]. Let l be the line tangent to the range circles of both agents, let lA and lB be the lines parallel to l, going through the bases OA and OB of the agents, respectively – see Figure 4. Then, in the instance Ia,b for b[0,3], the point C1 is on the opposite side of lA than the tangency point of the range circles of the agents. And therefore C1 is further from the tangency point of the range circles of the agents than from the base of the agent A and so it is further from the base of B than D+1. Indeed, as |C1OA|>D/2, |OAOB|=D and the angle C1OAOB is obtuse, the Pythagorean Theorem implies that |C1OB|>|C1OA|2+|OAOB|2>(D/2)2+D2>D+1 for D>5. As A has at this point only D/2ε1 fuel left, the agent B must in this case travel further from its base than D/2 in order to ensure approach of the agents. But this fact contradicts our assumption that only one of the agents leaves its range disk during the execution of the algorithm.

Figure 5: The locations of the points C1 and C2 in the instance Ia,b. The dots at the ends of the dashed segments illustrate all possible locations of C2 for instances a,b, b[0,3].

Let C2 be any point in the special walk of B at distance D/2+ε2>0 from the base of agent B. Again, let b be such that the greatest distance between C1 and C2 amongst all the instances Ia,b for b[0,3] is obtained for Ia,b. Then, the point C2 is located on the opposite side of lB than C1 in Ia,b – see Figure 5. Inspecting the triangle ΔC1OAC2 with the obtuse angle C1OAC2, we obtain the following lower bound on the distance between C1 and C2: |C1C2|>|C1OA|2+|OAC2|2>(D/2)2+D2D+1 for D>5, by the Pythagorean Theorem. On the other hand, the amount of fuel left in the tank of A at the point C1 and the amount of fuel left in the tank of B at the point C2 are smaller than D/2 since the agents are outside of their range discs at these points. Thus, the approach cannot occur for the instance Ia,b.

As our assumption led to an occurrence of an instance without approach, the algorithm working in time 132(D6D301)(D2)+D cannot ensure the approach for all instances from , which concludes the proof .

5 Discussion

In this section, we discuss two assumptions of our model. The first is that the size of the tank (i.e., the distance that an agent can travel without replenishing the tank) is D, and the second is that the time of approach is counted from the wake-up of the later agent.

Considering the first assumption, it is natural to ask if a smaller tank wouldn’t be enough. First observe that an agent with tank of size x cannot go at distance larger than x/2 from its base, possibly apart from the last trip that does not end at the base, because then it would be unable to get back to the base in order to replenish its tank. This implies that the size of the tank must be strictly larger than D1. Indeed, consider two agents at distance exactly D. If the size x of the tank were strictly smaller than D1 then agents could never approach without going farther than x/2 from their bases, as their distance would be always larger than 1. It can also be shown that the adversary can place the bases of agents in such a way that approach could not happen during the final trip, when an agent does not have to get back to the base.

If the size of the tank were exactly D1 then the only way to approach without travelling farther than (D1)/2 from the base would be for both agents to go straight on the segment joining their bases, each at distance exactly (D1)/2. Clearly, for any hypothetical algorithm of approach, the adversary can place the bases in order to avoid such a perfect guess of direction in any finite time. Similarly as before, the adversary can prevent approach during the final trip.

The remaining case is that of a tank of size (D1)+ϵ, for some 0<ϵ<1. By slightly modifying our algorithms, it can be shown that, for each of our models, approach can be guaranteed with the same time complexity, whenever the tanks of the agents have size (D1)+ϵ, for any constant 0<ϵ<1.

The second assumption is that the time of approach is counted from the wake-up of the later agent. An alternative way would be to count time from the wake-up of the earlier agent. However, for any D>2, consider two agents with tanks of size D and bases at distance D. Before the wake-up of the later agent, the earlier agent cannot approach it without travelling farther than D/2 from its base. Since the adversary can make the delay between the wake-up times of the agents arbitrarily long, the time of approach counted from the wake-up of the earlier agent would be unbounded.

6 Conclusion

We considered the problem of approach of agents with restricted tanks and designed algorithms of optimal complexity, for any of the four scenarios yielded by the presence or absence of our two coherence assumptions. In this paper, we heavily relied on the synchronous character of the agents: they can stay put for a chosen amount of time and when they travel, they always move at speed 1. It is natural to ask how the problem of approach for agents with restricted tanks changes in the asynchronous setting, where agents can choose the direction and distance of their moves but the adversary decides the speeds of the agents. In this model, agents cannot choose to wait, as the adversary controls waiting times as well. The problem of asynchronous approach for agents with unrestricted tanks has been solved in [4]. What is the solution of it for agents with restricted tanks and how large tanks are needed?

References

  • [1] Steve Alpern and Shmuel Gal. The theory of search games and rendezvous, volume 55 of International series in operations research and management science. Kluwer, 2003.
  • [2] Baruch Awerbuch, Margrit Betke, Ronald L. Rivest, and Mona Singh. Piecemeal graph exploration by a mobile robot. Inf. Comput., 152(2):155–172, 1999. doi:10.1006/INCO.1999.2795.
  • [3] Ricardo A. Baeza-Yates, Joseph C. Culberson, and Gregory J. E. Rawlins. Searching in the plane. Inf. Comput., 106(2):234–252, 1993. doi:10.1006/INCO.1993.1054.
  • [4] Sébastien Bouchard, Marjorie Bournat, Yoann Dieudonné, Swan Dubois, and Franck Petit. Asynchronous approach in the plane: a deterministic polynomial algorithm. Distributed Comput., 32(4):317–337, 2019. doi:10.1007/S00446-018-0338-2.
  • [5] Sébastien Bouchard, Yoann Dieudonné, Arnaud Labourel, and Andrzej Pelc. Almost-optimal deterministic treasure hunt in unweighted graphs. ACM Trans. Algorithms, 19(3):22:1–22:32, 2023. doi:10.1145/3588437.
  • [6] Mark Cieliebak, Paola Flocchini, Giuseppe Prencipe, and Nicola Santoro. Distributed computing by mobile robots: Gathering. SIAM J. Comput., 41(4):829–879, 2012. doi:10.1137/100796534.
  • [7] Reuven Cohen and David Peleg. Convergence properties of the gravitational algorithm in asynchronous robot systems. SIAM J. Comput., 34(6):1516–1528, 2005. doi:10.1137/S0097539704446475.
  • [8] Jurek Czyzowicz, Leszek Gasieniec, Ryan Killick, and Evangelos Kranakis. Symmetry breaking in the plane: Rendezvous by robots with unknown attributes. In Peter Robinson and Faith Ellen, editors, Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019, Toronto, ON, Canada, July 29 - August 2, 2019, pages 4–13. ACM, 2019. doi:10.1145/3293611.3331608.
  • [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] Yoann Dieudonné, Andrzej Pelc, and Vincent Villain. How to meet asynchronously at polynomial cost. SIAM J. Comput., 44(3):844–867, 2015. doi:10.1137/130931990.
  • [11] Christian A. Duncan, Stephen G. Kobourov, and V. S. Anil Kumar. Optimal constrained graph exploration. ACM Trans. Algorithms, 2(3):380–402, 2006. doi:10.1145/1159892.1159897.
  • [12] Paola Flocchini, Giuseppe Prencipe, Nicola Santoro, and Peter Widmayer. Gathering of asynchronous robots with limited visibility. Theor. Comput. Sci., 337(1-3):147–168, 2005. doi:10.1016/J.TCS.2005.01.001.
  • [13] Shmuel Gal. Search Games: A Review, pages 3–15. Springer New York, New York, NY, 2013. doi:10.1007/978-1-4614-6825-7_1.
  • [14] Subir Kumar Ghosh and Rolf Klein. Online algorithms for searching and exploration in the plane. Comput. Sci. Rev., 4(4):189–201, 2010. doi:10.1016/J.COSREV.2010.05.001.
  • [15] Andrzej Pelc. Reaching a target in the plane with no information. Inf. Process. Lett., 140:13–17, 2018. doi:10.1016/J.IPL.2018.04.006.
  • [16] 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 Lecture Notes in Computer Science, pages 423–454. Springer, 2019. doi:10.1007/978-3-030-11072-7_17.
  • [17] Amnon Ta-Shma and Uri Zwick. Deterministic rendezvous, treasure hunts, and strongly universal exploration sequences. ACM Trans. Algorithms, 10(3):12:1–12:15, 2014. doi:10.1145/2601068.

Appendix

Appendix A Proof of Lemma 1

Proof.

Without loss of generality, let P1 be counterclockwise from S.

Figure 6: Illustration for Lemma 1.

Let l be the line tangent to C1 in point S and let O1,O2 be the centres of C1 and C2, respectively. Let H be the common point of l and of the line parallel to the radius O1S, passing through the point P1. Let Q be the common point of the bisector of the angle SO1P1 and of the segment P1S. As the triangle SO1P1 is an isosceles triangle, O1QP1 is a right triangle, and thus the triangles O1QP1 and SHP1 are similar, because |QO1P1|=|HSP1| (cf. Fig. 6).

As α1(P1)y=14r, the length x of the segment P1Q satisfies x=12|P1S|α1(P1)14r.

By similarity of the triangles O1QP1 and SHP1, we have |O1P1||P1Q|=|P1S||P1H| and thus

|P1H|=|P1Q||P1S||O1P1|=2x2r1/8. (1)

Let P1 be the point axial symmetric to P1 with respect to axis l. As l is also tangent to circle C2, and C2 has the same radius as C1, the point P1 lies on C2.

In view of the assumption α1(P1)1/2α2(P2)α1(P1)+1/2 we have

|P1P2||α2(P1)α2(P2)|=|α1(P1)α2(P2)|12. (2)

By the triangle inequality, (1), and (2) we have |P1P2||P1P1|+|P1P2|=2|P1H|+|P1P2|14+12<1.

Appendix B Proof of Theorem 2

Proof.

Suppose that the distance between the base O1 of agent Blue and the base O2 of agent Red is dD. Let C1 and C2 be circles of radius D/2 centered at O1 and O2 respectively, and let C1 and C2 be circles of radius d/2 centered at O1 and O2 respectively. Let S be the unique common point of circles C1 and C2.

Consider points A0,,An1 on circle C1, visited by agent Blue in its consecutive phases. For i=0,1,n1, let Ai be the intersection point of the segment O1Ai with the circle C1. Let j be the index for which point Aj is closest to point S among all points Ai. If there are two such closest points, j is chosen arbitrarily between their indices.

Consider the time point t in phase j when agent Blue is at point Aj for the first time. At time t, agent Red is at some point B on circle C2. We use Lemma 1 substituting d/2 for r, B for P1, and Aj for P2. Denote by α the length of the arc SB on circle C2. In view of the definition of n, we have α14d/2 and the length of arc SAj on circle C1 is between α1/2 and α+1/2. Thus both assumptions of Lemma 1 are satisfied. This implies |AjB|<1. Hence approach occurs in phase j. Since j<n=4πD and the duration of each phase is D, phase j is completed in time O(D2) which proves the theorem.

Appendix C Proof of Theorem 3

Proof.

Suppose that the distance between the base O1 of agent Blue and the base O2 of agent Red is dD. Consider two cases.

Case 1.

d=D.
In this case, the circles C1 and C2 are tangent. Let S be the point of tangency. Let j[0,n1] be such an index that the point Aj is closest to the point S among all points Ai. If there are two such closest points, j is chosen arbitrarily from the indices of these two closest points. Let k be the index for which Bk is the closest point from the set {B0,,Bm1} to the point Aj. Consider the time point t when agent Blue visits the point Aj for the first time after both agents have been awaken. As agent Blue waits in this point for time 44πD2, there is a time point t[t,t+44πD2], when agent Red visits the point Bk. Now, we may use Lemma 1 substituting d/2= D/2 for r, Aj for P1, and Bk for P2. The definition of n implies that the length α of arc SAj on the circle C1 is at most 14D/2 and the length of arc SBk on the circle C2 is not smaller than α1/2 and not larger than α+1/2. Thus both assumptions of Lemma 1 are satisfied. This implies the inequality |AjBk|<1. Hence approach occurs at time t. Since t is the first time agent Blue visits point Aj when both agents are awake, the approach occurs in time at most 44πD2(˙2πD+2)=O(D2D).

Case 2.

d<D.
Let the approach area of an agent in some time period be the area equal to all points at distance 1 from all points visited by the agent during the given time period. The following claim provides significant property of the approach area of agent Red during its execution of the algorithm. Then, in Claim 17, we will show that the property stated in Claim 16 guarantees that Aj belongs to the approach area of agent Red for some j[0,n1].

Claim 16.

Each point within distance of 12D+1514 from the base of agent Red belongs to its approach area.

Figure 7: Illustration for Claim 16.

In order to prove the claim, notice that, as the length of the circle C2 is 2π12D= πD, the distance between Bi and B(i+1)modm is smaller than one, and therefore the set of points at distance at most 1 from the set of points {B0,,Bm1} covers the whole circle C2. As agent Red moves via a straight line from its base to each of the points Bi, its approach area covers C2. Now we will show that agent Red also approaches the additional annulus of width at least 1514 outside of C2.

Fix two consecutive points Bi,B(i+1)modm on C2. (For brevity, we will write Bi+1 instead of B(i+1)modm in the rest of the proof.) Consider the circles of radius one with the centres in Bi and Bi+1, respectively (see Fig. 7). The union of the corresponding discs is the area approachable from both Bi and Bi+1. Let X be a common point of these two discs at the largest distance from O2. The point X is one of the points furthest from O2 at distance 1 from Bi. Our goal is to bound the distance from X to O2.

Consider the segment going through the point X and perpendicular to BiBi+1. Let Y, Z be, respectively. the common point of this segment with the circle C2 and with the segment BiBi+1 (see Fig. 7).

As X is a common point of circles of the same radius, the point Z divides the segment of BiBi+1 into two segments of equal lengths. Similarly, the point Y divides the arc BiBi+1 in two arcs of equal lengths. As there are m=4πD points Bj, the length of BiBi+1 is at most 1/4 and, as BiX is a radius of length 1, we have |XZ|=1|BiZ|21116=154.

Moreover, the arc BiY has length |BiY||BiBi+1|2122π12D4πD<14. As the segment BiY is a hypotenuse of the triangle BiZY we have |YZ||BiY|14 and |XY|=|XZ||YZ|1541/4=1514.

Thus the point X is at distance at least 12D+1514 from O1, which implies that all points at this distance are approachable by agent Red. This proves the claim.

Now we will show that there is at least one point Ai, which agent Red can approach.

Claim 17.

There is at least one point Ai, for i[0,n1], with distance at most 12D+1514 from O2.

(a) Locations of Aj, Aj+1, P and T.
(b) Locations of Aj, P and T.
Figure 8: Illustration of notations from the proof of Claim 17.

In order to prove the claim notice that, if there is a point Ai, for i[0,n1], located inside the disc limited by circle C2, then the claim holds. So, assume that there is no such point Ai.

Let j[0,n1] be an index for which Aj is the closest point to O2 among all the points from {A0,,An1}. If there are two such indices, let j be such that |O2Aj|=|O2Aj+1| and O2Aj is the smallest distance from O2 to all Ais. Let P be the common point of the circle C1 and the line O1O2 such that P is located on the segment O1O2 (cf. Fig 8(a)). Moreover, let T be the projection of the point Aj on the line O1O2. We want to bound the distance from P to Aj from above. Observe that, the distance between Aj and P is maximized in the instance in which there are two points Aj and Aj+1 closest to O2 symmetric with respect to the line O1O2, as presented in Fig. 8(a). Therefore, in order to bound the length AjP from above, we will restrict our consideration to this specific case.

Let l be the line perpendicular to O1O2 going through Aj and Aj+1. Let T be the common point of the line O1O2 and the line l (see Fig. 8(a)).

As Aj and Aj+1 are two consecutive points from the cyclic sequence A0,,An1, the length of the arc AjAj+1 is at most D. Thus the angle AjPAj+1 is at least π2πDD2πD=π12D.

As the line PT is perpendicular to the segment AjAj+1, we have α=AjPT=12AjPAj+1=π214D One can verify that, for all x1, tan(π214x)>3x. Thus

|PT|=|AiT|tanα<D23D=16. (3)

Let P be a common point of the line O1O2 and the circle C2. Moreover, let T be the point on O1O2 such that |PT| = |PT| and |O2T|D. Let AjT be the segment symmetric to AjT with respect to the bisector of the segment O1O2. As the circles C1 and C2 have the same radius, the point Aj lies on circle C2 (see Fig. 8(b)).

The length of AjAj satisfies the inequality (see Fig. 8(b)) |AjAj|<|PT|+|PT|<13, where the last inequlity follows from (3). Thus by the triangle inequality, |O2Aj||OAj|+|AjAj|<D+13<D+1514. This completes the proof of the Claim.
Let Aj be a point whose existence is guaranteed by Claim 17. Let t be the time point when agent Blue visits point Aj for the first time after both agents have been awaken. As agent Blue waits in this point for time 44πD2, agent Red visits all of his points Bi during this time and, by Claims 16 and 17, the approach is successful. Thus the time to complete approach is at most 44πD2(˙2πD+2). This implies that algorithm Slower guarantees approach in time O(D2D).

Appendix D Proof of Theorem 5

Proof.

Consider an arbitrary approach algorithm for two agents A and B. Let a(t) (resp. b(t)) be a vector describing the position of agent A (resp. B) relative to its starting point in time t. Let d(t)=a(t)b(t). Let T be the approach time of the algorithm.

For i,j[D4,D42] let ri,j be the rectangle with vertices in points (2i,2j),(2i+2,2j),(2i,2j+2),(2i+2,2j+2).

We will consider only even rectangles, that is the rectangles ri,j where both i and j are even. We say that the algorithm marks the rectangle ri,j if there is a moment t of the execution of the algorithm such that the point d(t) is inside ri,j. As for any t1,t2 such that, |t1t2|1 the length of the vector d(t1)d(t2) is at most 2, the algorithm can mark at most T+1 even rectangles.

Assume that the time of approach T is less than D216. The algorithm can mark at most D216+1 even rectangles, and thus there exists an unmarked even rectangle ri,j. By fixing the base of agent A at point (0,0) and the base of B at point (2i+1,2j+1) the adversary can guarantee that the approach does not occur. This contradiction concludes the proof.

Appendix E Proof of Lemma 6

Proof.
Figure 9: Illustration for Lemma 6.

Let S be the tangent point of range circles of the agents. Let l be the line tangent to the range circle C of agent A at point S. Let P be the point of the meeting area of the walk wA, closest to line l (see Fig. 9). Without loss of generality, suppose that α is the walk angle of agent A. Denote by σ the angle SaP. Thus, σ=|αγ|δ.

Let H be the intersection of l with the line containing P, parallel to the segment aS. Let Q be the midpoint of segment PS. Due to similarity of triangles PHS and PQa we have

|PH||PQ|=|PS||Pa|=2|PQ|D/2

and thus |PH|D=4|PQ|2. Hence |PH|>1 if and only if |PQ|>D/2. Suppose that D>256.
If σ<2, then

|PQ|=D2sin(σ2)D20.8σ2>0.4D(|αγ|2δ2)0.4D(1.5D4/D)>D2.

If σ2, then

|PQ|=D2sin(σ2)D2sin1>D2.

Hence |PH|>1. This implies that the range circle of agent B must be at distance larger than 1 from the meeting area of wA, which proves the lemma.