Natural Calamities Demand More Rescuers: Exploring Connectivity Time Dynamic Graphs
Abstract
We study the exploration problem by mobile agents in Connectivity Time dynamic graphs. The Connectivity Time model was introduced by Michail et al. [JPDC 2014] and is arguably one of the weakest dynamic graph connectivity models. We prove that exploration is impossible in such graphs using mobile agents starting from an arbitrary initial configuration, even when agents have full knowledge of system parameters, global communication, full visibility, and infinite memory. We then present an exploration algorithm that uses agents equipped with global communication, 1-hop visibility and memory.
Keywords and phrases:
Mobile agents, Anonymous graphs, Exploration, Dynamic graphs, Deterministic algorithmFunding:
Ashish Saxena: Acknowledge the financial support from IIT Ropar.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsEditor:
Dariusz R. KowalskiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The exploration of graphs by mobile agents is a well-studied problem in distributed computing and has foundational importance in theoretical computer science. Originating from early work by Shannon [39], the objective is for mobile agents to collectively visit every node in a given network. Depending on the requirements, the task may involve visiting each node at least once (exploration with termination) or repeatedly over time (perpetual exploration). This problem is not only of theoretical interest but also has practical implications for systems involving autonomous agents, such as robots, software agents, or vehicles, where exploration helps in fault detection, information dissemination, or data collection across the network.
The graph exploration problem has been studied under a wide range of assumptions. These include whether the nodes are uniquely labelled or anonymous, whether agents have distinct identities or are indistinguishable, and the mode of communication or interaction among agents, such as using whiteboards, tokens, face-to-face meetings, or vision-based mechanisms. Variations also arise based on the degree of synchrony among agents (asynchronous, semi-synchronous, or fully-synchronous), the extent of their knowledge about the network, and the amount of memory available to them (refer to [2, 7, 6, 11, 37, 21, 22, 13, 14], for a comprehensive overview, refer to [9]). Despite the diversity in models, most of the prior research is on static graphs, meaning the graph structure remains fixed throughout the exploration. While this assumption works well for traditional networks, where changes typically result from failures but it falls short in capturing the behaviour of today’s highly dynamic networks.
The dynamic nature of modern networks presents significant challenges in addressing various algorithmic problems in mobile computing and related domains, as the underlying network topology evolves over time. From the perspective of mobile agents, this means that agents must carry out their tasks in an environment that evolves over time steps. A foundational model capturing such dynamic behaviour was introduced by Kuhn et al. [32]. In their framework, they defined a stability property known as -Interval Connectivity (for ), which requires that in every sequence of consecutive rounds, there exists a stable, connected spanning subgraph, although additional edges may appear or disappear in each round. Later, Michail et al. [33] proposed a more relaxed and natural notion of connectivity in dynamic networks, particularly suitable for networks that may be disconnected at individual time steps. They introduced the concept of Connectivity Time, defined as follows:
Let be a fixed set of nodes and be the set of possible edges. Let denote the power set of . A synchronous dynamic network is modeled as a dynamic graph , where maps each round number to the set of edges present at that round. The static graph at round is denoted by .
Definition.
[33] The Connectivity Time of a dynamic graph is the minimum integer such that , the union graph is connected.
This model generalizes -Interval Connectivity, but unlike -Interval Connectivity, it allows temporary disconnections. Thus, Connectivity Time is strictly weaker than -Interval Connectivity. In the next section, we discuss the model and problem definition.
2 Model and Problem Definition
Dynamic graph model.
We consider a dynamic network modeled as a sequence of undirected graphs , where the node set remains fixed over time and satisfies . Define as the set of all possible edges, and let denote its power set. The function maps each round number to the set of edges present at that round, yielding the snapshot graph . The dynamic graph is thus given as a sequence . We assume the presence of a dynamic adversary that may insert or delete any edge at the beginning of each round. The degree of a node at round is denoted by . The diameter of is denoted by .
Each snapshot graph is unweighted, undirected, and anonymous. Moreover, the graph is port-labelled: for any node , the incident edges are assigned distinct local port numbers in the range . For an edge , the port numbers at and are independently assigned and unrelated. Port labellings can differ across rounds; i.e., port numbers at a node in may not match those in for . Nodes do not have any storage capability. A node is referred to as hole in round if no agent is present at that node, and as multinode if two or more agents occupy it at round . In this work, the graph maintains the Connectivity Time property for some , i.e., for every , the graph is connected.
Agent model.
We consider mobile agents that are initially placed arbitrarily on the nodes of . Each agent has a unique identifier from the range , where is some constant, and knows only its own ID. Agents are equipped with memory and execute the algorithm under a fully synchronous scheduler, i.e., in each round , every agent executes a Communicate-Compute-Move (CCM) cycle:
-
Communicate: Agents communicate as per the communication model.
-
Compute: Based on its local view and any received information, the agent performs computation, including deciding whether and where to move.
-
Move: The agent moves through a chosen port or stays idle.
The time complexity is measured by the number of synchronous rounds. We refer to together with the agents’ positions as the configuration. With a slight abuse of notation, we may denote the configuration at round by .
Visibility model.
We adopt a standard visibility framework where agents have -hop visibility. In the -hop model [1, 34], at the beginning of round , an agent can see the subgraph induced by nodes within distance from its current location in , including the presence or absence of agents in that neighbourhood. When , this provides full visibility at round .
Communication model.
In this work, we consider the global communication model [20, 8, 36, 30, 31]. The global communication allows agents to exchange messages with any agent located in the same connected component of , utilizing the graph’s links. The global communication between two different connected components of is not possible, as there is no edge between two different connected components.
Problem definition.
A node is visited by round if at least one agent is at node at round , where . An algorithm achieves exploration if every node is visited at least once. And, an algorithm achieves perpetual exploration if every node is visited infinitely often.
3 Related Work
Exploration of dynamic graphs has been widely studied in centralized settings, where agents have full knowledge of the network’s evolution. Notably, optimal exploration schedules have been analyzed under 1-Interval Connectivity [18] and extended in subsequent works [15, 17, 16]. Specific topologies such as rings and cactuses have also been explored under -Interval and 1-Interval Connectivity, respectively [27, 26].
Distributed exploration, with limited agent knowledge, has received less attention. Probabilistic methods like random walks were introduced in early foundation work [3], while deterministic approaches focus on periodic graphs and carrier models [18, 19, 28, 27]. Perpetual exploration and exploration with termination have been studied in 1-Interval Connected rings using 2 or 3 agents under Fsync and Ssync models [4, 5, 12]. Other results include exploration with agents in toroidal networks [24], and single-agent strategies with partial foresight [25]. A significant advancement in this area is the work by Gotoh et al. [23], which investigates the fundamental limits of exploration in time-varying graphs under Fsync and Ssync schedulers. In their model, the network is derived from a fixed footprint graph from which edges are deleted dynamically. Agents are able to detect missing edges indirectly when their attempted movements fail. Additionally, port numbers at nodes remain fixed throughout the computation, inherited from the footprint. In contrast, our model assumes the absence of a global footprint. More importantly, port numbers are not fixed over time, as they depend on the local degree of . Consequently, agent movements are always successful, and agents may be unable to detect the change of topology. These characteristics make our model weaker than the one studied in [23], as it places fewer constraints on the dynamic behaviour of the network and provides the agents with less information. In this work, we study perpetual exploration in the Connectivity Time dynamic graphs.
Recently, Saxena et al. [38] studied exploration under various connectivity models, including Connectivity Time, and showed that exploration is impossible with at most agents (under model assumptions consistent with ours). However, their result did not yield tight bounds. In this work, we strengthen their impossibility result by proving that exploration is not solvable even with up to agents, and complement this with a matching algorithmic upper bound. Our contributions are presented in the next section.
4 Our Contribution
In this work, we present the following two results:
-
1.
Exploration is impossible in the Connectivity Time dynamic graphs by agents starting from an arbitrary initial configuration, even if agents have infinite memory, full visibility, global communication, and knowledge of all parameters (refer Theorem 4).111If exploration is impossible then so is perpetual exploration and if perpetual exploration is possible then so is exploration.
-
2.
We present a perpetual exploration algorithm for the Connectivity Time dynamic graphs using agents starting from arbitrary initial configuration, where each agent has 1-hop visibility, global communication, and memory (refer Theorem 17).
5 Impossibility Result
In this section, we show that exploration is impossible to solve using agents. Before proceeding with the construction of , we first outline the high-level idea behind the impossibility result.
High-level idea.
While there remains a non-empty set of unexplored nodes, the goal is to transfer agents from explored and occupied nodes to those unexplored ones. As it can be difficult to differentiate between an unexplored node with an explored but unoccupied node, the algorithm may require to transfer agents from explored and occupied nodes to explored but currently unoccupied nodes as well. If an algorithm succeeds in keeping all explored nodes occupied, then eventually, as the adversary must pick an edge across the cut, some agent will move to an unexplored node and hence the node becomes visited. However, the adversary is powerful: if agents move from a node with agents to a node with agents according to some deterministic algorithm, making the new counts and , the adversary can flip the roles of these two nodes in the next graph instance, effectively undoing progress as the algorithm performs the reverse operation. The proofs formalize this idea: with fewer than agents, the adversary can always choose such a flip whereas with that many agents it cannot always do that.
Dynamic graph .
Let for some , and . We give an initial configuration with agents such that the exploration is impossible to solve. Let , , …, be nodes. At the beginning of round 0, consider many one length paths as follows: , , …, and . Let represent the number of agents located at a node at the beginning of round , and let represent the number of agents located at the node at the end of round .222The parameter is the number of agents at node after completing CCM cycle at round . Let for , and (i.e., nodes and are holes). Let’s denote this configuration by (refer to Fig. 1). The total number of agents is . In round , the adversary maintains as follows:
-
(a)
It maintains in these rounds.
-
(b)
, where mod :
At round , there are many one length paths, say , , …, , (we separately show that nodes and are holes at round , with ). Note that at the end of round , , for every . We can see in Fig. 2(A). Based on the movement of agents at round , the adversary forms paths, say , , …, , at the beginning of round as follows.
If , then . Else, . For , is defined as follows.
If , then . Else, . We can see in Fig. 2(B).
Without loss of generality, let , , …, , . If , the adversary maintains the graph as for every . If , the adversary maintains the graph for every as follows.
If an agent from node moves to node at round , then adversary at the beginning of round maintains the following path: , ,…, , and (refer Fig. 3(A) at round , and refer Fig. 3(B) at round ). Otherwise, it maintains the graph as .
If an agent from node moves to node at round , then adversary at the beginning of round maintains the following path: , ,…, , and (refer Fig. 4(A) at round , and refer Fig. 4(B) at round ). Otherwise, it maintains the graph as .
If , then it is not difficult to observe that the number of agents at node as . We show later for every , . Thus, the way we change the graph, the agent always stays between node and and can not access node in round . We denote this configuration by .
-
(c)
, where mod :
At the end of round , there are many paths, say , , …, , (we separately show that nodes and are holes at the beginning of round , with , and at most one agent occupy node ). We can see in Fig. 5(A). At round , the adversary forms many one length paths, say , , …, . Based on the movement of agents at round , the adversary forms paths, say , , …, , at the beginning of round as follows.
If , then . Else, . For , is defined as follows.
At the end of round , there is at most one agent in path , and this agent is either at node or (we show this separately). If there is no agent in path , then and are defined as follows. If , then and . Else, and . If there is one agent in path , then and are defined as follows. Based on agent’s position at node or at the end of round , the cases are as follows.
-
If an agent is at node at the end of round , the path and are defined as follows. If , then and . Else, and .
-
If an agent is at node at the end of round , the path and are defined as follows. If , then and . Else, and .
We can see in Fig. 5(B). It maintains as for every . Later, we show that there is no agent in , and one of the nodes in is . We denote this configuration by .
Fig. 6 shows how the configuration evolves over time.
Lemma 1.
Dynamic graph maintains the Connectivity Time property. (Proof in Appendix, see Section A.1)
We define two notations as follows.
-
(N1) , where mod (or ): In this case, either configuration or is true. Therefore, at round , there are one length paths , , …, . Let , for every . If , then we denote as and as . Otherwise, we denote as and as .
-
(N2) , where mod In this case, configuration is true. Therefore, at round , there are paths , , …, . Let , for every , and . If , then we denote as and as . Otherwise, we denote as and as . We consider as , as , as , and as .
Lemma 2.
The following inequality holds and for every round .
Proof.
Proving our lemma is equivalent to showing that the following two inequalities hold for every at round :
| (A) |
We use mathematical induction to prove inequalities (A) and (B) for every . Both inequalities are true for as includes paths: , , …, , and an additional path . We define for , with . Therefore, for every .
Assuming the statement is true for round , we aim to show that it also holds for round . There are five possible cases to consider: Case 1: , Case 2: , where is an odd number, Case 3: , where is an even number, Case 4: , where is odd, and Case 5: , where is even. Due to the length of the proof, we present only the proofs of Case 1 and Case 4 here. The proofs of Case 2 and Case 3 follow similar ideas to Case 1, and Case 5 builds upon the approach used in Case 4. The proof of Case 2, 3 and 5 is in Appendix, see Section A.2.
Case 1.
In this case, agents are in configuration at round and .
Proof of (A).
Due to the induction hypothesis, the following inequality holds:
| (1) |
Since the dynamic graph does not change between rounds and , no matter how agents move, for every , we have the following:
| (2) |
Therefore, the following inequality holds using Eq. (1) and Eq. (2):
| (3) |
Proof of (B).
The inequality holds due to the induction hypothesis, and the inequality is valid due to proof of (A). Therefore, regardless of how the agents move in round , we have as and . This shows (B) holds for . For , we use a contrapositive argument. Suppose for some smallest value , the inequality (B) does not hold for round . Then the following inequality must be true:
| (4) |
Due to Eq. (3), we get:
| (5) |
Therefore, using Eq. (4) and Eq. (5), the inequality holds. Rewrite Eq. (3) as:
| (6) |
From Eq. (4) and Eq. (6), the inequality holds. Thus, due to our assumption (i.e., Eq. 4), we have and . Therefore, we have . This leads to a contradiction because, due to (N1), the inequality holds. This shows that our initial assumption is incorrect. Therefore, inequality (B) holds for round .
Case 4.
In this case, at round , where is an odd number, the configuration is either or , and at round , it changes to
Proof of (A).
Due to the induction hypothesis, the following inequality is true:
| (7) |
The adversary constructs the dynamic graph in round based on the agents’ positions at the end of round . Let . Therefore, and the value of is as follows (recall configuration ):
| (8) |
The adversary forms the dynamic graph at round , ensuring the following equality:
| (9) |
Using Eq. (9), the following equality holds.
| (10) |
Due to Eq. (8), we have . Thus, using Eq. (10):
| (11) |
Using Eq. (7) and Eq. (11), the inequality (A) holds for round .
Proof of (B).
For , the inequality holds, and due to the proof of (A), the inequality holds. Therefore, holds regardless of how agents move at round due to the following reason. If , then and holds as per the dynamic graph construction at round , . Therefore, and , and hence the inequality holds. Since , the inequality . This leads to a contradiction as . Therefore, our assumption is wrong, and it implies . Now we prove (B) when . Due to (A), the following inequalities hold for .
| (12) |
In Eq. (9), the lower bound of is . Using Eq. (9), we have:
| (13) |
Using Eq. (12), we have (by taking the sum of inequalities of Eq. (12)):
| (14) |
Since for every , the following holds:
| (15) |
Due to Eq. (13) and (15), inequality (B) holds for round . This completes the proof.
Corollary 3.
At round , , where is an odd number.
Proof.
Due to Lemma 2, the following two inequalities hold at round .
| (16) |
Therefore, due to Eq. (16), . This completes the proof.
Theorem 4.
If the initial configuration contains at least two holes, then a group of agents cannot solve the exploration problem in dynamic graphs that maintain the Connectivity Time property. This impossibility holds even if agents have infinite memory, full visibility, global communication, and know the parameters , , .
Proof.
Our dynamic graph construction satisfies the Connectivity Time property as established in Lemma 1. To prove that exploration is impossible, it suffices to show that node remains a hole at every round . If , node is not accessible to the agents because node is in path , where is a hole.
As per Corollary 3, . Therefore, at the beginning of round , there can be at most one agent at node . If there is no agent, then node is not accessible to the agents because node is in path , where , are holes.
If there is an agent at node at the beginning of round , it has the option to move to node during round . In this scenario, the adversary constructs the following graph at round according to our dynamic graph construction method: the adversary maintains the paths unchanged and modifies from to . In this manner, at round , the node is two hops away from the agent’s position. The adversary follows the same procedure; if the agents move in later rounds from node to , this ensures that during rounds , the agents consistently remain at nodes and . Consequently, the agent can not reach node in any of these rounds.
At the beginning of round , as per our dynamic graph construction, if there was an agent in path at round (there is at most one agent due to Corollary 3), it removes such a node from at the beginning of round . Therefore, as per dynamic graph construction at the beginning of round , the node is in path , where node is a hole. The adversary maintains the same configuration at every round . Therefore, the agent can not reach node in any of these rounds. This idea can be extended for using Corollary 3. It is important to note that this is independent of the agents’ power. Therefore, the proof remains valid even if the agents have full visibility, global communication, and know all parameters. This completes the proof.
6 Connectivity Time Dynamic Graph Exploration
The Connectivity Time dynamic graph has high dynamicity, and the high dynamicity may prevent even basic coordination if agents are significantly restricted in their ability to perceive their surroundings or communicate with one another. Assume agents have 1-hop visibility. Consider two paths: and . The adversary can create either or , such that only at , the 1-hop view remains unchanged. The movement of agent(s) at remains the same for both and irrespective of the hole position. This can cause exploration to fail. Now, assume agents have global communication but no 1-hop visibility. Then, local views at each node remain the same in the above example, making it difficult again. To address these challenges, we assume that agents are equipped with 1-hop visibility and global communication capabilities in our algorithm. Even stronger assumptions are considered in the study of 1-Interval Connected dynamic networks (e.g., in [10], [35], authors use full visibility), and are instrumental in enabling tractable algorithmic solutions under highly dynamic conditions. Since 1-Interval Connectivity is a stronger assumption than the Connectivity Time, the Connectivity Time model imposes greater difficulty. It is important to emphasize that these assumptions are not fundamental to the definition of the problem but are adopted solely to overcome the adversarial nature of the Connectivity Time model. Moreover, we complement our algorithmic results with lower bounds and impossibility results (refer to Section 5) that hold even when agents possess stronger capabilities, including full knowledge of all system parameters, full visibility, and global communication. This highlights the inherent difficulty of perpetual exploration in such settings.
High-level idea.
Suppose that at round , agents know the map of . Let be a multinode and a hole in , connected via a shortest path , with , , and all intermediate nodes occupied by some agent. Let denote an agent at for . In round , each moves to . The multinode remains non-empty, and each () receives an agent from and sends one to , preserving non-hole status. Finally, the hole is filled. This strategy is known as pipeline strategy, which pushes an agent to the nearest hole without creating new holes and has been used in prior works (e.g.,[29]).
Challenges.
A key challenge arises from the agents’ inability to reconstruct the dynamic graph due to limited knowledge of the adversary’s behavior. However, with 1-hop visibility and global communication, agents can share local views to collaboratively form a partial network snapshot. While this may not capture the full graph, it often suffices for executing the pipeline procedure.
The core difficulty lies in ensuring every node is visited at least once. Even if agents can fill holes, some nodes may remain unvisited. Under the Connectivity Time model, two nodes may never belong to the same connected component in any single round. For example, let with , where is a multinode, and nodes are not holes; node is initially a hole. Define as follows: if or , let (see Fig. 7(a), (b)), and if , let (see Fig. 7(c)). Although is connected for all , no direct path exists between and in any single round. Thus, cannot pipeline to , despite being a multinode. This illustrates how the adversary can isolate nodes round by round, impeding exploration. To address this, we use an enhanced pipeline. If at round , agents detect that there exists at least one hole and at least one multinode in their connected component of , then the standard pipeline fills it. If not, then each node in the component has at least one agent. Let be the number of agents at node at round . If two nodes and in the same component satisfy , agents initiate a redistribution along a shortest path from to (with , ), transferring one agent via pipelining to balance the load of agents. Since the graph can be highly sparse and disconnected, enhanced pipeline gradually builds a configuration of agents on the nodes such that pipeline becomes feasible along every connected path in each round.
In the following sections, we use two parameters: , which denotes the number of agents at node , and , which denotes the ID of agent .
6.1 Map Construction
We begin by presenting an algorithm that allows agents to construct a partial map of the network, specifically, the subgraph induced by the nodes currently occupied by agents. A similar strategy was proposed in [29]; we adapt and modify it to suit our setting and terminology. This serves as a subroutine in our exploration algorithm.
At round , since may be disconnected, it consists of connected components, denoted , where each with and . For each connected component , we further divide it into several subgraphs considering nodes that contains agent(s). In this context, we define:
Definition 5 (Connected component of without holes).
The component can be partitioned into subgraphs , where each satisfies the following:
-
Every node have at least one agent, for all .
-
The sets of nodes and edges are pairwise disjoint, i.e., and for all , where .
-
There exists no edge such that and , where , i.e., the subgraphs are disconnected from each other within .
We refer to the collection of subgraphs as the connected component of without holes, and denote by .
In other words, denotes the collection of connected components obtained by removing all holes and their associated edges from . Recall that agents use global communication, but communication is limited within each connected component. That is, agents located in cannot communicate with agents in for , as communication happens through the graph links. An agent in component performs the following steps at round to compute . The algorithm is divided into two phases as described below.
Phase 1.
(1-hop view collection) Let be the agent with the minimum ID located at a node . The agent performs the following for each port :
-
Let be the neighbor of reachable via port . Set .
-
If at least one agent is present at : define , where is the minimum ID among the agents at node .
-
If no agent is present at (i.e., it is a hole): define , where denotes a hole via port .
Let denote the 1-hop view at node , where . The agent broadcasts to all agents in using global communication.
Phase 2.
(Graph Reconstruction) After receiving all 1-hop views from agents in , agent proceeds as follows:
-
Define , where each unique ID represents a node.
-
Construct the edge set as follows: for each pair of tuples and , where and , add an undirected edge with port labels and , where denotes the outgoing port from node to .
-
For each tuple , mark port at node as leading to a hole.333This step does not introduce any new holes or edges leading to holes during Phase 2; it only marks the port(s) at node that lead to a hole.
We denote this algorithm as MAP(). The correctness of MAP() is as follows. We show that at round , if agent is in connected component of , then it constructs by using MAP(). Let be the map constructed by agent using MAP().
Theorem 6.
Let agent be located at some node in the connected component . Then, using the subroutine MAP(), agent constructs . (Proof in Appendix, see Section A.3)
Observation 7.
Using MAP(), the agents in construct , including information of the number of agents at each node and the ports from node (if any) that lead to a hole.
Observation 8.
Since all agents within the same connected component exchange information via global communication, the output of MAP() is identical for every agent in that component.
Observation 9.
If there is no hole in , then is the same as , as per Def. 5.
6.2 Perpetual Exploration Algorithm
In this section, we present the algorithm EXP_ALGO(), which solves perpetual exploration when agents are equipped with 1-hop visibility and global communication. The following is a detailed description of the algorithm for agent at node during round : if node is a multinode and agent is not the minimum ID agent, then it stays at node . If agent is the minimum ID agent at node , it follows the following steps at round .
-
Agent broadcasts .
-
After receiving all s, agent use algorithm. Let’s call this constructed graph . Using Theorem 6, the graph is nothing but a collection of partitioned subgraphs of , where is the connected component for which is a part. The following four cases may arise in the constructed map , and in each case, agent makes a corresponding decision.
- Case 1 (there is no multinode and no information of a port towards a hole):
-
Agent stays at node .
- Case 2 (there is no multinode, but there is information of a port leading to a hole):
-
Assume there are nodes, each with an agent that has a port leading to a hole. Let , , …, be agents at node , , …, , respectively in , where one of the ports of leads to a hole for every . If , then it moves to the node which leads to the hole via the minimum port. Otherwise, it stays at its position.
- Case 3 (both a multinode and information of a port towards a hole are present):
-
Suppose there are multinodes in . Let , , …, be agents at node , , …, , respectively in where each node is a multinode in . Without loss of generality, let . Without loss of generality, let be in . One of the nodes in leads to a hole as there is a hole in , and using Definition 5. Assume there are nodes in , each with an agent that has a port leading to a hole. Let , , …, be agents at node , , …, , respectively in such that one of the ports lead to a hole from node , for every . Without loss of generality, let .
Since, agent is aware of , it consider a shortest path between and . If there are multiple shortest paths between and , then it selects the one that is lexicographically shortest among all other shortest paths. Let . If agent is at some node , for , then it moves to node . Else if agent is at node , then it moves to the node via the minimum available port, which leads to a hole. Otherwise, it stays at node .
- Case 4 (there is a multinode but there is no information of a port towards a hole):
-
Assume there are nodes in . Due to Observation 8, the graph is the graph . Define: , and , where is the set of nodes in . Let be the nodes in such that for each , and let denote the minimum ID agent at node . Similarly, let be the nodes in such that for each , and let denote the minimum ID agent at node . Without loss of generality, let be the agent among with the minimum ID, and be the agent among with the minimum ID. If , agent stays at node . Otherwise (i.e.,), agent find a shortest path between and . If there are multiple shortest paths between and , then it selects the one that is lexicographically shortest. Let . If agent is at some node , for , then it moves to node . Else, it stays at .
In the next section, we show the correctness of our algorithm.
6.3 Correctness and Analysis of the Algorithm
Before proving correctness, we introduce the following notation. Let be the number of nodes, and define For each , let Let denote the largest integer such that at round 0.
Lemma 10.
Let be the configuration at round . If there exists at least one hole and at least one multinode in the same connected component of , then the total number of holes in decreases by at least one at the end of round . (Proof in Appendix, see Section A.4)
Lemma 11.
Let be the configuration at round , and suppose that there exists a connected component of such that contains at least one multinode but no hole. Define , where is the set of nodes in . If , then at the end of round , one of the nodes with reduces its by 1, and one of the nodes with increases its by 1. (Proof in Appendix, see Section A.5)
Remark 12.
Based on Lemma 11, we observe that one agent reaches a node at round . As a result, becomes at the beginning of round , implying that . Whenever at round , a node becomes a part of , i.e., at round , it was not a part of , we call this event join. Whenever at round , a node does not remain a part of , i.e., at round , it was a part of but it is not part of at round , we call this event leave.
We have an observation based on EXP_ALGO(), which is as follows.
Observation 13.
A node with at round can become a hole by the end of round only if and belongs to a connected component of that contains a hole but no multinode.
We now show that perpetual exploration is achieved using agents.
Lemma 14.
If at some round , then node is visited by some agent within the next rounds. (Proof in Appendix, see Section A.6)
Lemma 15.
If , then such that , , and for all . (Proof in Appendix, see Section A.7)
Lemma 16.
If initially , then within round .
Proof.
At round , there are two possible cases: Case 1: , or Case 2: .
Case 1.
To maintain the Connectivity Time, some node from must be in the same connected component as a node from , , within the first rounds. By Lemma 10, this causes to decrease by at least one in the next rounds. If throughout , then eventually becomes empty. Otherwise, if at some round , we are in Case 2.
Case 2.
Suppose that at round , . To show that , we proceed by contrapositive argument. Assume that throughout the interval . Then, by Lemma 15, there exist indices and with such that , , and for all .
According to Remark 12, nodes may join or leave the set at each time step. A key question is: how many times can nodes join the set ? By Lemma 11, a node can join at round only if at least one node from (with ) and one node from belong to the same connected component of , and no node from for is in . We have many agents. Then in the worst case, nodes can join the set at most times, as each time one agent can move from to . If at most times nodes joins set , the size of decreases due to Lemma 11, eventually making for every .
As there are such sets with , the total number of join events between rounds and can not be more than . Now divide the interval into consecutive sub-intervals of length : each sub-interval is of the form for . If at least one node leaves some set during each sub-interval, then there are such leave events in total. Since each leave corresponds to a join, this implies there are also join events. But this contradicts our earlier conclusion that there can be at most join events. By the pigeonhole principle, this contradiction implies that our assumption is false. Therefore, within rounds, we must have .
Since Case 2 is reached within rounds from any initial configuration, holds within rounds overall. This completes the proof.
Theorem 17.
EXP_ALGO() solves perpetual exploration in Connectivity Time dynamic graphs using synchronous agents equipped with 1-hop visibility, global communication, and bits of memory. The agents have no knowledge of , , .
Proof.
If initially, then by Lemma 16, within rounds. Suppose that at some round , . If , then all nodes are occupied, and by Observation 13, no node becomes a hole in future rounds. Thus, perpetual exploration is achieved.
If , then by Lemma 14, node is visited within the next rounds. Thus, all nodes are visited by some agent within rounds, and the invariant is preserved thereafter. This process repeats indefinitely, ensuring perpetual exploration.
Each agent requires bits to distinguish itself. Since the computation is round-local (i.e., agents do not retain information from previous rounds), bits of memory are sufficient. This completes the proof.
Remark 18.
7 Conclusion and Future Work
In this work, we have shown that exploration is impossible in Connectivity Time dynamic graphs by agents starting from an arbitrary initial configuration, even if agents have infinite memory, full visibility, global communication, and knowledge of all parameters. We then presented an algorithm that solves perpetual exploration using one extra agent with only 1-hop visibility, global communication, and memory. One can study whether this extra agent helps to reduce the assumptions of 1-hop visibility and/or global communication which we require for exploration.
References
- [1] A. Agarwalla, J. Augustine, W. K. Moses, S. K. Madhav, and A. K. Sridhar. Deterministic dispersion of mobile robots in dynamic rings. In ICDCN, pages 1–4, 2018.
- [2] S. Albers and M. Henzinger. Exploring unknown environments. SIAM Journal on Computing, 29(4):1164–1188, 2000. doi:10.1137/S009753979732428X.
- [3] Chen Avin, Michal Kouckỳ, and Zvi Lotker. How to explore a fast-changing world (cover time of a simple random walk on evolving graphs). In ICALP 2008, pages 121–132, 2008.
- [4] Marjorie Bournat, Ajoy K Datta, and Swan Dubois. Self-stabilizing robots in highly dynamic environments. In SSS 2016, pages 54–69, 2016. doi:10.1007/978-3-319-49259-9_5.
- [5] Marjorie Bournat, Swan Dubois, and Franck Petit. Computability of perpetual exploration in highly dynamic rings. In ICDCS 2017, pages 794–804, 2017. doi:10.1109/ICDCS.2017.80.
- [6] J. Chalopin, P. Flocchini, B. Mans, and N. Santoro. Network exploration by silent and oblivious robots. In WG, pages 208–219, 2010.
- [7] R. Cohen, P. Fraigniaud, D. Ilcinkas, A. Korman, and D. Peleg. Label-guided graph exploration by a finite automaton. ACM Transactions on Algorithms, 4(4):1–18, 2008. doi:10.1145/1383369.1383373.
- [8] S. Das, D. Dereniowski, and C. Karousatou. Collaborative exploration of trees by energy-constrained mobile robots. Theor. Comp. Sys., 62(5):1223–1240, July 2018. doi:10.1007/S00224-017-9816-3.
- [9] Shantanu Das. Graph Explorations with Mobile Agents, pages 403–422. Springer International Publishing, 2019. doi:10.1007/978-3-030-11072-7_16.
- [10] Shantanu Das, Nikos Giachoudis, Flaminia L. Luccio, and Euripides Markou. Broadcasting with Mobile Agents in Dynamic Networks. In OPODIS 2020, pages 24:1–24:16, 2021.
- [11] X. Deng and C.H. Papadimitriou. Exploring an unknown graph. Journal of Graph Theory, 32(3):265–297, 1999. doi:10.1002/(SICI)1097-0118(199911)32:3\%3C265::AID-JGT6\%3E3.0.CO;2-8.
- [12] G Di Luna, Stefan Dobrev, Paola Flocchini, and Nicola Santoro. Distributed exploration of dynamic rings. Distributed Computing, 33:41–67, 2020. doi:10.1007/S00446-018-0339-1.
- [13] Y. Dieudonné and A. Pelc. Deterministic network exploration by anonymous silent agents with local traffic reports. ACM Transactions on Algorithms, 11(2):1–29, 2014. doi:10.1145/2594581.
- [14] S. Dobrev, L. Narayanan, J. Opatrny, and D. Pankratov. Exploration of high-dimensional grids by finite automata. In ICALP, pages 1–16, 2019.
- [15] Thomas Erlebach, Michael Hoffmann, and Frank Kammer. On temporal graph exploration. Journal of Computer and System Sciences, 119:1–18, 2021. doi:10.1016/J.JCSS.2021.01.005.
- [16] Thomas Erlebach, Frank Kammer, Kelin Luo, Andrej Sajenko, and Jakob T Spooner. Two moves per time step make a difference. In ICALP 2019, page 141, 2019.
- [17] Thomas Erlebach and Jakob T Spooner. Faster exploration of degree-bounded temporal graphs. In MFCS 2018), pages 36:1–36:13, 2018. doi:10.4230/LIPICS.MFCS.2018.36.
- [18] Paola Flocchini, Matthew Kellett, Peter C Mason, and Nicola Santoro. Searching for black holes in subways. Theory of Computing Systems, 50:158–184, 2012. doi:10.1007/S00224-011-9341-8.
- [19] Paola Flocchini, Bernard Mans, and Nicola Santoro. On the exploration of time-varying networks. Theoretical Computer Science, 469:53–68, 2013. doi:10.1016/J.TCS.2012.10.029.
- [20] P. Fraigniaud, L. Gasieniec, D. R. Kowalski, and A. Pelc. Collective tree exploration. Networks, 48(3):166–177, 2006. doi:10.1002/NET.20127.
- [21] P. Fraigniaud, D. Ilcinkas, G. Peer, A. Pelc, and D. Peleg. Graph exploration by a finite automaton. Theoretical Computer Science, 345(2–3):331–344, 2005. doi:10.1016/J.TCS.2005.07.014.
- [22] P. Fraigniaud, D. Ilcinkas, and A. Pelc. Impact of memory size on graph exploration capability. Discrete Applied Mathematics, 156(12):2310–2319, 2008. doi:10.1016/J.DAM.2007.11.001.
- [23] Tsuyoshi Gotoh, Paola Flocchini, Toshimitsu Masuzawa, and Nicola Santoro. Exploration of dynamic networks: Tight bounds on the number of agents. Journal of Computer and System Sciences, 122:1–18, 2021. doi:10.1016/J.JCSS.2021.04.003.
- [24] Tsuyoshi Gotoh, Yuichi Sudo, Fukuhito Ooshita, Hirotsugu Kakugawa, and Toshimitsu Masuzawa. Group exploration of dynamic tori. In ICDCS 2018, pages 775–785, 2018. doi:10.1109/ICDCS.2018.00080.
- [25] Tsuyoshi Gotoh, Yuichi Sudo, Fukuhito Ooshita, and Toshimitsu Masuzawa. Exploration of dynamic ring networks by a single agent with the h-hops and s-time steps view. In SSS 2019, pages 165–177, 2019. doi:10.1007/978-3-030-34992-9_14.
- [26] David Ilcinkas, Ralf Klasing, and Ahmed Mouhamadou Wade. Exploration of constantly connected dynamic graphs based on cactuses. In SIROCCO, pages 250–262, 2014. doi:10.1007/978-3-319-09620-9_20.
- [27] David Ilcinkas and Ahmed M Wade. Exploration of the t-interval-connected dynamic graphs: the case of the ring. Theory of Computing Systems, 62:1144–1160, 2018. doi:10.1007/S00224-017-9796-3.
- [28] David Ilcinkas and Ahmed Mouhamadou Wade. On the power of waiting when exploring public transportation systems. In OPODIS 2011, pages 451–464, 2011. doi:10.1007/978-3-642-25873-2_31.
- [29] Ajay D. Kshemkalyani and Faizan Ali. Efficient dispersion of mobile robots on graphs. In Proceedings of the 20th International Conference on Distributed Computing and Networking, ICDCN ’19, page 218–227, New York, NY, USA, 2019. Association for Computing Machinery. doi:10.1145/3288599.3288610.
- [30] Ajay D. Kshemkalyani, Anisur Rahaman Molla, and Gokarna Sharma. Dispersion of mobile robots in the global communication model. In Proceedings of the 21st International Conference on Distributed Computing and Networking, ICDCN ’20, New York, NY, USA, 2020. Association for Computing Machinery. doi:10.1145/3369740.3369775.
- [31] Ajay D. Kshemkalyani, Anisur Rahaman Molla, and Gokarna Sharma. Dispersion of mobile robots on grids. In WALCOM: Algorithms and Computation: 14th International Conference, WALCOM 2020, Singapore, Singapore, March 31 – April 2, 2020, Proceedings, page 183–197, Berlin, Heidelberg, 2020. Springer-Verlag. doi:10.1007/978-3-030-39881-1_16.
- [32] F. Kuhn, N. Lynch, and R. Oshman. Distributed computation in dynamic networks. In STOC, pages 513–522, New York, NY, USA, 2010.
- [33] O. Michail, I. Chatzigiannakis, and P. G. Spirakis. Causality, influence, and computation in possibly disconnected synchronous dynamic networks. Journal of Parallel and Distributed Computing, 74(1):2016–2026, 2014. doi:10.1016/J.JPDC.2013.07.007.
- [34] A. Miller and U. Saha. Fast byzantine gathering with visibility in graphs. In Algorithms for Sensor Systems, pages 140–153, 2020.
- [35] William K. Moses Jr., Amanda Redlich, and Frederick Stock. Brief Announcement: Broadcast via Mobile Agents in a Dynamic Network: Interplay of Graph Properties & Agents. In SAND 2025, pages 17:1–17:5, 2025. doi:10.4230/LIPICS.SAND.2025.17.
- [36] C. Ortolf and C. Schindelhauer. Online multi-robot exploration of grid graphs with rectangular obstacles. In SPAA 2012, pages 27–36, New York, NY, USA, 2012.
- [37] P. Panaite and A. Pelc. Exploring unknown undirected graphs. Journal of Algorithms, 33:281–295, 1999. doi:10.1006/JAGM.1999.1043.
- [38] Ashish Saxena and Kaushik Mondal. Path connected dynamic graphs with a study of dispersion and exploration. Theoretical Computer Science, 1050:115390, 2025. doi:10.1016/J.TCS.2025.115390.
- [39] Claude E Shannon. Presentation of a maze-solving machine. Claude Elwood Shannon Collected Papers, pages 681–687, 1993.
Appendix A Appendix
A.1 Proof of Lemma 1
Proof.
For , let , , …, be consecutive sequence of graphs, where for . Suppose the above dynamic graph does not satisfy the Connectivity Time property for some round , i.e., is not connected. It is important to note that there exists a round between and such that , for some .
If is odd, then in each round , there are one length paths in : , , …, and . As per the dynamic graph construction at round , the adversary changes paths as follows: , , …, and , where and , for every . Taking the union of the edges from for creates a path of length .
Similarly, if is even, then in each round , there are paths in : , , …, , and . By using a similar argument, we can show that the way we modify the construction at round results in the union of edges from for , which forms a path of length .
This shows our assumption is wrong. Therefore, this dynamic setting satisfies the Connectivity Time property.
A.2 Proof of Lemma 2 (Remaining Cases)
Proof.
The proof for Cases 2, 3, and 5 is as follows.
Case 2.
In this case, round , where is an odd number, and agents are in configuration . The proof of Eq. (A) and Eq. (B) for round is as follows.
Proof of (B).
Due to the induction hypothesis, the following inequality holds for :
| (1) |
Since the dynamic graph does not change for every round , no matter how agents move, for every , we have the following
| (2) |
Therefore, inequality (B) holds for round r + 1 using Eq. (1) and Eq. (2).
Proof of (A).
We use a contrapositive argument. Suppose for some smallest value , the inequality does not hold. Then the following inequality must be true:
| (3) |
Due to proof of (B), we have:
| (4) |
Therefore, using Eq. (3) and Eq. (4), the inequality holds. Due to proof of (B), we have:
| (5) |
We now rewrite Eq. (5) as:
| (6) |
From Eq. (3) and Eq. (6), the inequality holds. Therefore, due to our assumption (i.e., Eq. (3)), we have and . This leads to a contradiction because, due to (N2), the inequality holds. This shows that our initial assumption is incorrect. Therefore, inequality (A) holds for round r + 1.
Case 3.
In this case, round , where is an even number. The proof is similar to Case 1.
Case 5.
In this scenario, let , where is an even integer. At round , the configuration is . As per (N2), there are paths: , , …, , and . At round as per (N1), there are paths: , , …, , and . It holds that for every .
Proof of (B).
Due to the induction hypothesis, the following inequality is true:
| (7) |
Since , . Therefore, for , the inequality (A) holds at round . For , the inequality (A) holds at round for the following reason. Let for . Therefore, the value of is as follows.
| (8) |
The adversary forms the dynamic graph at round , ensuring the following equality is true.
| (9) |
Using Eq. (9), the following equality holds.
| (10) |
Due to Eq. (8), . Therefore, we have the following from Eq. (10).
| (11) |
Using Eq. (7) and Eq. (11), the inequality (B) holds at round .
Proof of (A).
Due to the proof of (B), the following inequalities are true for any .
| (12) |
| (13) |
Due to Eq. (9), the following inequality is true for .
| (14) |
The lower bound of is . Therefore, we get the following inequality from Eq. (14).
| (15) |
Using Eq. (12) and Eq. (13), we get the following inequality (by taking the sum of Eq. (12) and Eq. (13)):
| (16) |
We know that the following inequality is true.
| (17) |
Due to Eq. (16) and Eq. (17), the following holds.
| (18) |
Due to Eq. (15) and Eq. (18), the following holds.
This completes the proof.
A.3 Proof of Theorem 6
Proof.
Let edge be in graph , for some , which is a subgraph of , and , . Since , there is at least one agent at each node and using Definition 5. Let agent be the minimum ID agent at node , and agent the minimum ID agent at node . Since node and are in the same connected component, agent gets information of , and agent gets information of . Since is an outgoing port of node , agent gets information about . And since is an outgoing port of node , agent gets information about , and . As per MAP(), agent add edge , where and are two nodes in , and , and . Therefore, . This completes the proof.
A.4 Proof of Lemma 10
Proof.
Let be the connected components of . Without loss of generality, suppose contains at least one hole and at least one multinode. By Theorem 6 and Observation 8, all agents in possess a common map of the anonymous copy , denoted by . Suppose there are multinodes in , located at nodes , with the minimum ID agents occupying them. Without loss of generality, let be the agent with the minimum ID among them, i.e., , and assume resides in .
Since contains at least one hole, there exists at least one node in from which a port leads to a hole. Let there be such nodes, denoted , with corresponding minimum-ID agents occupying them. Let be the agent with the minimum ID among them, i.e., . Since all agents in share the same map , they identify the same pair of nodes: (a multinode) and (adjacent to a hole). Let denote the lexicographically shortest path from to in . This path is unique due to the deterministic selection criteria based on IDs and shared knowledge of .
Each agent on this path identifies its current position and acts accordingly: if an agent is at node for , it moves to . The agent at selects the minimum available port that leads to a hole and moves through it. Thus, a hole gets filled without creating a new hole elsewhere. Therefore, the total number of holes in decreases by at least one at the end of round . This completes the proof.
A.5 Proof of Lemma 11
Proof.
Let be the connected components of . Without loss of generality, let be the connected component that contains at least one multinode but no hole. Since contains a multinode but no hole, by Theorem 6 and Observation 9, every agent in constructs the map of using the procedure MAP(). Let be the nodes in such that for each , and let denote the minimum ID agent at node . Similarly, let be the nodes such that for each , and let denote the minimum ID agent at node . Without loss of generality, let be the agent among with the minimum ID, and be the agent among with the minimum ID. Since all agents share the same reconstructed map , they all identify the same pair of nodes and as the nodes with maximum and minimum values, respectively. Let be the lexicographically shortest path from to in , which is uniquely determined by the map and agent ID choices. Each agent on this path identifies its position and moves accordingly: if an agent is at node for , it moves to . As a result, the value of decreases by 1, and the value of increases by 1. This completes the proof.
A.6 Proof of Lemma 14
Proof.
To maintain the Connectivity Time property, node must be connected to some node at round , where . Let be the connected component of at round such that the node is part of the graph . If has at least one multinode, then one agent moves to node as agents in execute EXP_ALGO() due to Lemma 10.
Otherwise, all nodes in except node contain exactly one agent. At round , let , , …, be neighbours of node in , and agent be at node . As per EXP_ALGO(), the minimum ID agent ID among s moves to node . This completes the proof.
A.7 Proof of Lemma 15
Proof.
Suppose the lemma does not hold. It implies for every , where is the largest index satisfying . The value is . Assume . Without loss of generality, let . Since for every , . Therefore, the total number of nodes is as and . This leads to the contradiction as many nodes are present. Therefore, .
Since for every , . Therefore, . Define . The value denotes the total number of agents when is false. The maximum value of occurs when for , and as . Thus, . After simplifying, we get that . This leads to the contradiction as the number of agents in the system is . Thus, our initial assumption must be incorrect. This completes the proof.
