Metraipolis › archive › dc_a6d00f627410
Local Representatives and Shortest Completions for Next-to-Shortest Paths in Directed Graphs — arXiv:2609.22940
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.22940
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T22:40:49.032Z
- SHA-256 of the archived text
42a4621b5fa34e8c005e4b6a3b0fbf1853fc0c14f221f4b570a9cae812088416- Stable URL of this page
https://metraipolis.com/documento/dc_a6d00f627410
How to cite
Local Representatives and Shortest Completions for Next-to-Shortest Paths in Directed Graphs — arXiv:2609.22940 — arXiv (en), https://arxiv.org/abs/2609.22940 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a6d00f627410 (Metraipolis archive dc_a6d00f627410, sha256 42a4621b5fa34e8c005e4b6a3b0fbf1853fc0c14f221f4b570a9cae812088416)
BibTeX
@misc{dca6d00f627410,
title = {Local Representatives and Shortest Completions for Next-to-Shortest Paths in Directed Graphs — arXiv:2609.22940},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.22940},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a6d00f627410; sha256 42a4621b5fa34e8c005e4b6a3b0fbf1853fc0c14f221f4b570a9cae812088416},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.22940. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Given a directed graph with positive edge weights and two vertices s,t, a next-to-shortest s-t path is a shortest simple s-t path among those whose length is strictly larger than the shortest-path distance. The problem was introduced by Lalgudi, Papaefthymiou and Potkonjak in 1996; it is NP-hard when zero-weight edges are allowed, and its complexity on positively weighted digraphs remained open for almost three decades until Chen, Wein and Zhang recently gave a polynomial-time algorithm running in O(n^4 m^3 log n) time. We give a substantially faster algorithm within their optimal-middle-segment framework. The core idea is to split the problem into "choosing a prefix" and "completing it". Given a prefix P: s -> A made of shortest-path edges, delete the vertices used by P, forbid leaving A along shortest-path edges, and the best completion is one shortest-path computation. The difficulty lies in choosing P: even for a fixed A, deciding whether some shortest prefix admits a completion is NP-complete. We do not solve these fixed-A subproblems one by one. Fix any globally optimal next-to-shortest path; its middle segment induces a boundary edge x -> c in the shortest-path DAG. For the correct triple (A,B,x), the optimal path certifies c as a feasible next hop, and we prove that every feasible next hop that is not earlier than c in a topological order can be combined with the same middle segment into another globally optimal path. Hence only the feasible next hop of maximum topological index is kept per triple, giving O(n^3) representatives, all generated by a two-dimensional DAG dynamic program with a local reward. The total running time is O(n^3 (m + n log n)), and O(n^3 m) on unweighted graphs. The proof rests on an uncrossing lemma: the last intersection between a reference prefix and the candidate's partner suffix can always be moved strictly earlier, which cannot go on forever. Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-09-22 in cs.DS). Categorie arXiv: Data Structures and Algorithms (cs.DS) ; Discrete Mathematics (cs.DM). Pagina del lavoro: https://arxiv.org/abs/2609.22940 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-09T22:24:05.598Z dalla pagina https://arxiv.org/catchup/cs.DS/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).