문제

When asked to prove the Language is regular, where do you start?

What methods do we have to prove this Language is regular?

Language {a^n | n<>2 and n<>≡ 3(mod 7)}

도움이 되었습니까?

해결책

As a hint: if you make a cycle of 7 states linked in a ring and number them 0, 1, 2, 3, ..., 6, what can you say about any string w that ends up in state number k? Based on that, could you make some of these states accepting to get the language you want?

Hope this helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top