GATE CS 2009 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0090

Which of the following statement(s) is/are correct regarding Bellman-Ford shortest path algorithm?P. Always finds a negative weighted cycle, if one exists.Q. Finds whether any negative weighted cycle is reachable from the source.
  1. A
    P only
  2. B
    Q only
  3. C
    both P and Q
  4. D
    Neither P nor Q

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1305/gate2009-13

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com