Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Consider the language B=L(G), where Gis the grammar given in

Exercise 2.13. The pumping lemma for context-free languages, Theorem 2.34,

states the existence of a pumping length p for B . What is the minimum value

of p that works in the pumping lemma? Justify your answer.

Short Answer

Expert verified

The minimum values of p that works in the pumping lemma is 3.

Step by step solution

01

Explain Pumping Lemma

Pumping lemma can be used for both regular languages and the Context-free

languages. For Context-free languages, it can pump two substrings any number

of times and be in the same language.

02

What is the minimum value of p that works in the pumping lemma?Justify your answer.

Consider the language B=L(G), where G is the grammar as follows,

G = (V,,R,S) defined as,V=S,T,U;=0,# and R is,
STT|U
T0T|T0|#
U0U00|#

Theorem 2.34, states that the pumping lemma p for the CFL L , is the minimum

length of any string s in the context-free language L such that it may be split into

five pieces s=abi cdje, that fulfil the following conditions,

The string s is the part of L ,for all i0

The pumped string b and d must be |bd|>0.

|bcd|p

Consider the string s=##0 , with the substring a=b=θ=ε,c=##,d=0

The pumping length p is ,

|bcd|=|##0|

The theorem conditions are satisfies as follows,

|bd|=|ε0|=3 10

=|0|

. =1, where,

|bcd|=|ε##0|

=|##0|

=3

For i0 , abi cdieεL

Consider, i=0, the string s=uv0xy0z will lie in the language L

. Thus, the theorem

conditions have been satisfied.

Therefore, The minimum values of p that works in the pumping lemma is 3. And the

string satisfies the conditions of the theorem.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free