A Deterministic Near-Linear Time Approximation Algorithm for Restricted Shortest Paths in Directed Graphs

arXiv:2610.18337 · cs.DS · Submitted 2026-10-13 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.

Tom: I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: We're looking at the paper: "A Deterministic Near-Linear Time Approximation Algorithm for Restricted Shortest Paths in Directed Graphs".

Jane: Here's the gist of the paper. In this paper, authors present a deterministic near-linear time approximation algorithm for restricted shortest paths in directed graphs that generalizes to more than two resources.

Tom: The main result is a deterministic (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time Pruning redundant reasoning tokens The restricted shortest paths problem involves finding the shortest length path whose total cost is at most C in a directed graph G.

Jane: The authors aim to improve upon previous randomized bicriteria algorithms by supplying a deterministic (1 + ε, 1 + ε) k times-approximate algorithm running in near-linear time.

Tom: This approach is generalizable to more than two resources, allowing for a deterministic (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time.

Paper summary: Tom: So, Jane, we're looking at a paper titled "A Deterministic Near-Linear Time Approximation Algorithm for Restricted Shortest Paths in Directed Graphs." The big claim here is they've come up with a deterministic algorithm for finding shortest paths where you have multiple constraints—length and cost—and they’ve made it run in near-linear time.

Jane: That sounds really ambitious, Tom. So, to put it simply, what is the core problem this paper tackles? It’s about finding a path from a starting point to a destination in a directed graph where you have two different things you need to minimize or bound: the total length of the path and the total cost of that path against some threshold.

Lu: The authors are addressing what's called the restricted shortest paths problem, which involves finding the shortest path whose length is at most C in terms of cost. They’re aiming to improve on previous randomized algorithms by providing a deterministic version that handles more than two resources.

Meng: Deterministic in near-linear time is what we want to hear, but for us at scale, it has to work without needing huge preprocessing steps or relying on pure luck. What exactly are they claiming they can do deterministically?

Lalam: The paper claims a deterministic (one plus epsilon, one plus epsilon) times k-approximate algorithm for k resources running in near-linear time <ref:2610.18337#pg1,running in near-linear time>. That means you get a path whose length is within a factor of one plus epsilon of the true shortest length, and whose cost is within a factor of one plus epsilon of the threshold C.

Tom: So it generalizes from just two resources to any number of resources, k, with that same deterministic guarantee and near-linear time complexity. That’s pretty powerful because most approximations get worse as you add more constraints.

Jane: That's the generalization that's interesting, Tom. The paper outlines how they achieve this determinism by using a specific training signal and then breaking a stalemate they called the "Shared Sum Stalemate." It involves something called "Exploding Random Clocks" to handle the probabilistic part of things.

Lu: They build a deterministic inner algorithm based on dynamic programming with states of the form (t, i, j) representing minimum extinction probability. The complexity analysis shows this inner part takes O(m/epsilon eight) time.

Paper summary: Meng: O(m/epsilon eight) sounds bad if epsilon is tiny, but what about the outer loop? How many times does that inner part run? That’s where the real time complexity lives.

Tom: The outer framework iterates q squared, which they set to be O(epsilon-four) times. When you multiply that by the inner algorithm's time, it leads to a total time complexity of O(m (nW)/epsilon eight). That’s what they are promising for this paper.

Jane: So the overall claim is a deterministic near-linear time algorithm, which means it scales well with the size of the graph, m and n, even when we have many resources. But how do we actually get that path back?

Lu: That’s where they use conditional expectations on a potential function. They design this function so that if you find a path that violates their bounds—say its length is bigger than (one + epsilon)L and its cost is less than q —then the potential will be greater than or equal to one <ref:2610.18337#pg1>.

Tom: So, if the potential is high, it tells us we’ve found a good path. That means this deterministic path retrieval procedure guarantees you get a path P where the length (P) is at most (one + epsilon)L and the cost c(P) is at most (one + epsilon)C <ref:2610.18337#pg1>.

Jane: It sounds like they've managed to take a probabilistic idea and turn it into something concrete you can actually use for path finding, which is a big step for practical applications. But what does this mean in terms of complexity compared to what we already know about shortest paths?

Lu: The paper addresses the complexity of Restricted Shortest Paths, which is known to be NP-hard GJ79. They show that their approach suppresses only one n factor compared to the best known algorithms for single-source single-target variants, but they don't claim sub- mn time yet.

Meng: For production systems, near-linear time is good, but how much of this overhead is there? The paper mentions that it’s a routine modification of ideas from Theorem one that yields an analogous algorithm for k resources <ref:2610.18337#pg1>. That sounds like it’s meant to be practical for real-world deployment if you can tune epsilon appropriately.

Tom: So the main point is that we can now run this deterministically, and it handles multiple resources, giving us a path within (one + epsilon) of both length and cost bounds in near-linear time <ref:2610.18337#pg1>. That’s the high-level summary of "A Deterministic Near-Linear Time Approximation Algorithm for Restricted Shortest Paths in Directed Graphs."

Paper summary: Jane: And the implication is that we can tackle problems where we have multiple competing objectives, like minimizing both travel distance and fuel consumption, with a guaranteed quality of approximation that scales well. This moves us closer to solving complex resource allocation problems in networks.

Tom: So the authors are showing how to get a path P such that (P) (one + epsilon)L and c(P) (one + epsilon)C, and they do this deterministically, running in near-linear time <ref:2610.18337#pg1,running in near-linear time>. That's the core of Theorem one <ref:2610.18337#pg1>.

Jane: The authors also show how to derandomize path retrieval in Section six which is crucial because we need that guarantee to hold in practice without relying on randomness <ref:2610.18337#pg1>.

Lu: The work extends this deterministic approach to k resources, giving a running time of O(m (nW)/epsilon 4k+one) for Theorem two <ref:2610.18337#pg3>. That shows the generalization is solid, even as k increases.

Meng: I'm still thinking about the practical runtime. If we have a really large graph, say millions of nodes, does this O complexity translate to something manageable when you start putting real traffic on it?

Tom: It’s near-linear time, so for many practical graphs where the number of edges isn't astronomically larger than the number of vertices, that should be very fast. But the dependence on epsilon in the exponent is still a thing to watch.

Jane: The paper’s limitation, as they state it, is that they are focusing on bounding length by L and cost by C, but they don't claim to solve the general case for arbitrary resource constraints beyond this two-resource setup.

Lu: That’s fair. They focus heavily on the single-source RSP variant first, and then generalize. The paper doesn't promise a strongly polynomial near-linear time algorithm just yet; that remains open work, even with their results ABK25.

Tom: So to wrap up, we have a deterministic (one plus epsilon, <ref:2610.18337#pg1>..., one plus epsilon) times k-approximate algorithm for RSP running in near-linear time <ref:2610.18337#pg1,running in near-linear time>. It's about making these multi-objective path problems tractable deterministically.

Jane: That's the big picture of "A Deterministic Near-Linear Time Approximation Algorithm for Restricted Shortest Paths in Directed Graphs." It shows we can get strong, deterministic guarantees even when juggling several different path metrics at once.

Conclusion: Tom: So we've seen how they tackled restricted shortest paths, finding that deterministic near-linear time approximation for graphs.

Jane: It really boils down to taking a problem where you have two constraints—like path length and path cost—and finding a path that stays within an epsilon of both bounds.

Lu: The authors are aiming for something that works deterministically, not just randomly, and they're generalizing this idea to handle more than two resources.

Meng: I'm still thinking about how much overhead we're talking about when you get those complexity numbers like O(m n). Does that actually translate to something we can deploy on a massive graph?

Lalam: What they’ve done is prove that for this restricted shortest path problem, you can get a (one plus epsilon, one plus epsilon) times k-approximate algorithm running in near-linear time.

Tom: That means we're talking about a path whose length and cost are both within an epsilon factor of the optimal ones, and they’re doing it deterministically.

Jane: The authors show how they build this using some clever probability tricks to handle the uncertainty, then turn that into a concrete procedure for finding the actual path.

Lu: They use dynamic programming with a specific setup involving states like (t, i, j) to figure out minimum extinction probabilities for that inner part of the algorithm.

Meng: So it’s not just some theoretical bound; they have a structure there for how this approximation works on the graph itself. That makes it feel more deployable than just saying "it's fast."

Lalam: Exactly, and they even show you how to derandomize that path retrieval process, which means you get the actual path back without relying on any random number generator at all.

Tom: It’s a neat piece of work because it tackles a known hard problem in a way that gives us a solid guarantee on the quality of the result.

Jane: And what this means for us is that we can now tackle those complex network routing problems where you have multiple things to balance, like latency and bandwidth, with an epsilon level of accuracy we can actually measure.

Lu: It sets a new baseline for how deterministic we can be when dealing with these kinds of multi-objective pathfinding scenarios on graphs.

Meng: If this structure holds up under real traffic conditions, it could be really useful for things like network optimization where you're trying to keep things balanced across different metrics.

Lalam: The work extends this to k resources, meaning it handles more than just length and cost simultaneously without losing that deterministic guarantee.

Tom: It’s a solid result on a tough problem, showing we can push the boundaries of what we can find in near-linear time for these kinds of approximations.

Jane: So next time you're dealing with finding the best path under multiple constraints, there's now a deterministic way to get you close to the answer quickly.

Lu: We should look at how they handle those more complex resource setups next because that’s where the real power of this approach lies.

cs.DS

Submitted: 2026-10-13

Updated: 2026-10-29

Comments: More detailed AI statement. Polished exposition and fixed typos

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 91/100

The gist: In this paper, authors present a deterministic near-linear time approximation algorithm for restricted shortest paths in directed graphs that generalizes to more than two resources.

Terminology

Summary

In this paper, authors present a deterministic near-linear time approximation algorithm for restricted shortest paths in directed graphs that generalizes to more than two resources. The main result is a deterministic (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time

Pruning redundant reasoning tokens

The restricted shortest paths problem involves finding the shortest length path whose total cost is at most C in a directed graph G. The authors aim to improve upon previous randomized bicriteria algorithms by supplying a deterministic (1 + ε, 1 + ε) k times-approximate algorithm running in near-linear time. This approach is generalizable to more than two resources, allowing for a deterministic (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time.

How the training signal is built

The core idea involves using a Sum Trick and then breaking the Shared Sum Stalemate with an approach based on Exploding Random Clocks. A simple initial algorithm involves running Dijkstra’s algorithm with edge weights li + ci for O(log(nW)/ε) guesses L. This leads to a (1 + α/β + ε, 1 + β/α)-approximate algorithm when reweighting is used. The authors then introduce a probabilistic interpretation using independent exponential clocks for length and cost.

Where the gains come from

The deterministic inner algorithm is based on a DP table with O(nq 2) states of the form (t, i, j) representing minimum extinction probability. The complexity analysis shows that the inner algorithm takes Oe(m/ε 8) time. The outer framework iterates q squared = O(ε-4) times, leading to a total time complexity of Oe(m log(nW)/ε 8).

Derandomization of Path Retrieval

The deterministic path retrieval procedure uses the method of conditional expectations on a potential function Φ. This potential function is designed to bound the length and cost of the output path P. The analysis shows that for a violation, such as l(P) > (1 + ε)L and Qlength < q, the potential Φ ≥ 1. This leads to the conclusion that the deterministic path retrieval procedure produces an (s, t)-path P with l(P) ≤ (1 + ε)L and c(P) ≤ (1 + ε)C.

Final Bounds and Complexity

The final proof of Theorem 1 combines the results from Lemma 5.1 and Lemma 5.2 to yield a ((1 + ε) squared, 1 + ε)-approximate algorithm. The time complexity is established by showing that the outer loop runs O(log(nW)/ε) times and the inner algorithm takes Oe(m/ε 8) time. This completes the proof of Theorem 1. The deterministic path retrieval procedure is shown to produce an (s, t)-path P with l(P) ≤ (1 + ε)L and c(P) ≤ (1 + ε)C. The paper also shows how to derandomize path retrieval in Section 6. The final result is a deterministic (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The paper also shows how to derandomize path retrieval in Section 6.

Summary of the paper

The main result is a deterministic and near-linear time (1 + ε, 1 + ε)-approximate algorithm for RSP, resolving the complexity of RSP up to logarithmic factors. Theorem 2 extends this to k resources with a running time of Oe(m log(nW)/ε 4k+1). The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time. The authors also show how to derandomize path retrieval in Section 6. The paper provides a deterministic and near-linear time (1 + ε,..., 1 + ε) k times-approximate algorithm running in near-linear time.

Improvements for AI systems

  1. Deterministic near-linear time approximation for restricted shortest paths can be applied to AI planning problems where a path must satisfy both a length constraint and a cost constraint simultaneously. The improved system can find an (alpha, beta)-approximate solution to finding the shortest length path with total cost at most C in sub-mn time, generalizing this to k resources.

  2. Multi-constrained pathfinding for complex tasks like autonomous navigation or logistics can be solved efficiently by treating the problem as a restricted shortest paths instance. The system can determine if there exists a path whose total cost is no more than C while minimizing its length, offering practical solutions for quality of service routing and scheduling problems.

  3. The algorithm's use of an inner Dijkstra execution with length-cost weights allows the system to explore feasible routes based on two metrics concurrently. This enables the AI to select paths that balance competing objectives, such as travel time and resource consumption, leading to more robust decision-making in environments with multiple constraints.

Sources

Related papers