

McqMate
Q. |
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. | false |
Answer» A. true | |
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. |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet