1.

Dijkstra’s Algorithm run on a weighted, directed graph G={V,E} with non-negative weight function w and source s, terminates with d[u]=delta(s,u) for all vertices u in V.(a) True(b) FalseThe question was posed to me by my school principal while I was bunking the class.My question is taken from Shortest Path topic in division Shortest Path of Data Structures & Algorithms II

Answer»

Correct answer is (a) True

Best explanation: The equality d[U]=delta(s,u) holds good when vertex u is ADDED to set S and this equality is MAINTAINED THEREAFTER by the upper bound PROPERTY.



Discussion

No Comment Found

Related InterviewSolutions