A Faster Undirected Single-Source Shortest Path Algorithm
summary
The gist
The paper presents a faster algorithm for single-source shortest paths in weighted undirected graphs by improving upon previous state-of-the-art running times.<ref:2609.15247#pg1…
In short
This paper presents a faster randomized algorithm for finding single-source shortest paths in weighted undirected graphs. The method uses random sampling to build structures efficiently, achieving a running time of O(m log 1/2 n log log 1/4 n log log log 1/4 n). This improvement comes from replacing slow constructions with an ActiveBellmanFord approach and using random samples to bound costs.
Key concepts
- ActiveBellmanFord
- This is a technique used to compute distances to a sampled set of vertices. Instead of running the full Bellman-Ford algorithm, it efficiently computes these distances in O(mk) time with high probability, which is crucial for speeding up the overall shortest path calculation.
- Ball Construction
- The paper focuses on constructing 'balls' around each vertex. These balls represent a set of vertices close to a specific source vertex. Efficiently building these balls is a major bottleneck in previous methods, and this new approach speeds up this construction significantly.
- Random Sampling Strategy
- The algorithm relies on randomly selecting vertices to form a sample set S. This sampling strategy allows the researchers to prove that the total cost of using these samples remains bounded by O(mk), which is essential for controlling the overall running time.
Terminology used across episodes
This episode discusses
- A Faster Undirected Single-Source Shortest Path Algorithm · Paper Radio
- A Faster Directed Single-Source Shortest Path Algorithm
The paper
A Faster Undirected Single-Source Shortest Path Algorithm · Read on arXiv
Department of Computer Science, Bar Ilan University
The single-source shortest paths (SSSP) problem in graphs with non-negative edge weights is one of the most classic problems in algorithms. For decades, the best known running time in the comparison-addition model was the O(m+n n) bound of Dijkstra's algorithm with Fibonacci heaps. Recently, Duan, Mao, Shu, and Yin (FOCS'23) gave a randomized O(m 1/2 n 1/2 n) -time algorithm for SSSP in weighted undirected graphs. For weighted directed graphs, Duan, Mao, Mao, Shu, and Yin (STOC'25) gave an O(m 2/3 n) -time algorithm for SSSP. Very recently, Duan, Mao, Shu, and Yin (ICALP'26) obtained an algorithm for directed graphs whose running time matches the O(m 1/2 n 1/2 n) time of the undirected case. In this paper, we present a faster algorithm for SSSP in weighted undirected graphs, giving the first improvement in running time since the FOCS'23 breakthrough of Duan, Mao, Shu, and Yin. Our algorithm runs in O(m 1/2 n 1/4 n 1/4 n) time, improving the previous running time by a factor of (n over n) 1/4. Our main contribution is a simple and efficient tool that computes, for every vertex, its distance to the nearest vertex in a random sample; this tool may be of independent interest.
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: We're looking at the paper: "A Faster Undirected Single-Source Shortest Path Algorithm".
Title and authors: Tom: So we're looking at this paper called "A Faster Undirected Single-Source Shortest Path Algorithm". Jane, what's the main takeaway here in plain English?
Jane: Well, Tom, it’s about finding the shortest path from one starting point to every other point in a weighted undirected graph. The previous best time for that was Dijkstra’s algorithm with Fibonacci heaps, which was O m plus n log n Bel58. This paper says they found a way to do it faster than before.
Lu: It really targets the sorting barrier that Dijkstra's needs to overcome, which is why this is interesting. They are looking at how to compute these distances without having to sort all the distances in order, which usually costs n log n comparisons Bel58.
Meng: If it’s faster, that matters for deploying models on big graphs. We don't want an algorithm that takes too long when we have millions of nodes and edges. What is this new running time they claim?
Tom: They claim their new running time is O m log1/two n log log1/four n log loglog1/four n, which is faster than the previous best <ref:2609.15247#pg1,O m log1/2 n log log1/4 n log>. That's a significant improvement over the O m plus n log n bound Bel58.
Jane: And they achieve this by using a randomized approach to get an approximation of the distances, which seems to be the trick. They use a random sample of vertices instead of checking every single vertex for the shortest path.
Lu: That tool they introduce—computing the distance from every vertex to its nearest point in that random sample—is actually useful on its own, even if this paper is just about SSSP <ref:2609.15247#pg1>.
Meng: Useful for what? It sounds like a nice side result, but I need to know what it means for the actual pathfinding speed. Does that tool itself run fast enough at scale?
Tom: The paper suggests this distance-to-sample tool is a simple and efficient piece of machinery <ref:2609.15247#pg1>. It might be useful independently, but the main goal here is getting the SSSP computation down.
The paper's summary: Jane: So, what’s this whole process they described in "A Faster Undirected Single-Source Shortest Path Algorithm"? Essentially, how do they use that random sample to speed up finding all those shortest paths?
Lu: They start by saying that the main bottleneck in older methods was this preprocessing step where you had to run a bounded Dijkstra search from every vertex until you hit your first sample <ref:2609.15247#pg3>. That preprocessing cost O m k log k time over all vertices.
Tom: And they replace that complex construction with something called an ActiveBellmanFord algorithm, which they say computes everything in O m k time with high probability <ref:2609.15247#pg1>. That seems like a direct way to save the sorting cost.
Meng: But wait, if you’re running ActiveBellmanFord on every vertex until you hit a sample, how much memory or processing power is that? I need to know the actual cost in practice.
Jane: The analysis relies on some key properties of random samples that guarantee the total cost for calling BoundSSSP over all vertices is bounded by O m k <ref:2609.15247#pg1>. That keeps things under control probabilistically.
Lu: And then they show that the running time of BundleDijkstra, which is part of their overall algorithm, stays in a good spot, O m k plus m over k times log n <ref:2609.15247#pg1>. That’s what keeps the complexity manageable when you look at sparse graphs where m equals n.
Tom: So they are replacing the expensive construction cost with something that runs in O m k log one/two k loglog one/two k, which is a definite improvement over the O m k log k construction <ref:2609.15247#pg4>.
The paper's improvements: Jane: So what are the specific improvements they point out? It seems like they’re focusing on speeding up that initial setup phase, which is usually the slowest part of these algorithms.
Tom: Exactly. The biggest improvement is replacing the O m k log k construction from a previous paper with something that runs in O m k log one/two k loglog one/two k <ref:2609.15247#pg4>. That change alone gives them the factor of (log log n / log loglog n) to improve the running time by a quarter.
Lu: And they tie this improvement to how they use that random sample S, which is chosen by sampling each vertex independently with a probability of one over k <ref:2609.15247#pg15>. That sampling strategy is what drives the speed up.
Meng: I see the sampling part, but what about the other part? The paper mentions that their running time never gets worse than that of BundleDijkstra from a prior work <ref:2609.15247#pg16>. Does it actually improve over everything else?
Jane: They claim that for any m, the running time is never worse than the old algorithm, but it only actually shows its saving when the ball construction part becomes the dominant term in the overall cost <ref:2609.15247#pg16>.
Tom: And they found a way to make that ball construction bottleneck faster by adapting previous derandomization techniques so they grow those balls simultaneously instead of one at a time <ref:2609.15247#pg17>.
Lu: That simultaneous growth is what gets them the required running time bound of O m log one/two n log log one/four n log loglog one/four n <ref:2609.15247#pg9>. It balances out those terms nicely when you pick k to be around log one/two n times some other logarithmic factors <ref:2609.15247#pg9>.
Conclusion: Jane: So, to wrap up, what does this paper actually mean for someone who is trying to find shortest paths in a weighted undirected graph? What’s the big picture here?
Tom: It means we can now compute single source shortest paths with non-negative edge weights faster than before. The new running time of O m log1/two n log log1/four n log loglog1/four n gives us a real speedup over older methods <ref:2609.15247#pg3>.
Lu: It’s about finding that balance where you use a randomized sample to avoid the sorting barrier, and then using smart construction techniques to handle the resulting structures efficiently.
Meng: For production systems, if this speedup holds up under real traffic conditions—and I know it's not proven on real traffic—it could mean much faster routing decisions in large networks <ref:2609.15247#pg1>. But the authors admit that the construction of those balls is still a bottleneck for a faster deterministic algorithm <ref:2609.15247#pg8>.
Tom: They do say that achieving an even faster deterministic algorithm requires producing that sample set S in o m k log k time, which is where they’re still working on things <ref:2609.15247#pg17>. But for now, this randomized version gives us a solid result.
Jane: That's right. The paper "A Faster Undirected Single-Source Shortest Path Algorithm" shows that by using a carefully chosen random sample and smarter construction, we can achieve better complexity than before for this problem <ref:2609.15247#pg3>. It’s a solid step forward in the field of graph algorithms.
Lu: It really highlights that even when you look at randomized methods, the structure of how you build those auxiliary structures is what ultimately dictates whether you get a real speedup or not <ref:2609.15247#pg8>.
Meng: I just hope the next work tackles that ball construction issue hard because if we want to deploy this on massive infrastructure, we need something deterministic and solid <ref:2609.15247#pg17>. (End of Episode)
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.26500-Multi-Decoder OneRec: Controllable Generative Retrieval for Multi-Objective Industrial Recommendation
- 2607.27976-Load balancing in parallel infinite-server queues with action delay via phase representation
- 2607.28574-Finite Pinwheel Covering
- 2608.07026-PyFlow: An Inter-procedural Static Analysis Framework for Python
- 2608.09305-Dilatations of categories, via their lean formalization
- 2608.16406-SATisfying the High School Identities but not Wilkie's Identity
- 2609.02062-SPAR: Enhancing Industrial-Scale Generative POI Recommendation via Real-World Spatial Perception
- 2609.03661-Point&Spawn: Mid-Air Reference-Free Object Instantiation Using Gaze and Hand Gestures in Extended Reality