結果 : explain shortest path algorithm with a suitable illustration