(b) Assume that the distances are correct, and d(v) is finite for all v ∈ V.
Now you need to compute distances to a different sink t . Give an O(m log n) algorithm for computing distances d (v) for all nodes v ∈ V to the sink node t. (Hint: It is useful to consider a new cost function defined as follows: for edge e = (v, w), let c e = ce − d(v) + d(w). Is there a relation between costs of paths for the two different costs c and c?)