简体   繁体   中英

How to Pumping lemma for Regular language

I have this problem that I need to prove that the language is not regular by using pumping lemma, but no matter how much I read how to do it, I still don't understand. Could someone please help how to solve this?

Show that L = { a^ncb^m | n, m are natural numbers and n < m} L = { a^ncb^m | n, m are natural numbers and n < m} is not regular.

Choose a^pcb^2p. This string is in the language since p < 2p. Pumping any non-empty substring in the first p characters of this string up by a factor of more than p is guaranteed to cause the number of a to increase beyond the number of b. This contradicts the claim of the pumping lemma that doing that on a string in a regular language must give another string in that language. So, the language cannot have been regular.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM