arXiv:2610.18337cs.DSOct 2026

Manuscript Offprint

arXiv:2610.18337

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

Vikrant Ashvinkumar

Abstract

In the restricted shortest paths problem, we are given an nn-vertex mm-edge graph GG whose edges are assigned two non-negative weights (or resources) called lengths and costs, a source vertex ss, and a cost threshold CC. The goal is to find, for each target vertex tt, the length of the shortest (s,t)(s, t)-path whose total cost is at most CC.

[ABK25] gave the first randomized bicriteria (1+ε,1+ε)(1+\varepsilon, 1+\varepsilon)-approximate algorithm on directed graphs running in sub-mn time, answering a problem posed by [Ber12]. We substantially improve this on two fronts, supplying a deterministic bicriteria (1+ε,1+ε)(1+\varepsilon, 1+\varepsilon)-approximate algorithm running in near-linear time.

Our approach straightforwardly generalizes to more than two resources. For kk resources, a deterministic (1+ε,…,1+ε)(1+\varepsilon,\ldots,1+\varepsilon)-approximate algorithm running in near-linear time is possible.

kk times

AI Statement. Some version of Theorem 1 was elicited through numerous discussions with GPT-6 Astra and older GPT models, under human guidance. The narrativization of the results is my own.

1 Introduction

The restricted shortest paths (RSP) problem puts a natural and practically relevant spin on a truly classical problem: shortest paths. In the shortest paths problem, we ask: how quickly can we get from s to t? This is well studied and, to any non-specialist, solved for all intents and purposes. 1^{1} The simple twist is to ask: how quickly and cheaply can we get from s to t?

In the RSP problem, we are given a graph G=(V,E)G = (V, E) equipped with exactly two non-negative functions ℓ,c\ell, c assigning two unrelated weights (or resources) – called lengths and costs – to the edges of GG. For a source-target pair s,t∈Vs, t \in V, and a cost threshold CC, the goal is to find the shortest length (s,t)(s, t)-path in GG whose total cost is no more than CC. While it is barely any harder a problem to state than shortest paths, RSP models real-world concerns much more potently, with applications spanning quality of service (QoS) routing [LO98, YF03], scheduling [BCL +^{+}10, NST07], and other areas of operations research (see, e.g., [GGT10]).

More generally, the paths we look for may be subject to numerous constraints. For example, when planning a long journey, there are many factors to take into account: the total price, number of transfers, trip length, carbon footprint, etc. Problems of this kind are collectively known as multi-constrained path problems (see, e.g., [GGT10, XZTT08]) or, in this paper, RSP with k resources when there is one objective and k−1k - 1 constraints, all of which must be simultaneously satisfied.

1^{1}The cognoscenti, however, would see an abundance of open problems spanning negative weights [BNW22], negative real weights [Fin24], universal optimality [HHR +^{+}24], breaking sorting barriers [DMM +^{+}25], etc.

Unlike shortest paths, RSP is known to be NP-hard [GJ79], which motivates looking for approximate algorithms. Even with this concession, the complexity of approximation algorithms for RSP in its full generality is far from being settled [ABK25, Ber12, GRKL01, Has92, LR01, War87].