Curs 8 - Drumuri de cost minim [pdf] - Andrei
Curs 8 - Drumuri de cost minim [pdf] - Andrei
Curs 8 - Drumuri de cost minim [pdf] - Andrei
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Obiective<br />
“Descoperirea” algoritmilor <strong>de</strong><br />
i<strong>de</strong>ntificare a drumurilor <strong>de</strong> <strong>cost</strong> <strong>minim</strong>.<br />
Recunoașterea caracteristicilor acestor<br />
algoritmi. l it i<br />
Remin<strong>de</strong>r(I)<br />
Proiectarea Algoritmilor 2010<br />
G = (V,E);<br />
s∈V – nodul sursă;<br />
w:E-> ℜ funcție <strong>de</strong> <strong>cost</strong> asociată arcelor<br />
grafului;<br />
<strong>cost</strong>(u..v) = <strong>cost</strong>ul drumului u..v (aditiv);<br />
d(v) = <strong>cost</strong>ul drumului <strong>de</strong>scoperit s..v;<br />
δ(u,v) = <strong>cost</strong>ul drumului optim u..v; δ(u,v)=∞<br />
dacă v∉R(u)<br />
δ(u,v) = Σw(x,y), (x,y) ∈ u..v (u..v fiind drumul<br />
optim);<br />
p(v) = pre<strong>de</strong>cesorul lui v pe drumul s..v.<br />
Proiectarea Algoritmilor 2010<br />
5/8/2010<br />
2