Figure 5:
The proposed algorithm to find the minimum path.