Introduction to Shortest Paths
Understand the fundamental concepts of shortest paths and their applications in problem-solving.
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:
...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy