Optimal-Length Labeling Schemes for Fast Deterministic Communication in Radio Networks
Abstract
We consider two fundamental communication tasks in arbitrary radio networks: broadcasting (information from one source has to reach all nodes) and gossiping (every node has a message and all messages have to reach all nodes). Nodes are assigned labels that are (not necessarily different) binary strings. Each node knows its own label and can use it as a parameter in the same deterministic algorithm. The length of a labeling scheme is the largest length of a label. The goal is to find labeling schemes of asymptotically optimal length for the above tasks, and to design fast deterministic distributed algorithms for each of them, using labels of optimal length.
Our main result concerns broadcasting. We show the existence of a labeling scheme of constant length that supports broadcasting in time , where is the diameter of the network and is the number of nodes. This broadcasting time is an improvement over the best currently known time of broadcasting with constant-length labels, due to Ellen and Gilbert (SPAA 2020). It also matches the optimal broadcasting time in radio networks of known topology. Hence, we show that appropriately chosen node labels of constant length permit to achieve, in a distributed way, the optimal centralized broadcasting time. This is, perhaps, the most surprising finding of this paper. We are able to obtain our result thanks to a novel methodological tool of propagating information in radio networks, that we call a 2-height respecting tree.
Next, we apply our broadcasting algorithm to solve the gossiping problem. We get a gossiping algorithm working in time , using a labeling scheme of optimal length , where is the maximum degree. Our time is the same as the best known gossiping time in radio networks of known topology.
Keywords and phrases:
radio network, distributed algorithms, algorithms with advice, labeling scheme, broadcasting, gossipingFunding:
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.Editors:
Andrei Arusoaie, Emanuel Onica, Michael Spear, and Sara Tucci-PiergiovanniSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
We consider two fundamental communication tasks often occurring in networks. In broadcasting, one node, called the source, has a message that must reach all other nodes. In gossiping, every node has a message and all messages have to reach all nodes.
The model and the problem
We consider radio networks modeled as simple undirected connected graphs. Throughout this paper, denotes the graph modeling the network, denotes the number of its nodes, its diameter, and its maximum degree. At the cost of a small abuse of notation, we sometimes use to denote the height of a BFS spanning tree of a graph with a fixed root node. Note however that the height of a BFS tree is not larger than the diameter and not smaller than , so the orders of magnitude are the same. In our probabilistic considerations concerning graphs with nodes, we use the term “with high probability” (whp) to mean “with probability at least ”.
We use square brackets to indicate sets of consecutive integers: and . All logarithms are to the base 2. For simplicity of presentation, we assume throughout the paper that the number of nodes of a graph is a power of 2, in order to avoid rounding of logarithms. One can easily generalize all the results for arbitrary , preserving asymptotic efficiency measures.
As usually assumed in the algorithmic literature on radio networks, nodes communicate in synchronous rounds (also called steps). All nodes start executing an algorithm in the same round. In each round, a node can either transmit a message to all its neighbors, or stay silent and listen. At the receiving end, a node hears the message from a neighbor in a given round, if listens in this round, and if is its only neighbor that transmits in this round. If more than one neighbor of a node transmits in a given round, there is a collision at . Two scenarios concerning collisions were considered in the literature. The availability of collision detection means that node can distinguish collision from silence which occurs when no neighbor transmits. If collision detection is not available, node does not hear anything in case of a collision (except the background noise that it also hears when no neighbor transmits). We do not assume collision detection. The time of a deterministic algorithm for a given task is the worst-case number of rounds it takes to solve it, expressed as a function of various network parameters.
If nodes are indistinguishable (anonymous), i.e., in the absence of any labels, none of our communication problems can be solved, for example, in the four-cycle. Hence we consider labeled networks, i.e., we assign binary strings, called labels, to nodes. A labeling scheme for a given network represented by a graph is any function from the set of nodes to the set of finite binary strings. The string is called the label of the node . Labels assigned by a labeling scheme are not necessarily distinct. The length of a labeling scheme is the maximum length of any label assigned by it. Every node knows a priori only its label, and can use it as a parameter in the same deterministic algorithm
Solving distributed network problems with short labels can be seen in the framework of algorithms with advice. In this paradigm that has recently got growing attention, an oracle knowing the network (and, for some problems, some distinguished node(s) of the network) gives advice to nodes not knowing it, in the form of binary strings, provided to nodes before the beginning of a computation. A distributed algorithm uses this advice to solve the problem. The required size of advice (maximum length of the strings) can be considered a measure of the difficulty of the problem. Two variations are studied in the literature: either the binary string given to nodes is the same for all of them [19] or different strings may be given to different nodes [11, 10, 12, 13], as in the case of the present paper. If strings may be different, they can be considered as labels assigned to nodes by a labeling scheme. Such labeling schemes permitting to solve a given network task efficiently are also called informative labeling schemes. One of the famous examples of using informative labeling schemes is to answer adjacency queries in graphs [2].
Several authors have studied the minimum amount of advice (i.e., label length) required to solve certain problems (see the subsection Related work). The framework of advice permits us to quantify the minimum amount of information used to solve a given network problem, regardless of the type of information that is provided. Note that the scenario of the same advice given to all (otherwise anonymous) nodes would be useless in the case of radio networks: no deterministic communication could occur.
We now define formally our two communication tasks in a radio network .
-
Broadcasting: One node of the graph, called the source, has a broadcast message that has to reach all nodes . A node which already knows the broadcast message is called an informed node, otherwise the node is uninformed. If a node receives the broadcast message for the first time in round , from some neighbor , we say that informed in round . An uninformed node is a frontier node in a given round, if it is a neighbor of an informed node. In our broadcasting algorithms, only informed nodes send messages.
-
Gossiping: Each has a message, and all messages have to reach all nodes in .
As it is customary in algorithmic literature concerning radio networks, we assume that when a node sends a message, this message can be of arbitrary size. In particular, a node could send its entire history (however, in our algorithms, messages will be usually shorter: in broadcasting, some control messages will be appended to the source message, and in gossiping, all messages already known to a node will be combined in a single message).
Now our goal can be succinctly formulated as follows:
For the above tasks, find an optimal-length labeling scheme permitting to accomplish this task, and design an optimal-time algorithm using a scheme of optimal length.111For the task of broadcasting, constant-length labeling schemes are known, so in this case the goal is to find a scheme of constant length supporting an optimal-time broadcasting algorithm.
Our results
Our main result concerns broadcasting. We improve the best currently known time of deterministic broadcasting using labeling schemes of constant length, due to Ellen and Gilbert (SPAA 2020) [10]. As in [10], our results are of two types: constructive, where the labeling scheme used by the algorithm is explicitly constructed using an algorithm polynomial in , and non-constructive, where we only prove the existence of the labeling scheme used by the algorithm, via the probabilistic method. The broadcasting algorithm from [10] using a constructive constant-length labeling scheme runs in time . We improve it to time . The broadcasting algorithm from [10] using a non-constructive constant-length labeling scheme runs in time . We improve it to time . This latter time is, in fact, the optimal deterministic broadcasting time in radio networks of known topology.222This means that every node has an isomorphic copy of the graph, with nodes labeled in the same way by unique identifiers, and a node knows its identifier. Deterministic algorithms using such knowledge are called centralized.. Hence, we show that appropriately chosen node labels of constant length permit us to achieve, in a deterministic distributed way, the optimal centralized broadcasting time. This is, perhaps, the most surprising finding of this paper. We are able to obtain our result thanks to a novel tool that we call a 2-height respecting tree. The properties of these crucial objects permit us to implement centralized communication techniques in the distributed context.
It should be mentioned that messages used by both our broadcasting algorithms contain the source message and a constant number of control bits.
Next, we apply our broadcasting algorithm to solve the gossiping problem. Using the non-constructive version of our result for broadcasting, we get an algorithm working in time , that uses a (non-constructive) labeling scheme of optimal length .333Using only constructive labeling schemes, the polylogarithmic summand in our complexity of gossiping changes from to . Our time is the same as the best known gossiping time for radio networks of known topology (without any extra assumptions on parameters), that follows from [16].
Related work
Broadcasting and gossiping in radio networks were extensively investigated in algorithmic literature. For deterministic algorithms, two important scenarios were studied. The first concerns centralized algorithms, in which each node knows the topology of the network and its location in it. Here, an optimal-time broadcasting algorithm was given in [16, 22] and the best known gossiping time (without any extra assumptions on parameters) follows from [16]. For large values of , this was later improved in [7]. The second scenario concerns distributed algorithms, where nodes have distinct labels, and every node knows its own label and an upper bound on the size of the network but does not know its topology. Here the best known broadcasting time that depends only on is [23], later improved in [8] for some values of parameters and . For gossiping, the best known time in arbitrary directed (strongly connected) graphs was given in [15, 17] and the best known time for undirected graphs follows from [25]. Randomized distributed broadcasting was studied in [21, 9], where optimal time algorithms were obtained independently. For gossiping, optimal randomized time was given in [18].
The advice paradigm has been applied to many different distributed network tasks: finding a minimum spanning tree [12], finding the topology of the network [13], and leader election [19]. In [11] and [10], the task was broadcasting in radio networks, as in the present paper. In the above papers, advice was given to nodes of the network. Other authors considered the framework of advice for tasks executed by mobile agents navigating in networks, such as exploration [20] or rendezvous [24]. In this case, advice is given to mobile agents.
Organization of the paper
We present a high-level description of our results in Section 2. Section 3 introduces the notion of a -height respecting tree (2-HRT) and the proof that one can build a BFS tree of each graph which is a 2-HRT, the result essential for our broadcasting algorithms. In Section 4, we focus on broadcasting. Section 5 is devoted to gossiping.
2 High-level Description of our Results
2.1 High-level description of broadcasting
Our algorithms for broadcasting combine three mechanisms. The first two of them are taken from the literature, and the third, which is our main technical contribution, permits us to improve the time complexity of broadcasting.
1. The domination mechanism from [11]
Computation is split into blocks of some constant number of rounds. At the beginning of block , a fixed set of nodes is active which is a minimal set of informed nodes with respect to inclusion that covers all frontier nodes. All elements of simultaneously transmit in the first round of the block called the Broadcast step. Minimality of guarantees that each informs at least one uninformed node. For each , the labeling algorithm chooses exactly one such node informed by in block as the feedback node of in that block.
Importantly, all feedback nodes can transmit simultaneously messages received by the nodes which serve as their witnesses. These feedback nodes transmit in the second round of the block, called the Feedback step. Their messages contain some information stored in their labels which instruct the corresponding nodes from whether they should stay in and instruct them about their behaviour in the remaining steps of the current block .
Nodes informed until block which are outside of remain inactive to the end of an execution of the algorithm. The intuition regarding this property is the fact that a node outside of does not have its feedback node to instruct about its actions. On the other hand, cannot store this information in its own label for many blocks of computation, because it would require non-constant size of labels.
As each block extends the set of informed nodes, the domination mechanism guarantees broadcasting in time.
2. The propagation mechanism from [10]
In order to accelerate propagation of the broadcast message in the case when the diameter of the input graph is , ideas from a randomized seminal distributed algorithm of Bar-Yehuda et al. [3] are applied. Namely, for appropriate random choices of informed nodes whether to transmit in a particular round, one can assure that the broadcast message is passed to the next level of a BFS tree rooted at the source node in rounds in expectation. This in turn gives randomized broadcasting in rounds with high probability.
These random choices of nodes are mimicked in the labels of nodes. More precisely, the labels store some 0/1 random choices whether to transmit in a given block, assuring a given time bound. In particular, the feedback node of a node stores, in the bit Go of its label, information whether should transmit. Then, the nodes from which received Go=1 transmit the broadcast message in the separate Go step of the block . The labeling scheme obtained in this way is non-constructive. Using ideas from [4] regarding centralized broadcasting in arbitrary bipartite graphs, one can obtain a constructive labeling scheme. However, the time of the broadcasting algorithm such a scheme would support becomes instead of time supported by the non-constructive scheme.
3. The fast tracks mechanism
This mechanism is the main novelty of our solution and permits us to improve the broadcasting time from [10]. The goal here is to implement ideas of a fast centralized algorithm into constant-size advice such that a distributed algorithm can somehow simulate the centralized one. The key ingredient of our approach is illustrated by the notion of a 2-height respecting trees (2-HRT) and the fact that there exists a BFS tree which is also 2-HRT, for each graph. The 2-height of a node in a tree intuitively denotes the maximum number of “critical branches” (causing large congestion) on a path from to a leaf. The maximum 2-height is always at most . Each time the 2-height of a node and of some child of are the same, transmission of a message from to can be made in parallel with other similar transmissions from the level of dedicated to the particular value of -height. Therefore, such an edge connecting and with equal -heights is called a fast edge. As all but edges on each path from the root to a leaf are fast, the centralized algorithm from [16] accomplishes broadcast in almost optimal time . With this aim, the authors of [16] make use of the notion of gathering trees which somehow minimize collisions between fast edges. Our notion of a 2-HRT imposes stronger requirements than gathering trees, making fast transmissions even more parallelizable. Then, the key challenge is an implementation of the idea of a centralized algorithm by constant-size labels instructing nodes of a distributed algorithm how to simulate the centralized algorithm. The main obstacle here comes from the domination mechanism which switches off some nodes irreversibly, preventing them from transmitting any message starting from the block in which they are outside of the minimal dominating set . We show that, for each such node, one can determine its “rescue node” still present in the dominating set, such that its transmission on behalf of a switched off node does not cause additional collisions.
Our final solution using this mechanism gives a non-constructive labeling scheme of constant length, supporting broadcasting in time , which is optimal, even for centralized algorithms. Using the technique from [4] we can build labels constructively at the cost of increasing the time complexity of broadcasting to .
2.2 High-level description of gossiping
We introduce the auxiliary task of gathering: each node of the graph has a message, and all messages have to reach a node called the sink. We provide a gathering algorithm working in time and using a labeling scheme of optimal length .
With this aim, we make use of properties of a 2-HRT to implement the centralized algorithm for gathering from [16] in a distributed way, using short labels. Let be a BFS tree of the input graph which is also a 2-HRT. The centralized algorithm from [16] determines the unique round in which each node transmits all messages from its subtree of 444The authors of [16] use the notion of gathering trees in their paper, but 2-HRT satisfy all properties of gathering trees as well. to the parent of without a collision. These collision-free transmissions are assured by the properties of gathering trees from [16] which are also satisfied by 2-HRT. The value of depends on parameters , , , and on some auxiliary label . Thus, while and can be encoded in the label of using bits, we cannot store , and in the label of length . With this aim we use a modified Size Learning Algorithm from [14] followed by an acknowledged broadcasting algorithm to share information about the value of among all nodes and assure that nodes learn their levels during an execution of the broadcasting algorithm. Finally, each leaf is marked as such by an appropriate bit of its label. The fact that a node is a leaf implies also that . Other nodes learn their values of by modifying the maximal values of of their children.
Our solution of the gossiping problem works as follows. First, we gather all messages in an arbitrary node , executing our gathering algorithm. Then, all messages collected at are distributed using our broadcasting algorithm. An obstacle which arises in implementing this idea is caused by the fact that all nodes have to be coordinated so that they know when the consecutive subroutines of the final algorithm start. We overcome this difficulty by using an acknowledged broadcasting.
3 -height Respecting Trees
For a rooted tree with the root node , we denote the parent of a node as . The level of a node in the tree is equal to its distance to the root . The level of is denoted as . Thus, in particular, . For a fixed graph and a node , the set of nodes at distance from will be called the level and denoted as . Thus, in particular, , is the set of neighbors of and .
Now, we define the notion of a 2–height respecting tree (2-HRT), resembling gathering trees introduced in [16]. However, it is important to note that 2–height respecting trees must satisfy stronger properties than gathering trees. That is, each 2-HRT is a gathering tree while a gathering tree might not be a 2-HRT.
Definition 1 (2-height, fast edge, slow edge).
The 2-height of a node of a rooted tree , denoted as , is defined as follows:
-
If is a leaf then .
-
If is not a leaf, it has the children for and there is exactly one node such that then .
-
If is not a leaf, it has the children for and there are two or more nodes such that then .
If in a rooted tree then the edge in is called a fast edge. Otherwise, the edge is a slow edge.
Definition 2 (2-height respecting tree).
A rooted tree is a -height respecting tree (2-HRT for short) of a graph if it is a BFS Tree of satisfying the following property:
- ()
-
For each two nodes such that and there is no common neighbor of and in such that .
The key difference between gathering trees from [16] and -height respecting trees is that the nodes and on the same level such that cannot have the same parent, i.e., in the case of gathering trees, while they cannot even have a common neighbor on the level in the case of 2-HRT. The following key lemma shows that, for each graph and each of its nodes , a 2-HRT of rooted in can be constructed in polynomial time.
Lemma 3.
For every graph and each one can construct a BFS spanning tree of rooted at such that is a 2-HRT. Moreover, the tree can be constructed in time .
The high-level idea of the proof is that an arbitrary BFS tree of a graph can be gradually transformed into a 2-HRT such that it still is a BFS spanning tree of the input graph. The transformation goes level by level, starting from the largest ones. In order to show that the gradual changes eventually lead to the construction of a 2-HRT in polynomial time, we introduce a kind of potential function which measures to which extent edges at a particular level might potentially break requirements of a 2-HRT and we show that each change of the tree decreases the value of this function.
4 Broadcasting Algorithms
This section is devoted to the broadcasting problem. We start with the description of a modified variant of the Executor Algorithmfrom [10], called Levelled Executor Algorithm. It extends the original algorithm so that only nodes from specific levels can transmit and listen in particular rounds. Subsequently, this algorithm will be improved to get our final result. Table 2 (p. 2) compares algorithms from [11, 10] to our algorithms presented in this section.
4.1 Levelled Executor Algorithm
A broadcasting algorithm is a levelled algorithm, if each node on level accepts the broadcast message (i.e., considers it as received) only if it is received from a node on level . Observe that, in order to incorporate such requirement, it is necessary to provide to nodes information which permits them to deduce the level of a node from which they receive the broadcast message.
We present the Levelled Executor Algorithmbelow and state its properties. First, we modify the Executor Algorithmso that it becomes a levelled algorithm, while preserving time complexity and various other properties of the Executor Algorithm.
The Executor Algorithmcombines the dominating set mechanism introduced in [11] with the propagation mechanism from [10]. An execution of the algorithm is divided into blocks, each consisting of 3 steps: Broadcast, Feedback and Go. Let be the number of the current block and let and be respectively the sets of informed nodes and uniformed nodes at the beginning of the block . In the block we keep some minimal set of informed nodes which dominates frontier nodes, i.e., uninformed neighbors of informed nodes. Formally, is a minimal subset of with respect to inclusion, such that, for each node , if there exists a neighbor of , then there is some neighbor of in the dominating set .
The labels of nodes for the Executor Algorithmare assigned gradually during a simulation of the algorithm on a given input graph. They consist of three bits called Join, Stay and Go. As it might be seen as a simulation of a randomized distributed algorithm based on ideas from [3], we assign the values of some bits of the labels randomly. However, as the simulated distributed algorithm accomplishes broadcast in the claimed number of rounds with high probability, one can assign those bits by simulating all possible random choices of the randomized algorithm and fixing the choices assuring the given round complexity. At the beginning we set , where is the source node. In the Broadcast step of the block , all nodes in transmit their messages. We preserve the invariant that each node is always aware if it belongs to in the current block . As is minimal, there will be at least one node newly informed only by for each node from . One of the nodes informed by in block is chosen to be the Feedback Node of in that block.
All newly informed Feedback Nodes send their values of Stay and Go bits in the Feedback step of the block, provided that at least one of them (Stay or Go) is equal to . If the Feedback Node of sends the value then will also broadcast in the “bonus” Go step of the block. The value of Go bit is chosen at random by the oracle for all Feedback Nodes. Finally, will stay in the dominating set if and only if the bit of its feedback node is equal to 1.555As no node has the centralized view of the progress of the algorithm allowing it to determine whether in belongs to the set in the current block , we provide this information to nodes through labels. Each newly informed node joins the dominating set if its Join bit is equal to .
In order to transform the Executor Algorithminto a Levelled Executor Algorithm, we associate a new variable with each node which is equal the value of the distance from the source node to modulo . (That is, .) The value of can be stored as two bits of the label of . Assume that the current block is such that . Then, only nodes from the current dominating set with equal to transmit in Broadcast and Go Steps of the block , and listen in the Feedback step. Moreover, only nodes with value equal to listen in the Broadcast, Go steps and transmit in the Feedback step. In order to adjust this change to the standard Executor Algorithmpreserving the general meaning of the sets , and , we must also redefine the sets , and so that, for , one is looking only at edges where informed nodes are at such levels that and, for an informed node at level , only its uninformed neighbors at level are considered.
The final label for each node is the tuple consisting of four elements: Join, Lev, Stay and Go. Join is the bit indicating whether should join the dominating set when it receives the broadcast message for the first time from a node at the level preceding the level of and remain in the dominating set for the next blocks (recall that nodes are active as informed ones only in one of each three blocks in the Levelled Executor Algorithm). Lev is the distance from the root to modulo . Assume that is informed in the block such that . If is chosen as the feedback node of some node which informed then
-
Stay is the bit indicating whether should stay in the dominating set .
-
Go is the bit indicating whether should broadcast in the Go step of the block .
If is not a feedback node of any other node then the bits Stay and Go are set to . Finally, sends the bits Stay and Go in the Feedback step of block if Stay=1 or Go=1.
At the beginning we assign the label to the source node . The labels of all other nodes are initiated to zeroes and they will be assigned gradually during a simulation of the final distributed algorithm using those labels, as described above.
By a slight modification of the proof of Th. 12 from [10], one can show the following non-constructive result.
Theorem 4 ([10]).
There exists a labeling scheme of constant length for which the Levelled Executor Algorithmfinishes broadcast in rounds.
The essential properties of the algorithm that make a generalization of the proof from [10] possible are that the levelled variant of the algorithm guarantees that the set of informed nodes is extended in each Broadcast step and the probability of setting Go such that frontier nodes receive the broadcast message in the Go step satisfy conditions from the original analysis. The details will be given in the full version of the paper.
4.2 Fast Broadcast Algorithm: Linear Dependency on
In this section, we extend the labeling scheme and modify the Levelled Executor Algorithmin order to improve its complexity to . The linear dependency on is clearly optimal, and the second summand will be improved later. The resulting algorithm is called Fast Broadcast Algorithm.
We build labels gradually starting from zero labels, by simulating the broadcasting algorithm step by step. The final algorithm works in the framework of the Levelled Executor Algorithm. We introduce special shortcut edges, as described by Gasieniec et al. [16]. All but edges are such shortcuts on each path from the source of a BFS tree which is a 2-HRT. These shortcut edges correspond to fast edges of a 2-height respecting BFS spanning tree of the communication graph.
Lemma 5 ([6]).
For every tree of size the maximum value of 2-height is .
As , the maximum value of -height is not larger than the height of a tree. Moreover, as the height of a BFS tree of is , we have the following corollary.
Corollary 6.
For a BFS spanning tree of a graph , the max. -height is .
Our algorithm works in blocks which consist of a fixed constant number of steps. It uses the labels for the Levelled Executor Algorithmand performs its standard steps along with some additional steps, as well as some additional bits of the labels are added in order to accelerate the broadcasting process, partially using some ideas of the centralized broadcasting from [16]. To this aim, we start by building a BFS tree of the input graph with the source vertex as the root of , which is a 2-HRT, see Lemma 3. (Let us stress here that a 2-height respecting tree must satisfy stricter requirements than the so-called gathering spanning trees from [16], and this difference is essential for our labeling scheme and for the distributed algorithm.) Then, we follow the framework of the Levelled Executor Algorithmextended in such a way that:
-
Each block is extended by rounds Fast and Rescue which accelerate the broadcasting through non-colliding shortcut/fast edges, so that the -height of a node and its child are equal.
-
In order to instruct nodes about their actions in these new steps in blocks, we also add two extra bits to their labels, called the Fast bit and the Rescue bit. As it turns out, facilitating these transmissions without collisions faces significant challenges which we overcome by taking advantage of the fact that is a -height respecting tree.
First, for each node we define the ultimate block number of as follows
| (1) |
We will now build the rest of the algorithm to ensure that is an upper bound on the number of the block when is informed, i.e., when it receives the broadcast message for the first time, and this received message is transmitted from a node on the level .
To achieve the above goal, we set the bits Fast and Rescue so that their values instruct nodes about their actions in the Fast and Rescue steps respectively. Initially all bits Fast and Rescue are set to which means that (initially) no nodes are supposed to transmit in the new steps Fast and Rescue of any block. Additionally, for each , such that is the feedback node of in some block, apart from its Stay and Go bits, will also transmit its values of Fast and Rescue bits to in the appropriate Feedback step.
A node such that (i.e., informed in a block ) transmits in Fast (respectively Rescue) step of the current block if the value of received Fast (respectively Rescue) bit transmitted to (in the Feedback step) by its current feedback node is equal to .
Below, we describe assignments of the bits Fast and Rescue in more detail.
If or has not received the broadcast message until the round (see the definition of ), no change of the values of the bits Fast or Rescue are caused by . Similarly, if the node receives the broadcast message before the block then it does not cause change of bits Fast, Rescue of any node.
So let be a node such that , i.e., it is connected to its parent by a fast edge. Additionally assume that: the node has not received the broadcast message from until the beginning of the block but received the broadcast message in the block or earlier.
Consider the following cases regarding the status of node at the beginning of block :
- Case 1.
-
The node was informed before the block and it is in the dominating set of the block of the algorithm.
Then has some feedback node first informed in the block . We set bit of to .
- Case 2.
-
The node was informed before the block but it is not in the dominating set of the block of the algorithm.
As is still not informed before the block , there must be a neighbor of in the dominating set with (see Sec. 4.1). Then, as is in , it has some feedback node first informed, by , in the block . We set the Rescue bit of to .
We express properties of the algorithm following from the assignment of the bits Fast and Rescue and the actions of nodes caused by these settings in the following observation.
Observation 7.
-
1.
A node transmits in the Fast step of a block if and only if for a child of such that and is not informed before the block .
-
2.
Let be the set of nodes which transmit in the Rescue step of a block and let be the set of such nodes which are uninformed before the block , and their parents are not in the dominating set . Then, there exists a 1-to-1 assignment such that, for and ,
-
(a)
,
-
(b)
,
-
(c)
is connected with its parent by a fast edge, i.e., .
-
(a)
As the above described Fast Broadcast Algorithm is an extension of the Levelled Executor Algorithmby adding extra transmissions in each block, the correctness of the new algorithm follows directly from the correctness of the Levelled Executor Algorithmassured by the domination mechanism. To obtain a bound on the time of the new algorithm, we prove the following lemma.
Lemma 8.
A node becomes informed by the end of block , for each .
Proof.
We prove the lemma by induction on . The base regards only which is informed in round . For the inductive step, consider an arbitrary value and any node such that . Assume that the lemma holds for all nodes such that . As , the node is not the source node . So the parent is defined in this case. As and , we know that . Therefore, by the inductive hypothesis, was informed until the block . Consider the following cases:
Case I: .
As 2-heights of and are different and the values of and differ by more than (see (1)) which means that is active in at least blocks of the levelled algorithm between the blocks and . Then, by Corollary 17, as gets informed until the block , in view of the inductive hypothesis, gets informed by the block .
Case II: .
If the node is informed before the block , we are done. If not, we will inspect carefully Cases 1–2 presented above in the description of the algorithm.
For Case 1, observe that the node sends the broadcast message in the Fast step of the block – see Observation 7.1. Thus, it is sufficient to show that receives this message transmitted by in the Fast step of the block . To get a contradiction, assume that there is another node transmitting in the Fast step of the block , such that is a neighbor of and therefore its transmission causes collision at in the Fast step of the block – see Figure 1. By Observation 7.1, there exists connected to such that:
-
is a child of connected to by a fast edge, and thus ;
-
(since transmits in the block which is the same as the transmission block of equal to ) and, as , the equality also holds.
The above relationships imply not only that but also , since they are connected by fast edges with their children , such that .
Thus both and have the same 2-height as their respective parents. This final setting (see Fig. 1 again) implies that existence of the edges and contradicts the requirement of the definition of a 2-HRT (see Definition 1).
We reason similarly for Case 2. Here , a neighbor of such that (but in this case), sends the message in Rescue step of the block by Obs. 7.2. To get a contradiction, assume that there is another node transmitting in the Rescue step of the block such that is also a neighbor of – see Fig. 1. This fact implies in turn that . Moreover, by Obs. 7.2 as is transmitting in Rescue step in the block , must be a neighbor of some node with , and thus . Additionally, . But these properties imply that simultaneous existence of edges and violates the requirements of the definition of a 2-HRT.
To summarize, we have proved that, if gets informed by the end of block , then gets informed by the end of block . This concludes the inductive step of the proof.
For each node , the value is bounded by . Since blocks are of constant length, Lemma 8 and Corollary 6 imply the following theorem.
Theorem 9.
The Fast Broadcast Algorithm accomplishes broadcast in
rounds, and uses a constructive labeling scheme.
4.3 Express Broadcast Algorithm– Optimization of the polylog Additive Summand
In this section, we describe a modification of the Fast Broadcast Algorithm which we call the Express Broadcast Algorithm. It runs in time only , which is the optimal broadcasting time even for radio networks of known topology. A constant length labeling scheme for this optimal broadcasting can be assigned by an appropriate efficient randomized algorithm such that we obtain labels guaranteeing broadcast with high probability. Thus, using the probabilistic method, we get a nonconstructive constant length labeling scheme supporting broadcasting in optimal time.
The Express Broadcast Algorithm is almost the same as the Fast Broadcast Algorithm, with the changed value of the ultimate block number and a random assignment of the values of bits Go. The random assignment of the bits Go is made similarly as in Theorem 4. (One can find details in Theorem 12 in [10]. We do not provide these details here since, for the purpose of our result, the existence of an appropriate setting of the bits Go is sufficient.) Note however that the change of the definition of the ultimate block number has an impact on the labeling of nodes. Thus, for a given communication graph, the labels for the Fast Broadcast Algorithm and the labels for the Express Broadcast Algorithm are usually different.
The ultimate block number of a node is now defined as follows. , for the source node , and for each , is the minimum satisfying the following condition: and becomes informed before block , where .
Observation 10.
If and then .
The labeling scheme for the Express Broadcast Algorithm and the algorithm itself are defined as for the Fast Broadcast Algorithm, with two differences in the labeling scheme:
-
the assignment of the Fast, and Rescue bits of each node is determined by the values of instead of . More precisely, assume that has not received the broadcast message until the block and is connected with its parent by a fast edge, i.e., .
Consider the following cases regarding the status of the node at the beginning of block :
- Case 1.
-
The node is in the dominating set .
Then has some feedback node informed in the block . We set bit of to .
- Case 2.
-
The node is not in the dominating set .
As is still not informed before the block , there must be a neighbor of in the dominating set with . Then, as is in , it has some feedback node first informed in the block . We will set Rescue bit of to .
-
bits are assigned as follows:
Define a feedback node of a block to be each node such that is a feedback node of some node in the block . For each block , choose the value randomly with uniform distribution. Then set the value of the bit Go to with probability for each feedback node of the block independently.
The behavior of nodes based on their labels is the same as in the Levelled Fast Broadcast Algorithm.
Lemma 11.
If then and receives the broadcast message by the end of block .
Theorem 12.
The Express Broadcast Algorithm runs in time whp.
Proof.
Let be an arbitrary node. We will show that becomes informed in , rounds with probability at least . This estimation combined with the union bound implies the result stated in the theorem.
We introduce the auxiliary notion of a fast track. It is a path in such that
-
for each ,
-
for each ,
-
or is a fast edge.
That is, all edges of a fast track are fast edges. Observe that, according to Lemma 11, if is a fast track and receives the broadcast message in some block then and receives the broadcast message by the end of block . As the maximum of over all is smaller than and the value of cannot increase on a simple path from the root to any node of , a path from to can be split into at most fast tracks and at most slow edges. As we have shown, the number of rounds needed for broadcasting a message along the fast tracks is linear with respect to the total length of these tracks which is . Thus, it remains to analyze the number of rounds needed to pass the broadcast message through slow edges.
Recall that a feedback node of a block is each node such that is a feedback node of some node in the block . The random choice of the bits assigned in labels of feedback nodes, described above, implies that, for each frontier node , receives the broadcast message in the Go step of the block with probability larger than , as proved in Lemma 9 in [10].
Let be a path in from the root to some node . Let be the sequence of blocks with the property that is the th block of an execution of our algorithm such that, at the beginning of the block , the largest index such that is informed is such that is a slow edge. For a fixed , let the index satisfying the properties from the previous sentence be denoted by . Let be a sequence of independent random variables such that iff the node receives the broadcast message in the Go step of the block . Then by Lemma 9 from [10]. Moreover, if then the broadcast message is already delivered through all slow edges of the path until block .
Let , let be a constant and let . Then . If then the broadcast message is delivered through all slow edges of the path in at most rounds. Using standard Chernoff inequalities, we get , for .
Let be a node in the path beginning a fast track, i.e., such that is a slow edge and is a fast edge. Then, after reception of the broadcast message in (an arbitrary) block , its ultimate round might be by at most larger than . Thus, the number of rounds lost because of slowdowns on the borders between slow edges and fast tracks is at most for each node , with prob. .
The number of rounds required for delivery of the broadcast message to an arbitrary node is the sum of the number of rounds needed to pass the message through the fast tracks, the number of rounds needed to pass the message through slow edges and the number of rounds of slowdowns on the borders between slow edges and fast tracks. As we proved above, this sum is with probability at least , for each node . Thus, by the union bound, the probability that any node does not receive the broadcast message within rounds is at most . This concludes the proof.
As the only random ingredient is in the labeling scheme assignment, Theorem 12 implies the following corollary.
Corollary 13.
There exists a constant length labeling scheme supporting broadcast in time .
In view of the lower bound from [1], our broadcasting time is optimal, even when compared to broadcasting time in radio networks of known topology.
4.4 Acknowledged broadcasting
In this section we consider acknowledged broadcasting. when we require that each node knows the round number such that all nodes receive the broadcast message until round .
A relatively simple modification of broadcasting algorithms presented in this paper transforms them into acknowledged broadcasting algorithms.
Corollary 14.
-
1.
Acknowledged broadcasting in time is supported by some constructive labeling scheme of constant length.
-
2.
There exists a labeling scheme of constant length supporting acknowledged broadcasting in time .
5 Gossiping
First, we focus on the auxiliary task of gathering. Here, the goal is to gather messages of all nodes in a designated node, called the sink. We provide a family of graphs proving the bound on the length of a labeling scheme sufficient to accomplish this task. As gossiping is at least as hard as gathering, this is also a lower bound for gossiping.
Then, we present centralized and distributed algorithms for gathering using short labels. Our centralized algorithm might be seen as a kind of regularized variant of the gathering algorithm from [16], using 2-HRT instead of so-called gathering trees, in order to make it amenable to a distributed implementation with labels of optimal size . Let be a BFS tree of the input graph which is also a 2-HRT. The centralized algorithm determines the unique round in which each node successfully transmits all messages from its subtree of to the parent of .
Intuitions behind the centralized algorithm are as follows. We conceptually split the time line into intervals of length such that, on each level of , one block of an interval is devoted to accomplish fast connections (from nodes to their parents) and the remaining ones are for slow connections. An auxiliary labeling needed for slow connections will assure that for and such that and have a common neighbor on the level . Let be a subpath of a path going from a leaf to the root of , such that all edges connecting nodes of are fast. Let be the sequence of nodes of starting from the node on the largest level. As all the edges on are fast, we have , and therefore those nodes do not “collide” with other children of their parents with the same value of . We facilitate pipelining of transmissions through such a path by setting for . Thus, transmission through such a fast path takes plus at most blocks to start such a pipelined sequence of transmissions. Moreover, each path from a leaf to the sink of can be split into at most fast paths separated by at most slow edges, due to Lemma 5.
The value of depends on , , , and on the auxiliary label . While and can be encoded in the label of using bits, we cannot store , and in the label. In order to manage this issue, a modified Size Learning Algorithm from [14] is executed which assures that a designated node learns . Then an acknowledged broadcasting algorithm broadcasting is executed. Nodes also learn their levels during an execution of the broadcasting algorithm. Finally, each leaf is marked as such by an appropriate bit of its label. The fact that a node is a leaf implies also that . Other nodes determine their values of by learning the values of of their children (from the obtained messages) which is sufficient to determine .
In order to accomplish the gossiping task we gather all messages in an arbitrary node , executing our gathering algorithm. Then, all messages are distributed using our broadcasting algorithm. An obstacle in implementing this idea is caused by the fact that all nodes have to be coordinated so that they know when the consecutive subroutines of the final algorithm start. We overcome this difficulty by using acknowledged broadcasting.
6 Conclusion and Open Problems
We presented distributed algorithms for broadcasting and gossiping, which use labeling schemes of optimal length. In the case of broadcasting, the time is also optimal, even when compared to centralized algorithms. For gossiping, our algorithm uses a labeling scheme of optimal length , and runs in the best known centralized gossiping time.
Our results yield two interesting problems concerning the above communication tasks. The first problem concerns broadcasting. Is it possible to provide a constructive labeling scheme of constant length that supports broadcasting in time ? The second problem concerns gossiping. What is the time of the fastest gossiping algorithm using a labeling scheme of optimal length ? Note that, if our gossiping time could be improved, this would imply improving the best known gossiping time for centralized algorithms.
Another interesting open problem regards universal labeling for broadcasting, i.e., such that the oracle does not know the source node so the labels have to be adjusted for an arbitrary source node.
References
- [1] Noga Alon, Amotz Bar-Noy, Nathan Linial, and David Peleg. A lower bound for radio broadcast. J. Comput. Syst. Sci., 43(2):290–298, 1991. doi:10.1016/0022-0000(91)90015-W.
- [2] Stephen Alstrup, Haim Kaplan, Mikkel Thorup, and Uri Zwick. Adjacency labeling schemes and induced-universal graphs. SIAM J. Discret. Math., 33(1):116–137, 2019. doi:10.1137/16M1105967.
- [3] Reuven Bar-Yehuda, Oded Goldreich, and Alon Itai. On the time-complexity of broadcast in multi-hop radio networks: An exponential gap between determinism and randomization. J. Comput. Syst. Sci., 45(1):104–126, 1992. doi:10.1016/0022-0000(92)90042-H.
- [4] I. Chlamtac and S. Kutten. On broadcasting in radio networks–problem analysis and protocol design. Communications, IEEE Transactions on, 33(12):1240–1246, December 1985. doi:10.1109/TCOM.1985.1096245.
- [5] Imrich Chlamtac. The wave expansion approach to broadcasting in multihop radio networks. IEEE Trans. Commun., 39(3):426–433, 1991. doi:10.1109/26.79285.
- [6] Marek Chrobak, Kevin P. Costello, Leszek Gasieniec, and Dariusz R. Kowalski. Information gathering in ad-hoc radio networks with tree topology. Inf. Comput., 258:1–27, 2018. doi:10.1016/j.ic.2017.11.003.
- [7] Ferdinando Cicalese, Fredrik Manne, and Qin Xin. Faster deterministic communication in radio networks. Algorithmica, 54(2):226–242, 2009. doi:10.1007/S00453-007-9136-0.
- [8] Artur Czumaj and Peter Davies. Deterministic communication in radio networks. SIAM J. Comput., 47(1):218–240, 2018. doi:10.1137/17M1111322.
- [9] Artur Czumaj and Wojciech Rytter. Broadcasting algorithms in radio networks with unknown topology. J. Algorithms, 60(2):115–143, 2006. doi:10.1016/J.JALGOR.2004.08.001.
- [10] Faith Ellen and Seth Gilbert. Constant-length labelling schemes for faster deterministic radio broadcast. In Christian Scheideler and Michael Spear, editors, SPAA ’20: 32nd ACM Symposium on Parallelism in Algorithms and Architectures, Virtual Event, USA, July 15-17, 2020, pages 213–222. ACM, 2020. doi:10.1145/3350755.3400238.
- [11] Faith Ellen, Barun Gorain, Avery Miller, and Andrzej Pelc. Constant-length labeling schemes for deterministic radio broadcast. In Christian Scheideler and Petra Berenbrink, editors, The 31st ACM on Symposium on Parallelism in Algorithms and Architectures, SPAA 2019, Phoenix, AZ, USA, June 22-24, 2019, pages 171–178. ACM, 2019. doi:10.1145/3323165.3323194.
- [12] Pierre Fraigniaud, Amos Korman, and Emmanuelle Lebhar. Local MST computation with short advice. Theory Comput. Syst., 47(4):920–933, 2010. doi:10.1007/s00224-010-9280-9.
- [13] Emanuele G. Fusco, Andrzej Pelc, and Rossella Petreschi. Topology recognition with advice. Inf. Comput., 247:254–265, 2016. doi:10.1016/j.ic.2016.01.005.
- [14] Adam Ganczorz, Tomasz Jurdzinski, Mateusz Lewko, and Andrzej Pelc. Deterministic size discovery and topology recognition in radio networks with short labels. In Seth Gilbert, editor, 35th International Symposium on Distributed Computing, DISC 2021, October 4-8, 2021, Freiburg, Germany (Virtual Conference), volume 209 of LIPIcs, pages 22:1–22:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.DISC.2021.22.
- [15] Leszek Gasieniec and Andrzej Lingas. On adaptive deterministic gossiping in ad hoc radio networks. Inf. Process. Lett., 83(2):89–93, 2002. doi:10.1016/S0020-0190(01)00312-X.
- [16] Leszek Gasieniec, David Peleg, and Qin Xin. Faster communication in known topology radio networks. Distributed Comput., 19(4):289–300, 2007. doi:10.1007/s00446-006-0011-z.
- [17] Leszek Gasieniec, Tomasz Radzik, and Qin Xin. Faster deterministic gossiping in directed ad hoc radio networks. In Torben Hagerup and Jyrki Katajainen, editors, Algorithm Theory - SWAT 2004, 9th Scandinavian Workshop on Algorithm Theory, Humlebaek, Denmark, July 8-10, 2004, Proceedings, volume 3111 of Lecture Notes in Computer Science, pages 397–407. Springer, 2004. doi:10.1007/978-3-540-27810-8_34.
- [18] Mohsen Ghaffari and Bernhard Haeupler. Fast structuring of radio networks large for multi-message communications. In Yehuda Afek, editor, Distributed Computing - 27th International Symposium, DISC 2013, Jerusalem, Israel, October 14-18, 2013. Proceedings, volume 8205 of Lecture Notes in Computer Science, pages 492–506. Springer, 2013. doi:10.1007/978-3-642-41527-2_34.
- [19] Christian Glacet, Avery Miller, and Andrzej Pelc. Time vs. information tradeoffs for leader election in anonymous trees. ACM Trans. Algorithms, 13(3):31:1–31:41, 2017. doi:10.1145/3039870.
- [20] Barun Gorain and Andrzej Pelc. Deterministic graph exploration with advice. ACM Trans. Algorithms, 15(1):8:1–8:17, 2019. doi:10.1145/3280823.
- [21] Dariusz R. Kowalski and Andrzej Pelc. Broadcasting in undirected ad hoc radio networks. Distributed Computing, 18(1):43–57, 2005. doi:10.1007/s00446-005-0126-7.
- [22] Dariusz R. Kowalski and Andrzej Pelc. Optimal deterministic broadcasting in known topology radio networks. Distributed Computing, 19(3):185–195, 2007. doi:10.1007/s00446-006-0007-8.
- [23] Gianluca De Marco. Distributed broadcast in unknown radio networks. SIAM J. Comput., 39(6):2162–2175, 2010. doi:10.1137/080733826.
- [24] Avery Miller and Andrzej Pelc. Fast rendezvous with advice. Theor. Comput. Sci., 608:190–198, 2015. doi:10.1016/J.TCS.2015.09.025.
- [25] Shailesh Vaya. Round complexity of leader election and gossiping in bidirectional radio networks. Inf. Process. Lett., 113(9):307–312, 2013. doi:10.1016/J.IPL.2013.02.001.
Appendix
Appendix A Table presenting our results
Appendix B Table comparing previous broadcasting algorithms with our work
| Algorithm | Section/Theorem | Constructive | Time | Paper |
| – | Yes | [11] | ||
| Executor Algorithm | – | No | [10] | |
| Executor Algorithm | – | Yes | [10] | |
| Levelled Executor Algorithm | S. 4.1/Th. 4 | No | here | |
| Fast Broadcast Algorithm | S. 4.2/Th. 9 | Yes | here | |
| Express Broadcast Algorithm | S. 4.3/Th. 12 | No | here |
Appendix C Constructive Variant of Levelled Executor Algorithm
As in [10] (Lemma 13), we will use the following lemma which is a slight modification of the result proved by Chlamtac and Weinstein [5].
Lemma 15 ([5, 10]).
Let be a bipartite graph with bipartition sets and , where the degree of each node is at least one. Then, there exists a polynomial time deterministic algorithm which finds the sets and such that and each node from has exactly one neighbor in .
The above result is obtained as follows. One can show that a random choice of guarantees that the expected size of is at least . Let be chosen randomly such that, for some fixed , is chosen to belong to with probability , independently of random choices for other elements of , for each . Then, using the technique of derandomization with maximization of expectation one can determine satisfying Lemma 15 in polynomial time. For more details, refer e.g., to [10].
We now describe a deterministic assignment of the bits Go, using Lemma 15. Divide an execution of the algorithm into consecutive stages consisting of of our blocks. If a node gets informed during the block then Go bits in its feedback nodes in the blocks will be set to until the block equal to the smallest number such that . (Note that it is sufficient that is known to the oracle assigning labels and the distributed broadcast algorithm working at nodes using these labels can work without knowledge of .) In other words, Go bits of are set to until the end of the stage in which is informed.
Now, we are ready to describe an efficient algorithm which assigns the bits Go to all nodes, together with other bits of labels described above. Let be an integer, let be the subset of the set of nodes located on some level and let all labels be already fixed for nodes informed before the block . That is, for a fixed , . Moreover, for , let be the set of nodes from still being in the dominating set of the block . That is, is the subset of containing the nodes which are in . Let be the set of uninformed neighbors of on the level . Then, let and be the sets provided by the the algorithm from Lemma 15 applied to the bipartite graph induced by the sets and . For each , the bit Go of the feedback node of in block is set to iff .
Lemma 16.
The set , for , is empty.
Proof.
Fix any block . By the construction of the algorithm, any node in the th block gets the Go bit from its feedback node. If then its bit Go is set to and therefore it broadcasts in the Go round. By Lemma 15, if all nodes from transmit simultaneously then all nodes from receive the broadcast message and therefore they are informed after the block . As , Lemma 15 implies that the size of can be bounded as follows:
After becoming informed in some block , a node waits for the block with the smallest number equal to the multiple of and then becomes a member of the “source part” of such a bipartite graph containing all its uninformed neighbors. Broadcasting in a bipartite graph can be done done in blocks by Lemma 16. This implies that, if node gets first informed in block then all its neighbors are informed by the end of block . Hence we get the following corollary.
Corollary 17.
The Levelled Executor Algorithmaccomplishes broadcast in rounds, and uses a constructive labeling scheme.
