11.07.2015 Views

Teor´ıa de Autómatas y Lenguajes Formales

Teor´ıa de Autómatas y Lenguajes Formales

Teor´ıa de Autómatas y Lenguajes Formales

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

64 CHAPTER 3.ACEPTACIÓN Y GENERACIÓN DE LENGUAJES REGULARESEjemplo 60 Se construirá una expresión regular que <strong>de</strong>scribe el lenguaje aceptado por el siguiente AFD✬★✥✲ q 01✧✦✻ 0✧1✬✩★✥✲ q 12✫✪✧✦0, 1✌ ✻✍✩✬✩★✥❄✲ q3✫✪✧✦✕Interesa r = r 3 12 + r3 13r 3 12 = r 2 12 + r2 13 (r2 33 )∗ r 2 32r 2 12 = r 1 12 + r 1 12(r 1 22) ∗ r 1 22r 1 12 = r 0 12 + r0 11 (r0 11 )∗ r 0 12= 0 + ε(ε) ∗ 0 = 0r 1 22 = r 0 22 + r 0 21(r 0 11) ∗ r 0 12 = ε + 0ε ∗ 0 = ε + 00r 2 12 = 0 + 0(ε + 00) ∗ (ε + 00) = 0 + 0(ε + 00) + = 0(00) ∗r 2 13 = r 1 13 + r1 13 (r1 22 )∗ r 1 23r 1 13 = r 0 13 + r 0 11(r 0 11) ∗ r 0 13 = 1 + ε(ε) ∗ 1 = 1r 1 23 = r 0 23 + r 0 21(r 0 11) ∗ r 0 13 = 1 + 0(ε) ∗ 1 = 1 + 01r13 2 = 1 + 0(ε + 00) ∗ (1 + 01) = 1 + 0(00) ∗ 1 = ε= 1 + 00 ∗ 1 = 0 ∗ 1r 2 33 = r 1 33 + r1 32 (r1 22 )∗ r 1 23r 1 33 = r 0 33 + r0 31 (r0 11 )∗ r 0 13 = ε + ∅(ε) ∗ 1 = εr 1 32 = r 0 32 + r0 31 (r0 11 )∗ r 0 12 = (0 + 1) + ∅(ε) ∗ 0 = 0 + 1r 2 33 = ε + (0 + 1)(ε + 00) ∗ (1 + 01) = ε + (0 + 1)0 ∗ 1r 2 32 = r 1 32 + r1 32 (r1 22 )∗ r 1 22 = (0 + 1) + (0 + 1)(ε + 00) ∗ (ε + 00)= 0 + 1 + (0 + 1)(00) ∗ = (0 + 1)(00) ∗luegor 3 12 = 0(00) ∗ + 0 ∗ 1(ε + (0 + 1)0 ∗ 1) ∗ (0 + 1)(00) ∗= 0(00) ∗ + 0 ∗ 1((0 + 1)0 ∗ 1) ∗ (0 + 1)(00) ∗similarmente,

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

Saved successfully!

Ooh no, something went wrong!