Question

Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m...

Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m < n-2 isn’t regular.

(I'm using the ^ notation but your free to make yours bman instead of (b^m)(a^n) )

Use the pumping lemma for regular languages.

Homework Answers

Answer #1

To prove that L is not a regular language, we will use a proof by contradiction. Assume that L is a regular language. Then by the Pumping Lemma for Regular Languages, there exists a pumping length p for L such that for any sring s ∈ L where |s| ≥ p, s = xyz subject to the following conditions:

(a) |y| > 0

(b) |xy| ≤ p, and

(c) ∀i > 0, xyi z ∈ L.

Choose s = bpap . Clearly, |s| ≥ p and s ∈ L. By condition (b) above, it follows that x and y are composed only of zeros. By condition (a), it follows that y = bk for some k > 0. Per (c), we can take i = 0 and the resulting string will still be in L. Thus, xy0 z should be in L. xy0 z = xz = b(p−k)ap . But, this is clearly not in L. This is a contradiction with the pumping lemma. Therefore our assumption that L is regular is incorrect, and L is not a regular language.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m...
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m < n-2 isn’t regular. Use the pumping lemma for regular languages.
Are the following languages over {a, b} regular? If they are then prove it. If they...
Are the following languages over {a, b} regular? If they are then prove it. If they are not prove it with the Pumping Lemma {an bm | m != n, n >= 0} {w | w contains the substring ‘aaa’ once and only once } Clear concise details please, if the language is regular, provide a DFA/NFA along with the regular expression. Thank you. Will +1
Use the pumping lemma for regular languages to prove that the following language is not regular....
Use the pumping lemma for regular languages to prove that the following language is not regular. { 0n1x0x1n | n >= 0 and x >= 0 }
prove that the language L over {c,d,e} is not context free. (using pumping lemma for context...
prove that the language L over {c,d,e} is not context free. (using pumping lemma for context free languages) L= {w ∈ {c,d,e}* : number of c's, number of d's, and number of e's have a common factor greater than 1}
Recursively define strings in the following language: A = {0^(n)1^(n+m)0^(m) | n,m >= 0} Then create...
Recursively define strings in the following language: A = {0^(n)1^(n+m)0^(m) | n,m >= 0} Then create a context-free grammar to describe the language.
Test the language L2.16={(ab^n,n>0) with the pumping lemma and show that it is regular.
Test the language L2.16={(ab^n,n>0) with the pumping lemma and show that it is regular.
Use pumping lemma to prove that L3a = {ab^m ab^m a| m>0} is non-regular
Use pumping lemma to prove that L3a = {ab^m ab^m a| m>0} is non-regular
Consider the language defined by L = {aibmcn | i > 0, n > m >...
Consider the language defined by L = {aibmcn | i > 0, n > m > 0 } Is L regular or not? Prove it
Let s and p be two particular strings over an alphabet Σ. Prove that the following...
Let s and p be two particular strings over an alphabet Σ. Prove that the following language M = {w ∈ Σ ∗ | w contains u as a substring but does not contain v as a substring} is regular. plz provide DFA and also simplified the DFA thx !
Use CFG or PDA to prove L= {0a1b0c : b ≠ a + c; a, b,...
Use CFG or PDA to prove L= {0a1b0c : b ≠ a + c; a, b, c ≥ _0} is a context-free language. Please add your explanation, thank you. If you can use the theorem(union of CFL and regular language = CFL) is also welcomed.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT