arXiv:2609.06850cs.DCSep 2026

Manuscript Offprint

arXiv:2609.06850

Don't Be Afraid to Die: Black Hole Search in Dynamic Graphs with Fewer Agents

Kass Bileski, Avery Miller

Kass Bileski and Avery Miller[0000-0002-8231-3697]

University of Manitoba, Winnipeg MB, Canada bileskib@myumanitoba.ca, avery.miller@umanitoba.ca

Abstract. We consider a team of synchronous mobile agents operating in a port-labeled network. There is one node in the network called a black hole that permanently destroys any agent that visits the node. The team of agents must safely locate the black hole, i.e., at least one agent must survive, terminate its algorithm at a node adjacent to the black hole, and output the port number that leads to the black hole from its current position. In the setting where the network is a 1-bounded 1-interval connected dynamic graph, previous work [19] showed that a team consisting of 2δBH+172\delta_{BH} + 17 agents is sufficient to solve the task from a scattered configuration, where δBH\delta_{BH} denotes the degree of the black hole node. We show that 2δBH+32\delta_{BH} + 3 agents are sufficient, nearly matching the 2δBH+12\delta_{BH} + 1 lower bound provided in [20].

Keywords: black hole search · dynamic graphs · distributed algorithms.

Security is a significant concern in distributed systems. One kind of security hazard is a site attack: a malicious entity has compromised a node in a distributed system, and has perhaps changed the node's behaviour as to inhibit or destroy functionality, information, or entities. Once we have suspected that some node in a system has been compromised, the first step towards dealing with the hazard is to locate it. The Black Hole Search (BHS) problem abstractly models this task: a network or a network-like environment is represented using a graph in which one node is a “black hole” that immediately destroys any mobile entity that visits it. The goal of the problem is to employ a team of mobile agents to find the location of the black hole in a distributed way, i.e., each agent is independently executing a copy of the algorithm rather than having a central entity that can control and monitor all of the agents. This goal is complicated by the fact that an agent that finds the black hole is not able to report its location (since the agent has been destroyed) so the actual requirement is that at least one agent must correctly deduce the location of a node that is adjacent to the black hole, as well as the incident edge that leads to the black hole.

As a potential practical setting, the mobile agents might be a group of software agents that must search a network to locate a dangerous virus that has

  • This work was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant RGPIN-2024-06411.

infected one of the network nodes. As another example, the graph might represent a map of an environment in which robots or self-driving cars move around, and the attack might come in the form of a person intercepting and deactivating the robots/cars at some particular location.

In this work, we create a deterministic distributed mobile agent algorithm that solves BHS in environments where the network edges (on which the agents travel) are not reliable. Such environments complicate the task of deducing the location of the black hole because if one agent aa sees that another agent bb has traversed a link but does not return, agent aa cannot immediately know for certain whether this was due to agent bb visiting the black hole or due to the link disappearing. Regarding efficiency, our main goal is to minimize the number of mobile agents in the team, but we also want the agents to find the black hole relatively quickly, e.g., in polynomial time with respect to the network size.

1 Preliminaries