retagged by
318 views

1 Answer

2 votes
2 votes

Answer: B

Explanation: the for loop in the bellman ford algorithm gets executed for v-1 times. after making v-1 passes, the algorithm checks for a negative weight cycle and returns appropriate boolean value.

Answer:

Related questions

2 votes
2 votes
1 answer
1
rsansiya111 asked Dec 8, 2021
871 views
Suppose we do merge sort with a three-way split: divide the array into 3 equal parts, sort each part and do a 3 way merge.What would the worst-case complexity of this ver...
0 votes
0 votes
3 answers
3