TU Wien:Diskrete Mathematik für Informatik UE (Gittenberger)/Übungen WS13/Beispiel 23

Aus VoWi
Zur Navigation springen Zur Suche springen
Use the algorithm of Floyd-Warshall to compute all distances in the following graph.

xy=et

D(1)=(045∞∞∞∞∞06310∞∞∞∞04∞9∞∞∞3063∞∞∞∞4032∞∞∞∞202∞∞∞∞∞∞0)

D(1)=(045∞∞∞∞∞06310∞∞∞∞04∞9∞∞∞3063∞∞∞∞4032∞∞∞∞202∞∞∞∞∞∞0) D(2)=(045∞∞∞∞∞06310∞∞∞∞04∞9∞∞∞3063∞∞∞∞4032∞∞∞∞202∞∞∞∞∞∞0) D(3)=(045714∞∞∞06310∞∞∞∞04∞9∞∞∞3063∞∞∞∞4032∞∞∞∞202∞∞∞∞∞∞0) D(4)=(04571414∞∞0631015∞∞∞04∞9∞∞∞3063∞∞∞∞4032∞∞∞∞202∞∞∞∞∞∞0) D(5)=(04571310∞∞06396∞∞∞04107∞∞∞3063∞∞∞74032∞∞∞∞202∞∞∞∞∞∞0) D(6)=(0457131015∞0639611∞∞0410712∞∞30638∞∞74032∞∞96202∞∞∞∞∞∞0) D(7)=(0457121012∞063868∞∞04979∞∞30535∞∞74032∞∞96202∞∞∞∞∞∞0)=D(8)