GATEverse Practice, past papers & mock tests
GATE 2020
AlgorithmsGraph AlgorithmshardMCQ2 marks
Let G = (V, E) be a directed, weighted graph with weight function w: E -> R. For some function f: V -> R, for each edge (u, v) ∈ E, define w'(u, v) = w(u, v) + f(u) - f(v). The shortest paths in G under w are shortest paths under w' to:
Save your progress

Related Algorithms PYQs