Learn why the Floyd-Warshall algorithm does not assume paths of three edges and how dynamic programming finds shortest paths of any length.