Computer Science · Data Structures and Algorithms
Given below are two statements: Statement I: Dijkstra's algorithm can correctly find the shortest path in graphs that contain negative edge weights. Statement II: The Bellman-Ford algorithm can find single-source shortest paths in graphs with negative edge weights. In light of the above statements, choose the most appropriate answer from the options given below:
- 1Both Statement I and Statement II are correct
- 2Both Statement I and Statement II are incorrect
- 3Statement I is correct but Statement II is incorrect
- 4Statement I is incorrect but Statement II is correct✓
Correct answer
Statement I is incorrect but Statement II is correct
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures and Algorithms?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures and Algorithms