20.11.2014 Views

Limbaje Formale, Automate şi Compilatoare

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

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

Automatul determinist minimal<br />

Algoritm pentru determinarea relaţiei ρ<br />

Fie A = (Q,Σ,δ, q 0 , F), Q = {q 0 , q 1 ,...,q n }<br />

Tablou separabil[q i , q j ]:<br />

separabil[q i , q j ] = 1 ddacă q i sep q j (separabil[q i , q j ] = 0 ddacă<br />

q i ρq j )<br />

iniţial separabil[q i , q j ] = 1 ddacă q i ∈ F, q j ∉ F (sau invers)<br />

dacă există a ∈ Σ cu δ(q i , a) sep δ(q j , a), atunci q i sep q j , adică :<br />

dacă separabil[q i , q j ] = 0 <strong>şi</strong> există a ∈ Σ cu<br />

separabil[δ(q i , a),δ(q j , a)] = 1, atunci separabil[q i , q j ] = 1<br />

LFAC (2014-15) Curs 3 23 / 30

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

Saved successfully!

Ooh no, something went wrong!