Which of the following statement(s)is / are correct regarding Bellman-Ford…

2009

Which of the following statement(s)is / are correct regarding Bellman-Ford shortest path algorithm?

P: Always finds a negative weighted cycle, if one exist s.
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

Attempted by 171 students.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir