Gate CS-2009 Question Paper With Solutions

Q. 2 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

(A) P only

(B) Q only

(C) Both P and Q

(D) Neither P nor Q

Answer: (B)

Explanation:

Gate CS-2009 Question Paper With Solutions

Gate CS-2009 Question Paper With Solutions

Learn More:   Gate ME-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here