English

Shortest-Path-Preserving Rounding

Computational Complexity 2019-05-22 v1 Discrete Mathematics Data Structures and Algorithms

Abstract

Various applications of graphs, in particular applications related to finding shortest paths, naturally get inputs with real weights on the edges. However, for algorithmic or visualization reasons, inputs with integer weights would often be preferable or even required. This raises the following question: given an undirected graph with non-negative real weights on the edges and an error threshold ε\varepsilon, how efficiently can we decide whether we can round all weights such that shortest paths are maintained, and the change of weight of each shortest path is less than ε\varepsilon? So far, only for path-shaped graphs a polynomial-time algorithm was known. In this paper we prove, by reduction from 3-SAT, that, in general, the problem is NP-hard. However, if the graph is a tree with nn vertices, the problem can be solved in O(n2)O(n^2) time.

Keywords

Cite

@article{arxiv.1905.08621,
  title  = {Shortest-Path-Preserving Rounding},
  author = {Herman Haverkort and David Kübel and Elmar Langetepe},
  journal= {arXiv preprint arXiv:1905.08621},
  year   = {2019}
}

Comments

20 pages, 5 figures, pre-print of an article presented at IWOCA 2019

R2 v1 2026-06-23T09:15:22.944Z