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

August 06, 2023 ยท Entered Twilight ยท ๐Ÿ› arXiv.org

๐Ÿ’ค TWILIGHT: Eternal Rest
Repo abandoned since publication

Repo contents: .DS_Store, .gitattributes, .ipynb_checkpoints, APSP_230805.pdf, APSP_4.ipynb, Plot_Utils.py, README.md, __pycache__, data, figs

Authors Zeyu Jing, Markus Meister arXiv ID 2308.07403 Category cs.DS: Data Structures & Algorithms Cross-listed q-bio.NC Citations 1 Venue arXiv.org Repository https://github.com/markusmeister/APSP Last Checked 3 months ago
Abstract
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.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

๐Ÿ“œ Similar Papers

In the same crypt โ€” Data Structures & Algorithms