β
Correct Answer: (D)
o(ve)
Explanation: bellmann ford algorithm runs in time o(ve), since the initialization takes o(v) for each of v-1 passes and the for loop in the algorithm takes o(e) time. hence the total time taken by the algorithm is o(ve).
Explanation by: Mr. Dubey
bellmann ford algorithm runs in time o(ve), since the initialization takes o(v) for each of v-1 passes and the for loop in the algorithm takes o(e) time. hence the total time taken by the algorithm is o(ve).
Discussion
Question Analytics
581
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
85%
Success Rate