English

Replacement Paths via Row Minima of Concise Matrices

Data Structures and Algorithms 2014-03-04 v1

Abstract

Matrix MM is {\em kk-concise} if the finite entries of each column of MM consist of kk or less intervals of identical numbers. We give an O(n+m)O(n+m)-time algorithm to compute the row minima of any O(1)O(1)-concise n×mn\times m matrix. Our algorithm yields the first O(n+m)O(n+m)-time reductions from the replacement-paths problem on an nn-node mm-edge undirected graph (respectively, directed acyclic graph) to the single-source shortest-paths problem on an O(n)O(n)-node O(m)O(m)-edge undirected graph (respectively, directed acyclic graph). That is, we prove that the replacement-paths problem is no harder than the single-source shortest-paths problem on undirected graphs and directed acyclic graphs. Moreover, our linear-time reductions lead to the first O(n+m)O(n+m)-time algorithms for the replacement-paths problem on the following classes of nn-node mm-edge graphs (1) undirected graphs in the word-RAM model of computation, (2) undirected planar graphs, (3) undirected minor-closed graphs, and (4) directed acyclic graphs.

Keywords

Cite

@article{arxiv.1310.8062,
  title  = {Replacement Paths via Row Minima of Concise Matrices},
  author = {Cheng-Wei Lee and Hsueh-I Lu},
  journal= {arXiv preprint arXiv:1310.8062},
  year   = {2014}
}

Comments

23 pages, 1 table, 9 figures, accepted to SIAM Journal on Discrete Mathematics

R2 v1 2026-06-22T01:57:11.755Z