13.04.2013 Views

Algoritmos e complexidade Notas de aula - Arquivo Escolar

Algoritmos e complexidade Notas de aula - Arquivo Escolar

Algoritmos e complexidade Notas de aula - Arquivo Escolar

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.

9.1. Fluxos em re<strong>de</strong>s<br />

Figura 9.5.: Reduções entre variações do problema do fluxo máximo. Esquerda:<br />

Fontes e <strong>de</strong>stinos múltiplos. Direita: Limite inferior e<br />

superior para a capacida<strong>de</strong> <strong>de</strong> arcos.<br />

O problema (9.3) po<strong>de</strong> ser reduzido para um problema <strong>de</strong> fluxo máximo simples<br />

em G ′ = (V ′ , E ′ , c ′ ) (veja Fig. 9.5(a)) com<br />

V ′ = V ∪ {s ∗ , t ∗ }<br />

E ′ = E ∪ {(s ∗ , s) | s ∈ S} ∪ {(t, t ∗ ) | t ∈ T } (9.4)<br />

c ′ e =<br />

⎧<br />

⎪⎨ ce<br />

c({s},<br />

⎪⎩<br />

e ∈ E<br />

¯ {s}) e = (s∗ c(<br />

, s)<br />

¯ {t}, {t}) e = (t, t∗ )<br />

Lema 9.10<br />

Se f ′ é solução máxima <strong>de</strong> (9.4), f = f ′ |E é uma solução máxima <strong>de</strong> (9.3).<br />

Conversamente, se f é uma solução máxima <strong>de</strong> (9.3),<br />

f ′ e =<br />

é uma solução máxima <strong>de</strong> (9.4).<br />

⎧<br />

⎪⎨ fe e ∈ E<br />

f(s)<br />

⎪⎩<br />

e = (s∗ −f(t)<br />

, s)<br />

e = (t, t∗ )<br />

Prova. Supõe f é solução máxima <strong>de</strong> (9.3). Seja f ′ uma solução <strong>de</strong> (9.4)<br />

com valor f ′ (s ∗ ) maior. Então f ′ |E é um fluxo válido para (9.3) com solução<br />

f ′ |E(S) = f ′ (s ∗ ) maior, uma contradição.<br />

Conversamente, para cada fluxo válido f em G, a extensão f ′ <strong>de</strong>finida acima<br />

é um fluxo válido em G ′ com o mesmo valor. Portanto o valor do maior fluxo<br />

em G ′ é maior ou igual ao valor do maior fluxo em G. <br />

207

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

Saved successfully!

Ooh no, something went wrong!