Using Machine Learning Predictions to Speed-up Dijkstra's Shortest Path Algorithm

12/22/2021
by   Willem Feijen, et al.
0

We study the use of machine learning techniques to solve a fundamental shortest path problem, which is also known as the single-source many targets shortest path problem (SSMTSP). Given a directed graph with non-negative edge weights, our goal is to compute a shortest path from a given source node to any of several designated target nodes. Basically, our idea is to combine a machine learning approach with an adapted version of Dijkstra's algorithm to solve this problem: Based on the trace of Dijkstra's algorithm, we design a neural network that predicts the shortest path distance after only a few iterations. The prediction is then used to prune the search space explored by Dijkstra's algorithm, which allows us to save a significant fraction of operations on the underlying priority queue. Crucially, our approach always computes the exact shortest path distances, even if the prediction is inaccurate, and never uses more queue operations than the standard algorithm. In fact, we are able to prove a lower bound on the number of queue operations saved by our new algorithm, which depends on the accuracy of the prediction. Our bound applies to arbitrary graphs as long as (some of) the edge weights are drawn at random. Our experimental findings on random graphs confirm these bounds and show that the actual savings are oftentimes significantly higher.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/03/2019

Breaking the Bellman-Ford Shortest-Path Bound

In this paper we give a single-source shortest-path algorithm that break...
research
08/08/2018

A practical Single Source Shortest Path algorithm for random directed graphs with arbitrary weight in expecting linear time

In this paper we present a new algorithm called Raffica algorithm for Si...
research
05/13/2021

Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths

In this paper, we study the single-source shortest-path (SSSP) problem w...
research
09/29/2021

(Machine) Learning to Improve the Empirical Performance of Discrete Algorithms

This paper discusses a data-driven, empirically-based framework to make ...
research
03/22/2021

SP Async:Single Source Shortest Path in Asynchronous Mode on MPI

Finding single source shortest path is a very ubiquitous problem. But wi...
research
02/17/2022

Hamilton-Jacobi equations on graphs with applications to semi-supervised learning and data depth

Shortest path graph distances are widely used in data science and machin...
research
11/11/2021

Faster Goal-Oriented Shortest Path Search for Bulk and Incremental Detailed Routing

We develop new algorithmic techniques for VLSI detailed routing. First, ...

Please sign up or login with your details

Forgot password? Click here to reset