Exercise: Path-Relaxation
Test your understanding of the implications of path-relaxation of a shortest path.
We'll cover the following
The task at hand
In the digraph given below, you are required to relax only the smallest number of edges—in the correct order—so that the shortest path from the source
Assume that the digraph is initialized in the prescribed way, with
set to for , and it's set to for all other vertices.
Get hands-on with 1400+ tech skills courses.