1.

The Bellmann Ford algorithm returns _______ value.(a) Boolean(b) Integer(c) String(d) DoubleThe question was asked in an interview.My question is taken from Shortest Path topic in division Shortest Path of Data Structures & Algorithms II

Answer»

The correct CHOICE is (a) Boolean

To explain: The Bellmann Ford algorithm returns Boolean VALUE whether there is a negative weight CYCLE that is reachable from the SOURCE.



Discussion

No Comment Found

Related InterviewSolutions