25.39 Road Network

#1

In the solution explanation, we take into account both S(a,x) + d(x,y) + S(y,b) and S(a,y) + d(y,x) + S(x,b). How come in the code solution we only take into account S(a,x) + d(x,y) + S(y,b)?

0 Likes