I have this question form the Sedgewick's course on algorithms: "Critical edge. Given an edge-weighted digraph, design an E*log(V)
algorithm to find an edge whose removal causes the maximal increase (possibly infinite) in the length of the shortest path from s
to t
. Assume all of the edge weights are strictly positive. (Hint: compute the shortest path distances d(v)
form s
to v
and consider the reduced costs c′(v,w)=c(v,w)+d(v)−d(w) ≥ 0
.)"
I've read on the internet that three (3) guys in 1989 came up with an algorithm of complexity O(E + V*log(V))
what required advanced data structures, and I think it was on a graph (not digraph). If it got three advanced computer scientist to develop this algorithms, is not it too much of a problem for an introductory course? But maybe it is much easier for just O(E*log(V))
.
Can you help me to solve it? I don't understand the hint given in the question.