The Shortest Path Algorithm Explanation