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

08/06/2023
by   Markus Meister, et al.
0

Given a directed graph of nodes and edges connecting them, a common problem is to find the shortest path between any two nodes. Here I 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 = ceil( log[ (1-γ𝐀)^-1]_ij/logγ) I derive some bounds on γ useful for a practical application. 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 I show that this method leads naturally to a neural network solution of the all-pairs-shortest-path problem.

READ FULL TEXT
research
05/16/2023

Lower Bounds for Non-Adaptive Shortest Path Relaxation

We consider single-source shortest path algorithms that perform a sequen...
research
06/13/2023

Expanding the Scope of DAWN: A Novel Version for Weighted Shortest Path Problem

The shortest path problem is a typical problem in graph theory with wide...
research
12/08/2021

Shortest Paths in Graphs with Matrix-Valued Edges: Concepts, Algorithm and Application to 3D Multi-Shape Analysis

Finding shortest paths in a graph is relevant for numerous problems in c...
research
12/07/2012

Developments in the theory of randomized shortest paths with a comparison of graph node distances

There have lately been several suggestions for parametrized distances on...
research
06/08/2017

The FastMap Algorithm for Shortest Path Computations

We present a new preprocessing algorithm for embedding the nodes of a gi...
research
07/10/2022

Closing the Gap Between Directed Hopsets and Shortcut Sets

For an n-vertex directed graph G = (V,E), a β-shortcut set H is a set of...
research
02/12/2020

Shortest path distance approximation using deep learning techniques

Computing shortest path distances between nodes lies at the heart of man...

Please sign up or login with your details

Forgot password? Click here to reset