Question

In: Computer Science

Let L = {x = a r b s c t | r + s =...

Let L = {x = a r b s c t | r + s = t, r, s, t ≥ 0}. Give the simplest proof you can that L is not regular using the pumping lemma.

Solutions

Expert Solution

Given Language L = { ar bs ct | r+s=t ,r,s,t >=0 }

Pumping Lemma states that

For any language L, there exists an integer n, such that for all x ∈ L with |x| ≥ n, there exists u,v, w ∈ Σ*, such that x = uvw, and
(1) |uv| ≤ n
(2) |v| ≥ 1
(3) for all i ≥ 0: uv^iw ∈ L

To prove that the language is not regular we have show that there exist alteast one string such that it is not in the language (i.e it has to fail pumping lemma Test

Let X=abc2 ∈ L (r=s=1 and t=2) where the pumping length =3

we are spilting X into u ,v ,w such u = a, v = b and w = c2

it satisfies all the conditions of the pumping lemma so it string which belong the language L

(  uv^iw when i=0 i.e string will be 'ab' also belongs to the language)

so here we will be pumping the v and see whether the obtained string is in language or not

if we find atleat one string which is not the language after pumping v then is the language won't be regular

uv^iw when i=2 i,e string is ab2c2 doesn't belong to language because it fails satisy the r+s=t so the string is not in the language

so we tell that the given language L is not Regular

Hope it is helpful for you. If so please upvote and for any queries please drop a comment :-)


Related Solutions

Let L = {x = a^rb^s | r + s = 1mod2}, I.e, r + s...
Let L = {x = a^rb^s | r + s = 1mod2}, I.e, r + s is an odd number. Is L regular or not? Give a proof that your answer is correct.
L = {a r b s | r, s ≥ 0 and s = r 2}....
L = {a r b s | r, s ≥ 0 and s = r 2}. Show that L is not regular using the pumping lemma
Player 1 chooses T, M, or B. Player 2 chooses L, C, or R. L C...
Player 1 chooses T, M, or B. Player 2 chooses L, C, or R. L C R T 0, 1 -1, 1 1, 0 M 1, 3 0, 1 2, 2 B 0, 1 0, 1 3, 1 (a) Find all strictly dominated strategies for Player 1. You should state what strategy strictly dominates them. (b) Find all weakly dominated strategies for Player 2.  You should state what strategy weakly dominates them. (c) Is there any weakly dominant strategy for player...
Let L = {0 r | r = s 2 , s a positive integer}. Give...
Let L = {0 r | r = s 2 , s a positive integer}. Give the simplest proof you can that L is not regular using the pumping lemma.
Let A = R x R, and let a relation S be defined as: “(x​1,​ y​1)​...
Let A = R x R, and let a relation S be defined as: “(x​1,​ y​1)​ S (x​2,​ y​2)​ ⬄ points (x​1,​ y​1)​ and (x​2,​ y​2)​are 5 units apart.” Determine whether S is reflexive, symmetric, or transitive. If the answer is “yes,” give a justification (full proof is not needed); if the answer is “no” you ​must​ give a counterexample.
1. Let U = {r, s, t, u, v, w, x, y, z}, D = {s,...
1. Let U = {r, s, t, u, v, w, x, y, z}, D = {s, t, u, v, w}, E = {v, w, x}, and F = {t, u}. Use roster notation to list the elements of D ∩ E. a. {v, w} b. {r, s, t, u, v, w, x, y, z} c. {s, t, u} d. {s, t, u, v, w, x, y, z} 2. Let U = {r, s, t, u, v, w, x, y, z},...
Let f : R → S and g : S → T be ring homomorphisms. (a)...
Let f : R → S and g : S → T be ring homomorphisms. (a) Prove that g ◦ f : R → T is also a ring homomorphism. (b) If f and g are isomorphisms, prove that g ◦ f is also an isomorphism.
Let V = { S, A, B, a, b, λ} and T = { a, b...
Let V = { S, A, B, a, b, λ} and T = { a, b }, Find the languages generated by the grammar G = ( V, T, S, P } when the set of productions consists of: S → AB, A → aba, B → bab. S → AB, S → bA, A → bb, B → aa. S → AB, S → AA, A → Ab, A → a, B → b. S → A, S →...
Take the Laplace transform of the following initial value and solve for X(s)=L{x(t)}X(s)=L{x(t)}: x′′+16x={sin(πt),0} 0≤t<1 1≤t...
Take the Laplace transform of the following initial value and solve for X(s)=L{x(t)}X(s)=L{x(t)}: x′′+16x={sin(πt),0} 0≤t<1 1≤t x(0)=0 x′(0)=0. a) X(s)=   Now find the inverse transform to find b) x(t)= Use u(t−a) for the Heaviside function shifted a units horizontaly.
Let T : Pn → R be defined by T(p(x)) = the sum of all the...
Let T : Pn → R be defined by T(p(x)) = the sum of all the the coefficients of p(x). Show that T is a linear transformation with dim(ker T) = n and conclude that {x − 1, x2 − 1, . . . , x^n − 1} is a basis of ker T.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT