InterviewSolution
Saved Bookmarks
| 1. |
How many solution/solutions are available for a graph having negative weight cycle?(a) One solution(b) Two solutions(c) No solution(d) Infinite solutionsI have been asked this question during an online exam.My doubt stems from Shortest Path in division Shortest Path of Data Structures & Algorithms II |
|
Answer» RIGHT option is (c) No solution The BEST EXPLANATION: If the graph has any negative weight cycle then the algorithm indicates that no solution EXISTS for that graph. |
|