13.07.2015 Aufrufe

Algorithmus von Prim am Beispiel 4 3 2 1 0 5

Algorithmus von Prim am Beispiel 4 3 2 1 0 5

Algorithmus von Prim am Beispiel 4 3 2 1 0 5

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

1/1<strong>Algorithmus</strong> <strong>von</strong> <strong>Prim</strong> <strong>am</strong> <strong>Beispiel</strong>∞ ∞ ∞1 14 3 21 4 3 2 1506 1∞ 0 ∞1Q := Vfor each u ∈ Q do key[u]=∞key[r]=0; π[r]=NILwhile Q ≠ {} dou :=Extract-Min(Q)for each v ∈ Adj(u) doif v ∈ Q and w(u, v)

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!