Thought Exercise: The Bellman-Ford Algorithm

Think about how to optimize the Bellman-Ford algorithm.

We'll cover the following

How to optimize?

Earlier, we saw an example in which no changes were made to attribute values of the vertices in the last round of the Bellman-Ford algorithm. This tells us that the last few rounds may be redundant for some digraphs.

Get hands-on with 1200+ tech skills courses.