Introduction to Shortest Paths
Explore the concept of shortest paths in weighted directed graphs, including finding minimal paths from a source to target vertex. Understand shortest path trees, differences from minimum spanning trees, and challenges like negative edge weights. Gain foundational knowledge to apply shortest path algorithms effectively.
Weighted directed graph (two vertices)
Suppose we are given a weighted directed graph with two special vertices, and we want to find the shortest path from a source vertex to a target vertex . That is, we want to find the directed path starting at and ending at that minimizes the function. The expression below represents the sum of the weights of all edges:
...