Approach of Agents with Restricted Fuel Tanks
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 , 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 , 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 and we show that this complexity is optimal. If any of the two coherence assumptions is missing then approach can be performed in time 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 energyFunding:
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:
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsFunding:
Supported by the National Science Center, Poland (NCN), grant 2020/39/B/ST6/03288.Editor:
Dariusz R. KowalskiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
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 , 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 . 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 , where 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 , 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 , in which case it travels distance in direction with speed 1, or it can stay put at the current point for a chosen time . 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 and we show that this complexity is optimal. If any of the two coherence assumptions is missing then approach can be performed in time 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 lower bound proofs, we consider the most difficult instances of the approach problem, when bases of the agents are at a distance exactly . 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 from their respective bases. We will prove that these time periods must be separated by time segments of length . 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 , which will imply the lower bound 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 and of radius located roughly symmetrically with respect to the tangent line of and are at a distance at most , provided that they are in arc-distance from the common point of and . The proof of Lemma 1 is in the Appendix, Section A.
Lemma 1.
Let and be tangent circles of the same radius , centered at and , respectively. Let be the common point of and . For , and for any point on , let be the length of the arc on . Let . Let be a point on such that , and let be a point on such that . Suppose that either on is counterclockwise from and on is clockwise from , or on is clockwise from and on is counterclockwise from . Then . (See Figure 1.)
3 Algorithms
This section is devoted to our positive results. We design two approach algorithms: an algorithm with time complexity for the strongest scenario where both coherence assumptions are satisfied, and an algorithm with time complexity 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 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 .
Let be the base of agent Blue and the base of agent Red. Let be the circle of radius centered at and let be the circle of radius centered at . Let . Let (resp. ) be points on (resp. on ) in clockwise order, such that is North of is North of , and all distances between points and and points and 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 phases. In phase , agent Blue (Red, resp.) goes from its base straight to (, 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 .
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 . Let be the base of agent Blue and the base of agent Red. Let be the circle of radius centered at and let be the circle of radius centered at . Let and let . Let (resp. ) be points on (resp. on ) in clockwise order, such that is North of according to agent’s Blue compass, is North of according to agent’s Red compass, and all distances between points and and points and are equal. Each agent visits consecutive points on its circle. However, agent Blue visits only points on , waiting in each of them for time , while agent Red visits points on without any waiting.
Algorithm Slower for agent Blue: The algorithm works in phases. In phase , agent Blue goes from its base straight to , waits there for time , and comes back straight to its base.
Algorithm Slower for agent Red:
The algorithm works in phases. In phase , agent Red goes from its base straight to 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 .
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 , where the value of 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 . Since we assume that 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 th execution. More precisely, the agent with the binary encoding of its label equal to executes the algorithm for Blue in the th execution if the th bit of is equal to 0 and it executes the algorithm for Red otherwise. Using fairly standard encodings of size 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 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 which:
-
guarantee approach in time in the model with common orientation and simultaneous start (using the assumption that is constant, this complexity is );
-
guarantee approach in time in the model without simultaneous start and without common orientation (using the assumption that is constant, this complexity is ).
4 Lower bounds
This section is devoted to our negative results. We present three lower bounds. The first is the lower bound 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 . This result, combined with the complexity of our algorithm working even in the weakest scenario shows that 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 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 , with common orientation and unbounded tanks is .
Proof.
Consider an arbitrary approach algorithm for two agents and . Let (resp. ) be a vector describing the position of agent (resp. ) relative to its starting point in time . Let . Let be the approach time of the algorithm.
For let be the rectangle with vertices in points .
We will consider only even rectangles, that is the rectangles where both and are even. We say that the algorithm marks the rectangle if there is a moment of the execution of the algorithm such that the point is inside . As for any such that, the length of the vector is at most , the algorithm can mark at most even rectangles.
Assume that the time of approach is less than . The algorithm can mark at most even rectangles, and thus there exists an unmarked even rectangle . By fixing the base of agent at point and the base of at point 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 and . Each agent’s range disc is the disc with radius 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 , 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 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 is called the walk angle of agent . The angle between South and the walk bisector of agent is called the walk angle of agent . We define the angle . 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 and centered at the base (see Fig. 2).
Fact 1.
If an agent goes back to its base at the end of a walk , the intersection of with the annulus between circles of radii and centered at the base of this agent is included in the meeting area of the walk .
Proof.
In order to get back to the base after leaving the disk with the radius centered at the base, an agent can only move at distance at most before getting back to the disc . A possible part of the trajectory outside of corresponds to an angle .
Note that approach can occur only when an agent is in the meeting area of its walk.
Consider a geometric instance of the approach problem consisting of bases of agent and of agent . The angle between the segment and the half-line with direction North, originating at is denoted by . This is also the angle between the segment and the half-line with direction South, originating at .
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 supports the geometric instance 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).
In the following lemma we focus on a single walk. We show that, a given walk can belong to a pair of walks assuring approach for an instance , only if the walk bisector of is -close to . In other words, the angle between the segment connecting the bases and the walk bisector of should be . Otherwise, the agent is at distance greater than from any point reachable by the other agent during the walk of the first agent. The proof of the lemma is in the Appendix, Section E.
Lemma 6.
If , for , then no pair of walks of agents and , such that is the walk angle of one of the agents, supports the geometric instance .
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 , as expressed in Lemma 6. In Lemma 7 we show that, apart from the requirements of Lemma 6, a pair of walks might lead to approach only if their walk bisectors are -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 . Let be the common point of and the bisector of the walk , for , where is the walk of Blue and is the walk of Red. Then, the lemma says that, in order to make approach feasible, and should be located almost symmetrically with respect to the line tangent to and . By moving one of these points on its circle by a distance the positions of those points would be ideally symmetric.
Lemma 7.
Consider the set of geometric instances supported by a set of walks. Let be the walk angle of agent , and the walk angle of agent . Then, for and for any , .
Lemma 7 gives us the following corollary.
Corollary 8.
Consider the set of geometric instances supported by a set of walks. Then all angles , for , belong to an interval of length at most , for .
4.3 High-level ideas of lower bounds for scenarios without simultaneous start or without common orientation
4.3.1 Time-shifted instances
In order for a pair of walks 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 and 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 needed for approach in the following way. First, we restrict attention to such instances that the angle belongs to one of the angle-intervals from the set for such that:
-
the length of each interval is ,
-
the intervals and are separated by an interval of length .
Then, by Lemma 6, for all instances such that , for , there is no pair of walks which simultaneously supports and . Actually, Lemma 6 implies even a stronger property that no walk belongs to the sets , such that the former set supports an instance and the latter supports such that , , .
Now, assume that one agent starts at time and the start of the other agent is chosen uniformly at random in the period for some constant , where is the time of approach of an analyzed algorithm. For this distribution, let and be random variables corresponding to the fractions of time serving the interval by the agents Blue and Red, respectively. Let be the expected fraction of time in which both agents simultaneously are in their walks which could support instances from in some pairs, for time shift .
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 of length , in order to achieve the approach for those time-shifted instances for which the angle belongs to . It turns out that this time has to be . An intuition behind this bound is that an interval of size requires separate pairs of walks due to Lemma 7 and each change of a pair of walks takes time. Importantly, walks of both agents cannot help with approach for and , since is separated from and by intervals of lengths 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 :
-
In Lemma 11 we show that, for randomly chosen time-shift in with uniform distribution, the expected value of time fraction when both agents perform walks supporting approach for the value of in , for each , is at least .
-
Using purely algebraic arguments we show in Lemma 12 that the minimum of is . This fact holds by substituting the maximum value of which is in the place of 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 , for each and for each starting time of agent .
4.3.2 Orientation-shifted instances
For the model without common orientation, we carefully choose the set of orientation-shifted instances of size such that no pair of walks can support more than one instance from . The set consists of instances for natural and , such that the largest is , the largest is , is times an appropriate value of the order and is equal to times an appropriate value of the order . Thus,
-
If then the instances , 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 and then the instances , 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 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 from its base in a meeting part of its walk, there is time 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 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 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 of the approach problem consisting of bases of agent and of agent , and of a delay between the starting times of the agents. As is a geometric instance with an additional delay parameter we will call it a time-shifted instance. We say that a pair of walks of agents and supports the time-shifted instance if supports the geometric part of the instance .
Let
,
and let for .
The following corollary is implied directly by Lemma 6.
Corollary 9.
Consider any walk of one of the agents, and any walks , of the other agent. Let and be time-shifted instances supported by pairs of walks and , respectively. Then and cannot belong to different segments .
For any , we define the set of walks of agent and the set of walks of agent as follows.
We say that (resp. ), if there exists a walk of agent (resp. of agent ), such that the pair of walks supports a time-shifted instance with . Note that, due to Corollary 9, sets , for different indices , and sets , for different indices , are pairwise disjoint.
Without loss of generality, we will assume that agent starts first. Let be the time when agent starts, and be the time when agent starts. The local time of each agent is the time counted since its start. Assume that is the approach time counted from the start of agent , for a worst-case instance.
Denote by the fraction of time spent by agent in walks from set in the period . Denote by the fraction of time spent by agent in walks from set in the period . (Recall that, we measure time for agent according to its local time. In particular time for agent is equal to time at which starts the execution of the algorithm.) By definition, and
We define the indicator function as follows: , if at time , agent performs a walk from the set and otherwise. Analogously, if at its local time , agent performs a walk from the set and otherwise.
Note that and . The common period of walks in and is defined as the set of time points when agent performs a walk from while agent performs a walk from . The attempt period of walks in and is the subset of the common period of walks in and 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 . Moreover define . This is the fraction of the time segment occupied by the common period of walks in and .
Lemma 10.
Suppose that, for some and some starting time of agent , the inequality holds. Then there exists a time-shifted instance such that and is the starting time of agent , for which approach does not happen.
Lemma 11.
Assume that agent starts in time taken uniformly at random from the range . The expected value of is not greater than .
Proof.
The expected value of is
To complete our considerations, we will also need the following algebraic lemma.
Lemma 12.
Consider real numbers , for , such that and . Then .
Theorem 13.
The time of approach for two agents with arbitrary start delay, starting at a distance at most , is .
Proof.
We apply Lemma 12 for and for defined before in this section. By Lemma 12, there exists an for which . By Lemma 11, the expected value of is at most . Thus there exists an argument for which . Suppose that the approach occurs for an instance for which and the delay between starting times of the agents is . By Lemma 10, we have , where is the length of time between the start of agent and the approach. Hence
Thus we get which proves the theorem.
4.5 Time for arbitrary orientations
In this section, we prove the lower bound 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 the global orientation. Consider an instance of the approach problem consisting of bases of agent and of agent , and of the orientation of agent . As it is a geometric instance with an additional rotation parameter we will call it an orientation-shifted instance. Let be a the angle between the half-line indicating north according to the local orientation of agent and the halfline indicating north in the global orientation. Thus, an orientation-shifted instance is determined by the locations and of the bases of agents and the angle . Let be a pair of walks, where , are walks of agent and agent , respectively. Let be the walk of agent rotated around the base of agent by , i.e., the walk expressed according to the global orientation in the orientation-shifted instance . We say that the pair of walks supports the orientation-shifted instance if supports the part of the instance determined by the locations of the bases.
Let be a set of orientation-shifted instances for and such that:
-
the distance between the bases of agents and is exactly .
-
,
-
.
Lemma 14.
Let be a collection of pairs of walks. If each instance 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 supporting two different instances for and . Let us analyze two cases.
-
. Let be the walk bisector of the walk of agent . By Lemma 6, we need both inequalities and in order to assure that supports and . However, these inequalities imply that and, by the definition of , which gives a contradiction.
-
and .
Let be the walk bisector of the walk of agent and let be the walk bisector of the walk of agent with respect to the global orientation for the instance where . By Lemma 7, we need that both and hold, in order to assure that supports both and .
However, as , , and, given that , the segments
and
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 is , 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 , which completes the approach task in time at most for all instances in .
First, consider only walks wholly contained inside the range circles of radius of the respective agents. We say that a pair of walks is useful if there exists a time such that both and are in their meeting areas at time .222Note that we work in the model with common start here, so both agents work according to the same time. The pair of walks cannot lead to approach in any instance, if it is not useful. (The reason is that, in such a case, at each time the actual distance between the agents is larger than , regardless of the current instance.) A usefulness witness of a useful set is the smallest time such that both walks are in their meeting areas at time . Consider the sequence , for some positive integer , which consists of all usefulness witnesses of all pairs of walks (one walk for agent , and one for agent ) of the algorithm. Then, by Lemma 14, at most instances from could potentially be supported by the algorithm. On the other hand, for each because at least one agent has to move back to its base from a point at distance , and then move away from the base at a distance , in the time period . Therefore, is at most which is smaller than th of the size of – a contradiction.
Thus, for at least 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 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 ) 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 and . For clarity of presentation we assume that both and are divisible by . One can easily verify that the proof holds in the general case as well, i.e., when or is not necessarily divisible by .
Now, let
for and . Since and can be split into subsets , there exists a subset for some which is entirely included in .
Thus, let be such that . 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 instances from .
We now show that the other agent must also leave its range disc in order to ensure approach for all instances from . The proof is by contradiction. Assume that it is not the case. Without loss of generality assume that is the only agent which leaves its range disc. Let be a point in the only special walk of , at distance from its base for some constant , such that is at before approach happens for any of the instances from (recall that approach cannot happen as long as both agents are inside their range discs, according to the definition of ). Observe that, by choosing different values of , we can change the location of with respect to the base of in the instances for all . Indeed, as we assume that the orientation of corresponds to the global orientation, the value of determines relative location of and as illustrated on Figure 4. The value of is determined by the value of . Let be such that the base of is furthest from the point in , for . Let be the line tangent to the range circles of both agents, let and be the lines parallel to , going through the bases and of the agents, respectively – see Figure 4. Then, in the instance for , the point is on the opposite side of than the tangency point of the range circles of the agents. And therefore is further from the tangency point of the range circles of the agents than from the base of the agent and so it is further from the base of than . Indeed, as , and the angle is obtuse, the Pythagorean Theorem implies that for . As has at this point only fuel left, the agent must in this case travel further from its base than 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.
Let be any point in the special walk of at distance from the base of agent . Again, let be such that the greatest distance between and amongst all the instances for is obtained for . Then, the point is located on the opposite side of than in – see Figure 5. Inspecting the triangle with the obtuse angle , we obtain the following lower bound on the distance between and : for , by the Pythagorean Theorem. On the other hand, the amount of fuel left in the tank of at the point and the amount of fuel left in the tank of at the point are smaller than since the agents are outside of their range discs at these points. Thus, the approach cannot occur for the instance .
As our assumption led to an occurrence of an instance without approach, the algorithm working in time 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 , 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 cannot go at distance larger than 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 . Indeed, consider two agents at distance exactly . If the size of the tank were strictly smaller than then agents could never approach without going farther than 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 then the only way to approach without travelling farther than from the base would be for both agents to go straight on the segment joining their bases, each at distance exactly . 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 , for some . 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 , for any constant .
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 , consider two agents with tanks of size and bases at distance . Before the wake-up of the later agent, the earlier agent cannot approach it without travelling farther than 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 be counterclockwise from .
Let be the line tangent to in point and let be the centres of and , respectively. Let be the common point of and of the line parallel to the radius , passing through the point . Let be the common point of the bisector of the angle and of the segment . As the triangle is an isosceles triangle, is a right triangle, and thus the triangles and are similar, because (cf. Fig. 6).
As , the length of the segment satisfies
By similarity of the triangles and , we have and thus
| (1) |
Let be the point axial symmetric to with respect to axis . As is also tangent to circle , and has the same radius as , the point lies on .
In view of the assumption we have
| (2) |
Appendix B Proof of Theorem 2
Proof.
Suppose that the distance between the base of agent Blue and the base of agent Red is . Let and be circles of radius centered at and respectively, and let and be circles of radius centered at and respectively. Let be the unique common point of circles and .
Consider points on circle , visited by agent Blue in its consecutive phases. For , let be the intersection point of the segment with the circle . Let be the index for which point is closest to point among all points . If there are two such closest points, is chosen arbitrarily between their indices.
Consider the time point in phase when agent Blue is at point for the first time. At time , agent Red is at some point on circle . We use Lemma 1 substituting for , for , and for . Denote by the length of the arc on circle . In view of the definition of , we have and the length of arc on circle is between and . Thus both assumptions of Lemma 1 are satisfied. This implies Hence approach occurs in phase . Since and the duration of each phase is , phase is completed in time which proves the theorem.
Appendix C Proof of Theorem 3
Proof.
Suppose that the distance between the base of agent Blue and the base of agent Red is . Consider two cases.
Case 1.
.
In this case, the circles and are tangent. Let be the point of tangency.
Let be such an index that the point is closest to the point among all points . If there are two such closest points, is chosen arbitrarily from the indices of these two closest points. Let be the index for which is the closest point from the set to the point .
Consider the time point when agent Blue visits the point
for the first time after both agents have been awaken. As agent Blue waits in this point for time , there is a time point , when agent Red visits the point .
Now, we may use Lemma 1 substituting for , for , and for .
The definition of
implies that the length of arc on the circle is at most
and the length of arc on the circle is not smaller than and not larger than .
Thus both assumptions of Lemma 1 are satisfied. This implies the inequality
Hence approach occurs at time . Since is the first time agent Blue visits point
when both agents are awake,
the approach occurs in time at most
Case 2.
.
Let the approach area of an agent in some time period be the area equal to all points at distance 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 belongs to the approach area of agent Red for some .
Claim 16.
Each point within distance of from the base of agent Red belongs to its approach area.
In order to prove the claim, notice that, as the length of the circle is , the distance between and is smaller than one, and therefore the set of points at distance at most 1 from the set of points covers the whole circle . As agent Red moves via a straight line from its base to each of the points , its approach area covers . Now we will show that agent Red also approaches the additional annulus of width at least outside of .
Fix two consecutive points on . (For brevity, we will write instead of in the rest of the proof.) Consider the circles of radius one with the centres in and , respectively (see Fig. 7). The union of the corresponding discs is the area approachable from both and . Let be a common point of these two discs at the largest distance from . The point is one of the points furthest from at distance from . Our goal is to bound the distance from to .
Consider the segment going through the point and perpendicular to . Let , be, respectively. the common point of this segment with the circle and with the segment (see Fig. 7).
As is a common point of circles of the same radius, the point divides the segment of into two segments of equal lengths. Similarly, the point divides the arc in two arcs of equal lengths. As there are points the length of is at most and, as is a radius of length , we have
Moreover, the arc has length As the segment is a hypotenuse of the triangle we have and
Thus the point is at distance at least from , 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 , which agent Red can approach.
Claim 17.
There is at least one point , for , with distance at most from .
In order to prove the claim notice that, if there is a point , for , located inside the disc limited by circle , then the claim holds. So, assume that there is no such point .
Let be an index for which is the closest point to among all the points from . If there are two such indices, let be such that and is the smallest distance from to all s. Let be the common point of the circle and the line such that is located on the segment (cf. Fig 8(a)). Moreover, let be the projection of the point on the line . We want to bound the distance from to from above. Observe that, the distance between and is maximized in the instance in which there are two points and closest to symmetric with respect to the line , as presented in Fig. 8(a). Therefore, in order to bound the length from above, we will restrict our consideration to this specific case.
Let be the line perpendicular to going through and . Let be the common point of the line and the line (see Fig. 8(a)).
As and are two consecutive points from the cyclic sequence , the length of the arc is at most . Thus the angle is at least
As the line is perpendicular to the segment , we have One can verify that, for all , Thus
| (3) |
Let be a common point of the line and the circle . Moreover, let be the point on such that = and . Let be the segment symmetric to with respect to the bisector of the segment . As the circles and have the same radius, the point lies on circle (see Fig. 8(b)).
The length of satisfies the inequality (see Fig. 8(b))
where the last inequlity follows from (3).
Thus by the triangle inequality,
This completes the proof of the Claim.
Let be a point whose existence is guaranteed by
Claim 17.
Let be the time point when agent Blue visits point for the first time after both agents have been awaken. As agent Blue waits in this point for time , agent Red visits all of his points during this time and, by Claims 16 and 17, the approach is successful. Thus the time to complete approach is at most .
This implies
that algorithm Slower guarantees approach in time .
Appendix D Proof of Theorem 5
Proof.
Consider an arbitrary approach algorithm for two agents and . Let (resp. ) be a vector describing the position of agent (resp. ) relative to its starting point in time . Let . Let be the approach time of the algorithm.
For let be the rectangle with vertices in points .
We will consider only even rectangles, that is the rectangles where both and are even. We say that the algorithm marks the rectangle if there is a moment of the execution of the algorithm such that the point is inside . As for any such that, the length of the vector is at most , the algorithm can mark at most even rectangles.
Assume that the time of approach is less than . The algorithm can mark at most even rectangles, and thus there exists an unmarked even rectangle . By fixing the base of agent at point and the base of at point the adversary can guarantee that the approach does not occur. This contradiction concludes the proof.
Appendix E Proof of Lemma 6
Proof.
Let be the tangent point of range circles of the agents. Let be the line tangent to the range circle of agent at point . Let be the point of the meeting area of the walk , closest to line (see Fig. 9). Without loss of generality, suppose that is the walk angle of agent . Denote by the angle . Thus, .
Let be the intersection of with the line containing , parallel to the segment . Let be the midpoint of segment . Due to similarity of triangles and we have
and thus
Hence
if and only if . Suppose that .
If , then
If , then
Hence . This implies that the range circle of agent must be at distance larger than 1 from the meeting area of , which proves the lemma.
