Question

In: Computer Science

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.

Solutions

Expert Solution

L = {an bm | n > m} is not regular language.

Proof: using pumping lemma

Step (1): Choose string W = an bm where (n + m) ≥ p and n = m + 1.

Is this choice of W is valid according to pumping lemma?

Yes, such W is in language because number of a = n > number of b =m . W is in language and sufficiently large >= p.

Step (2): Now chose a y to generate new string for all i >= 0.

And no choice is possible for y this time! Why?

First, it is essay to understand that we can't have b symbol in y because it will either generate new strings out of pattern or in resultant string total number of b will be more than total number of a symbols.

Second, we can't chose y = some a's because with i=0 you would get a new string in which number of a s will be less then number b s that is not possible in language.(remember number of a in W was just one more then b so removing any a means in resultant string N(a)=N(b) that is not acceptable because n>m)

So in we could find some W those are sufficiently large but using that we can't generate new string in language that contradict with pumping lemma property of regular language hence then language {an bm | n > m} is not a regular language indeed.

Hence, L = (bman) , 0 ≤ m < n-2 isn’t regular also.


Related Solutions

Prove that the language L={(M, N): M is a Turing machine and N is a DFA...
Prove that the language L={(M, N): M is a Turing machine and N is a DFA with L(M) =L(N)} is undecidable. You need to derive a reduction from Atm={(M, w)|Turing machine M accepts w} to L. (In layman's terms please, no other theorems involved)
Write a regular expression for the language of all strings over {a,b} in which every b...
Write a regular expression for the language of all strings over {a,b} in which every b is directly preceded by a, and may not be directly followed by more than two consecutive a symbols.
S is the language over S = {a, b, c, d, e} containing all strings that...
S is the language over S = {a, b, c, d, e} containing all strings that start with at least 2 a's, followed by any number of b's, followed by 5 c's, followed by an odd number of d's, followed by an even number of e's.  For example, S contains aaabbcccccdee, aaaacccccdddeeee, and so on.  Write S symbolically in the manner of section 6.1, problem # 12 a) - f).  Example 6.12 will also be helpful. bonus: How many strings in {000, 11}*...
Question 1 a) Determine whether the language {a n b m c n | n >...
Question 1 a) Determine whether the language {a n b m c n | n > 0} is regular or not using pumping Lemma. b) Prove that the language {(ai bn | i, n > 0, i = n or i = 2n} is not regular using the Pumping Lemma.
1. Prove the language L is not regular, over the alphabet Σ = {a, b}. L...
1. Prove the language L is not regular, over the alphabet Σ = {a, b}. L = { aib2i : i > 0} 2) Prove the language M is not regular, over the alphabet Σ = {a, b}. M = { wwR : w is an element of Σ* i.e. w is any string, and wR means the string w written in reverse}. In other words, language M is even-length palindromes.
Prove a language {wwR0m where wR is the reverse of w and w has m 0’s...
Prove a language {wwR0m where wR is the reverse of w and w has m 0’s } is not context-free using the pumping lemma.
b belongs to N. Prove that if {7m, m belong to Z} is not belongs to...
b belongs to N. Prove that if {7m, m belong to Z} is not belongs to {ab, a is integer}, then b =1
Let A be an m x n matrix. Prove that Ax = b has at least...
Let A be an m x n matrix. Prove that Ax = b has at least one solution for any b if and only if A has linearly independent rows. Let V be a vector space with dimension 3, and let V = span(u, v, w). Prove that u, v, w are linearly independent (in other words, you are being asked to show that u, v, w form a basis for V)
Let {an}n∈N be a sequence with lim n→+∞ an = 0. Prove that there exists a...
Let {an}n∈N be a sequence with lim n→+∞ an = 0. Prove that there exists a subsequence {ank }k∈N so that X∞ k=1 |ank | ≤ 8
Let x, y ∈ R. Prove the following: (a) 0 < 1 (b) For all n...
Let x, y ∈ R. Prove the following: (a) 0 < 1 (b) For all n ∈ N, if 0 < x < y, then x^n < y^n. (c) |x · y| = |x| · |y|
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT