arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2104.12523cs.DS
收藏

快速计算双曲性的渐减距离法

Enumeration of Far-Apart Pairs by Decreasing Distance for Faster Hyperbolicity Computation

David Coudert, André Nusser, Laurent Viennot

摘要:

双曲性是一个图的参数,它表示图的最短路径距离度量偏离树度量的程度。它被用于各种领域,如网络,安全和生物信息学,用于复杂网络的分类,路由方案的设计和图形算法的分析。尽管最近取得了进展,计算图的双曲性仍然具有挑战性。实际上,最著名的算法具有时间复杂度$O(n^{3.69})$,这对于大型图是禁止的,并且实际上最有效的算法具有空间复杂度$O(n^2)$。因此,时间和空间是计算双曲性的瓶颈。在本文中,我们设计了一个工具,通过减少距离来枚举图的所有远距离对。一个图的节点对$(u, v)$是远离的,如果$v$是根在$u$的所有最短路径树的叶子,并且$u$是根在$v$的所有最短路径树的叶子。这个概念以前被用来大大减少计算时间的双曲在实践中。然而,它需要计算距离矩阵来按递减距离对所有节点对进行排序,这对于中等大小的图来说已经需要不可行的内存量。我们提出了一种新的数据结构,避免了这种内存瓶颈,在实践中,并首次使计算的双曲性的几个大型图表,远远超出了使用以前的算法。在某些情况下,我们将内存消耗减少了至少两个数量级。此外,我们表明,对于许多图,只有一个非常小的一部分的远距离对被认为是双曲性计算,解释这种急剧减少的内存。由于以降序迭代远离对而不显式存储它们是一个非常通用的工具,我们相信我们的方法也可能与其他问题有关。

英文摘要:

Hyperbolicity is a graph parameter which indicates how much the shortest-path distance metric of a graph deviates from a tree metric. It is used in various fields such as networking, security, and bioinformatics for the classification of complex networks, the design of routing schemes, and the analysis of graph algorithms. Despite recent progress, computing the hyperbolicity of a graph remains challenging. Indeed, the best known algorithm has time complexity $O(n^{3.69})$, which is prohibitive for large graphs, and the most efficient algorithms in practice have space complexity $O(n^2)$. Thus, time as well as space are bottlenecks for computing hyperbolicity. In this paper, we design a tool for enumerating all far-apart pairs of a graph by decreasing distances. A node pair $(u, v)$ of a graph is far-apart if both $v$ is a leaf of all shortest-path trees rooted at $u$ and $u$ is a leaf of all shortest-path trees rooted at $v$. This notion was previously used to drastically reduce the computation time for hyperbolicity in practice. However, it required the computation of the distance matrix to sort all pairs of nodes by decreasing distance, which requires an infeasible amount of memory already for medium-sized graphs. We present a new data structure that avoids this memory bottleneck in practice and for the first time enables computing the hyperbolicity of several large graphs that were far out-of-reach using previous algorithms. For some instances, we reduce the memory consumption by at least two orders of magnitude. Furthermore, we show that for many graphs, only a very small fraction of far-apart pairs have to be considered for the hyperbolicity computation, explaining this drastic reduction of memory. As iterating over far-apart pairs in decreasing order without storing them explicitly is a very general tool, we believe that our approach might also be relevant to other problems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑