A Simpler and More Efficient Algorithm for the Next-to-Shortest Path Problem

A Simpler and More Efficient Algorithm for the Next-to-Shortest Path Problem

0.00 Avg rating0 Votes
Article ID: iaor2013684
Volume: 65
Issue: 2
Start Page Number: 467
End Page Number: 479
Publication Date: Feb 2013
Journal: Algorithmica
Authors:
Keywords: heuristics, graphs
Abstract:

Given an undirected graph G=(V,E) with positive edge lengths and two vertices s and t, the next‐to‐shortest path problem is to find an st‐path which length is minimum amongst all st‐paths strictly longer than the shortest path length. In this paper we show that the problem can be solved in linear time if the distances from s and t to all other vertices are given. Particularly our new algorithm runs in O(|V|log|V|+|E|) time for general graphs, which improves the previous result of O(|V|2) time and takes only linear time for unweighted graphs, planar graphs, and graphs with positive integer edge lengths.

Reviews

Required fields are marked *. Your email address will not be published.