Exercício 03.10
Desenvolva um Autômato Finito Não-Determinístico (AFN) sobre o alfabeto Σ = {x, y, z}, que reconheça a linguagem L = {w | w possui xyz ou zyx ou yzy como prefixo, xyy ou xzx ou xxz como subpalavra e yxy ou yzy ou yxx como sufixo}.
Desenvolva um Autômato Finito Não-Determinístico (AFN) sobre o alfabeto Σ = {x, y, z}, que reconheça a linguagem L = {w | w possui xyz ou zyx ou yzy como prefixo, xyy ou xzx ou xxz como subpalavra e yxy ou yzy ou yxx como sufixo}.
M = ({x, y, z}, {q0, q1, q2, q3, q4, q5, q6, q7, q8, q9, q10, q11, q12, q13, q14, q15, q16, q17, q18, q19, q20, q21}, δ, q0, {q21})
δ | x | y | z |
---|---|---|---|
q0 | {q1} | {q5} | {q3} |
q1 | - | {q2} | - |
q2 | - | - | {q7} |
q3 | - | {q4} | - |
q4 | {q7, q8, q10, q12} | - | - |
q5 | - | - | {q6} |
q6 | - | {q7} | - |
q7 | {q7, q8, q10, q12} | {q7} | {q7} |
q8 | - | {q9} | - |
q9 | - | {q14, q15, q17, q19} | - |
q10 | - | - | {q11} |
q11 | {q14} | - | - |
q12 | {q13} | - | - |
q13 | - | - | {q14} |
q14 | {q14} | {q14, q15, q17, q19} | {q14} |
q15 | {q16} | - | - |
q16 | - | {q21} | - |
q17 | - | - | {q18} |
q18 | - | {q21} | - |
q19 | {q20} | - | - |
q20 | {q21} | - | - |
q21 | - | - | - |