Discrete Mathematics
The Bellman-Ford algorithm is a graph algorithm used to find the shortest paths from a single source vertex to all other vertices in a weighted graph, even when some edge weights are negative. It works by iteratively relaxing the edges of the graph, updating the shortest path estimates until no further improvements can be made. This algorithm is particularly useful in scenarios where negative weight edges are present, making it distinct from other shortest path algorithms like Dijkstra's.
congrats on reading the definition of Bellman-Ford Algorithm. now let's actually learn it.