1.

Dijkstra’s Algorithm will work for both negative and positive weights?(a) True(b) FalseThe origin of the question is Directed Graph in division Graph of Data Structures & Algorithms IThe question was asked in examination.

Answer»

Correct CHOICE is (b) False

The explanation is: Dijkstra’s ALGORITHM ASSUMES all weights to be non-negative.



Discussion

No Comment Found

Related InterviewSolutions