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.
- AP only
- BQ only
- Cboth P and Q
- DNeither P nor Q