IWOCA 2019: Combinatorial Algorithms pp 265-277

# Shortest-Path-Preserving Rounding

Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11638)

## 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 n vertices, the problem can be solved in $$O(n^2)$$ time.

## Keywords

Algorithms Graph Graph drawing Rounding Shortest path

## References

1. 1.
Asano, T., Matsui, T., Tokuyama, T.: Optimal roundings of sequences and matrices. Nord. J. Comput. 7(3), 241–256 (2000)
2. 2.
Asano, T., Matsui, T., Tokuyama, T.: On the complexities of the optimal rounding problems of sequences and matrices. In: Halldórsson, M.M. (ed.) SWAT 2000. LNCS, vol. 1851, pp. 476–489. Springer, Heidelberg (2000).
3. 3.
Asano, T., Katoh, N., Tamaki, H., Tokuyama, T.: The structure and number of global roundings of a graph. Theor. Comput. Sci. 325(3), 425–437 (2004)
4. 4.
Funke, S., Storandt, S.: Consistent rounding of edge weights in graphs. In: Proceedings of the 9th Annual Symposium on Combinatorial Search (SOCS 2016), pp. 28–35 (2016)Google Scholar
5. 5.
Haverkort, H.: Embedding cues about travel time in schematic maps. In: Schematic Mapping Workshop 2014, University of Essex (2014). https://sites.google.com/site/schematicmapping/
6. 6.
Haverkort, H., Kübel, D., Langetepe, E.: Shortest-path-preserving rounding. CoRR abs/1905.08621 (2019). https://arxiv.org/abs/1905.08621
7. 7.
Sadakane, K., Takki-Chebihi, N., Tokuyama, T.: Combinatorics and algorithms for low-discrepancy roundings of a real sequence. Theor. Comput. Sci. 331(1), 23–36 (2005)
8. 8.
Storandt, S.: Sensible edge weight rounding for realistic path planning. In: Proceedings of the 26th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL/GIS 2018), pp. 89–98 (2018)Google Scholar
9. 9.
Takki-Chebihi, N., Tokuyama, T.: Enumerating global roundings of an outerplanar graph. In: Ibaraki, T., Katoh, N., Ono, H. (eds.) ISAAC 2003. LNCS, vol. 2906, pp. 425–433. Springer, Heidelberg (2003).
10. 10.
Thorup, M.: Integer priority queues with decrease key in constant time and the single source shortest paths problem. J. Comput. Syst. Sci. 69(3), 330–353 (2004)