27.10.2014 Views

slides

slides

slides

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DP on Graphs<br />

• optimization problems on graphs<br />

=> generic shortest-path problem<br />

• weighted directed graph G=(V, E) with a function w<br />

that assigns each edge a weight from a semiring<br />

• compute the best weight of the target vertex t<br />

• generic update along edge (u, v)<br />

w(u, v) d(v) ⊕ = d(u) ⊗ w(u, v)<br />

• how to avoid cyclic updates?<br />

•<br />

only update when d(u) is fixed<br />

d(v) ← d(v) ⊕ (d(u) ⊗ w(u, v))<br />

Liang Huang<br />

12<br />

Dynamic Programming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!