arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.07403cs.DSq-bio.NC
收藏

一种适用于神经网络的 All-Pairs-Shortest-Paths 快速算法

A fast algorithm for All-Pairs-Shortest-Paths suitable for neural networks

Zeyu Jing, Markus Meister

AI总结:

提出一种通过矩阵求逆计算 All-Pairs-Shortest-Paths 距离的快速算法,推导了参数界限并验证其在稠密图上优于现有方法,且自然适用于神经网络求解。

摘要:

给定一个由节点和连接它们的边构成的有向图,一个常见问题是寻找任意两个节点之间的最短路径。这里我们展示最短路径距离可以通过简单的矩阵求逆来找到:如果边由邻接矩阵 $A_{ij}$ 给出,那么在 $γ$ 取适当小的值时,最短路径距离为 $$ D_{ij} = \operatorname{ceil} \left( \log_γ {\left[ {\left({\mathbf{I}}-γ{\mathbf{A}}\right)^{-1}} \right]}_{ij} \right)$$ 我们推导了关于 $γ$ 值的几个图论界限,并通过在不同图类型上的数值计算探索了其有效范围。即使距离函数在整个图上不是全局准确的,它仍然在局部起作用,以指导对最短路径的追踪。在这种模式下,它也扩展到具有正边权重的加权图。对于大范围的稠密图,该距离函数在计算上比现有的最佳替代方案更快。最后,我们展示了该方法自然地导向 All-Pairs-Shortest-Path 问题的神经网络解决方案。

英文摘要:

Given a directed graph of nodes and edges connecting them, a common problem is to find the shortest path between any two nodes. Here we show that the shortest path distances can be found by a simple matrix inversion: If the edges are given by the adjacency matrix $A_{ij}$ then with a suitably small value of $γ$ the shortest path distances are $$ D_{ij} = \operatorname{ceil} \left( \log_γ {\left[ {\left({\mathbf{I}}-γ{\mathbf{A}}\right)^{-1}} \right]}_{ij} \right)$$ We derive several graph-theoretic bounds on the value of $γ$, and explore its useful range with numerics on different graph types. Even when the distance function is not globally accurate across the entire graph, it still works locally to instruct pursuit of the shortest path. In this mode, it also extends to weighted graphs with positive edge weights. For a wide range of dense graphs this distance function is computationally faster than the best available alternative. Finally we show that this method leads naturally to a neural network solution of the all-pairs-shortest-path problem.

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

↑