結果 : write an algorithm for single source shortest path explain with an example