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.

6.3. ALGORITMOS DE DECISIÓN 115Ejemplo 83 Consi<strong>de</strong>re la gramática libre <strong>de</strong> contexto que se indica a continuación:S → AB|BCA → BA|aB → CC|bC → AB|ay el string baaba.V ijjb a a b ai ✲1 2 3 4 51 B A, C A, C B A, C2 S, A B S, C S, A3 ∅ B B❄4∅ S, A, C5 S, A, CPara calcular V 24 :V 21 = {A, C} V 33 = {B} ⇒ S, CV 22 = {B} V 42 = {S, A} ⇒ AV 23 = {B} V 51 = {A, C} ⇒ A, Ses <strong>de</strong>cir, V 24 = {S, A, C}.Ya que S ∈ V 15 , se concluye que el string baaba ∈ L(G).✷

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

Saved successfully!

Ooh no, something went wrong!