Department of Computer Science, University of Sheffield, Sheffield, United Kingdom.
IRIDIA, Université Libre de Bruxelles, Brussels, Belgium.
PLoS One. 2021 Nov 22;16(11):e0259736. doi: 10.1371/journal.pone.0259736. eCollection 2021.
Node counting on a graph is subject to some fundamental theoretical limitations, yet a solution to such problems is necessary in many applications of graph theory to real-world systems, such as collective robotics and distributed sensor networks. Thus several stochastic and naïve deterministic algorithms for distributed graph size estimation or calculation have been provided. Here we present a deterministic and distributed algorithm that allows every node of a connected graph to determine the graph size in finite time, if an upper bound on the graph size is provided. The algorithm consists in the iterative aggregation of information in local hubs which then broadcast it throughout the whole graph. The proposed node-counting algorithm is on average more efficient in terms of node memory and communication cost than its previous deterministic counterpart for node counting, and appears comparable or more efficient in terms of average-case time complexity. As well as node counting, the algorithm is more broadly applicable to problems such as summation over graphs, quorum sensing, and spontaneous hierarchy creation.
图的节点计数受到一些基本理论限制,但在图论的许多实际应用中,如集体机器人和分布式传感器网络,都需要解决这些问题。因此,已经提出了几种用于分布式图大小估计或计算的随机和简单确定性算法。在这里,我们提出了一种确定性和分布式算法,如果提供了图大小的上限,则允许连接图的每个节点在有限时间内确定图的大小。该算法由在局部集线器中迭代聚合信息组成,然后将其广播到整个图中。与之前的确定性节点计数算法相比,所提出的节点计数算法在节点内存和通信成本方面效率更高,并且在平均情况时间复杂度方面具有可比性或更高的效率。除了节点计数,该算法更广泛地适用于图上的求和、群体感应和自发层次结构创建等问题。