A simpler and more efficient algorithm for the next-to-shortest path problem
Bang Ye Wu

TL;DR
This paper introduces a new linear-time algorithm for the next-to-shortest path problem in undirected graphs, significantly improving efficiency over previous methods, especially for specific graph types.
Contribution
The paper presents a novel linear-time algorithm for the next-to-shortest path problem, improving upon prior quadratic-time solutions for sparse graphs.
Findings
Algorithm runs in O(|V| log |V| + |E|) time for general graphs.
Linear time complexity achieved for unweighted, planar, and integer edge length graphs.
Significant efficiency improvement over previous algorithms.
Abstract
Given an undirected graph with positive edge lengths and two vertices and , the next-to-shortest path problem is to find an -path which length is minimum amongst all -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 and to all other vertices are given. Particularly our new algorithm runs in time for general graphs, which improves the previous result of time for sparse graphs, and takes only linear time for unweighted graphs, planar graphs, and graphs with positive integer edge lengths.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
