27.12.2014 Views

Lecţii complementare de teoria grafurilor

Lecţii complementare de teoria grafurilor

Lecţii complementare de teoria grafurilor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

START<br />

cuplaj<br />

arbitrar<br />

<br />

Este X<br />

saturată <br />

DA<br />

STOP<br />

saturează<br />

pe <br />

S<br />

T∅<br />

NU<br />

∈ − nesaturat<br />

STOP<br />

| | ||<br />

DA<br />

= <br />

LL <br />

NU<br />

∈ ∖ <br />

SS <br />

TT <br />

= ∆<br />

NU<br />

lanţ L=, … , <br />

− alternant <strong>de</strong>schis<br />

Este <br />

− saturat <br />

DA<br />

∈ <br />

LL <br />

Exemplu:<br />

Fie graful = , … , ⨃ , … , , . Aplicăm<br />

acestuia algoritmul ungar în ve<strong>de</strong>rea obţinerii unui cuplaj<br />

perfect.<br />

Pornim cu = .<br />

X saturată <br />

NU: z = , S={ }, T=∅<br />

= <br />

NU: y = ; L = [ ]<br />

− saturat <br />

NU: = , ;<br />

= , <br />

24

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

Saved successfully!

Ooh no, something went wrong!