Abstract
For a weighted 2-edge connected graph G=(V,E), we are to find a “minimum risk path” from source s to destination t. This is a shortest s−t path under the assumption that at most one edge on the path may be blocked. The fact that the edge is blocked is known only when we reach a site adjacent to the blocked edge.
If n and m are the number of nodes and edges of G, then we show that this problem can be solved in O(n 2) time using only simple data structures. This is an improvement over the previous O(mn+n 2logn) time algorithm. Moreover, with use of more complicated data structures like Fibonacci Heaps and transmuters the time can be further reduced to O(m+nlogn).
Similar content being viewed by others
References
Aho AV, Hopcroft JE, Ullman JD (1974) The design and analysis of computer algorithms. Addison-Wesley, Reading
Deo N (1974) Graph theory with applications to engineering and computer science. Prentice-Hall, New York
Dijkstra EW (1959) A note on two problems in connexion with graphs. Numer Math 1(4):269–271
Fredman M, Tarjan R (1987) Fibonacci heaps and their uses in improved network optimization algorithms. J ACM 34(3):596–615
Nardelli E, Proietti G, Widmayer P (2001) Faster computation of the most vital edge of a shortest path. Inf Process Lett 79:81–85
Nardelli E, Proietti G, Widmayer P (1998) Finding the detour-critical edge of a shortest path between two nodes. Inf Process Lett 67(1):51–54
Yuan H, Attalah M (2010) Data structures for range minimum queries in multidimensional arrays. In: SODA’10, pp 150–160
Tarjan R (1979) Applications of path compression on balanced trees. J ACM 26:690–715
Tarjan R (1982) Sensitivity analysis of minimum spanning trees and shortest path trees. Inf Process Lett 14(1):30–33
Xiao P, Xu Y, Su B (2009) Finding an anti-risk path between two nodes in undirected graphs. J Comb Optim 17:235–246
Acknowledgements
We thank an anonymous referee for a very careful reading of the manuscript, and his/her critical comments and suggestions. We believe these suggestions have helped in improving the readability of the manuscript.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Mahadeokar, J., Saxena, S. Faster algorithm to find anti-risk path between two nodes of an undirected graph. J Comb Optim 27, 798–807 (2014). https://doi.org/10.1007/s10878-012-9553-0
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10878-012-9553-0