/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q29E Use the pumping lemma to show th... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Use the pumping lemma to show that the following languages arenot regulara. â¶Ä‰â¶Ä‰A1={0η1η2η|n≥0}b. â¶Ä‰â¶Ä‰A2={Ó¬Ó¬Ó¬|Ӭ∈{a,b}*}c. â¶Ä‰â¶Ä‰A3={a2η|n≥0}(Here,a2ηmeansastringof2η a's.)a. â¶Ä‰â¶Ä‰A1={0η1η2η|n≥0}b. â¶Ä‰â¶Ä‰A2={Ó¬Ó¬Ó¬|Ӭ∈{a,b}*}c. â¶Ä‰â¶Ä‰A3={a2η|n≥0}(Here,a2ηmeansastringof2η a's.)

Short Answer

Expert verified
  1. A1is not a regular language.
  2. A2is not a regular language.
  3. A3is not a regular language.

Step by step solution

01

Introduction 

If A is the regular language and there is a number F ( the pumping length)

where S is a any string in A at least P length, then S may be divided into three pieces, S=xyz.

It satisfying the following conditions.

1. For each.i≥0,xy'z∈A

2.|y|>0, and

3. |xy|≤p.

02

The given language is A1={0n1n2n|n≥0} .

(a)

Assume A is a regular language.

Let P be the pumping length given by the pumping lemma consider a stringS=0p1p2p∈A1.

|S|>Pso, by pumping lemma, takeS=0p1p2p∈xyzsuch that|xy|≤p,|y|>0consider the following 2 possibilities:

Let001122be the string that belongs toA1.S=0p1p2p=001122. The pumping length of the string is 2. To satisfy the conditions of the pumping lemma,x=0, y=0,z=1122.

S=001122 â¶Ä‰â¶Ä‰â€‰=0x0y1122z

Pump the middle part such thatxyiz(i≥0). Fori=2 , the Y becomes00. The string after pumping is0001122.

S=00I(1122) â¶Ä‰â¶Ä‰â€‰â¶Ä‰â¶Ä‰â€‰=0x00y1122z â¶Ä‰â¶Ä‰[wheni=2]

The string0001122∉A1because the string that is accepted by the language should have equal number of 0 ’s, 1’s and 2’s. It is a contradiction. So, the pumping lemma is violated.

Therefore, A1is not a regular language.

03

Consider the language,A2={ωωω|ω|{a,b}*} .

(b)

AssumeA2is a regular language.

Let P be the pumping length given by the pumping lemma.

Consider a string.S=apbapbapb∈A2

By pumping lemma, this string can be divided into three piecesxyzsuch that|xy|≤p,|y|>0 and.xyiz∈A2∶Äi≥0

So.S=apbapbapb=xyz

Let aabaabaab be the string that belongs toA2. The pumping length of the string is 2. To satisfy the conditions of the pumping lemma,x=a,y=a,z=baabaab.

S=aabaabaab=axaybaabaabz

Pump the middle part such thatxyiz(i≥0). Fori=2 , the Y becomesaa. The string after pumping is aaabaabaab.

S=(a)a'(baabaab)=axaybaabaabz â¶Ä‰â¶Ä‰â€‰â¶Ä‰â¶Ä‰[when â¶Ä‰i=2]

The stringaaabaabaab∉A2 .It is a contradiction. So, the pumping lemma is violated.

Therefore, A2is not a regular language.

04

Step 4:  A3={a2n|n≥0}(Here,a2n means a string of 2n a’s).

(C)

Assume thatA3is regular language.

Letbe the pumping length given by pumping lemma consider a string|S|=a2p∈A3. And|S|>p

By pumping lemma, this string can be divided into three piecesxyzsuch that|xy|≤p,|y|>0andxyiz∈A2∶Äi≥0

Let aaaa be the string that belongs toA3. The pumping length of the string is 2. To satisfy the conditions of the pumping lemma,x=a,y=a,z=aa.

S=aaaa â¶Ä‰â¶Ä‰â€‰â¶Ä‰=axayaaz

Pump the middle part such that xyiz(i≥0). Fori=2 , the becomes aa. The string after pumping is aaaaa.

S=(a)a'(aa)=axaayaaz â¶Ä‰â¶Ä‰â€‰[when i= 2]

The stringaaaaa∉A3.It is a contradiction. So, the pumping lemma is violated.

Therefore,A3 is not a regular language.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

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

Get started for free

Most popular questions from this chapter

If A is any language, let A12− be the set of all first halves of strings in A so that ,

A12-={x|forsomey,|x|=|y|andxy∈A}.

Show that if A is regular, then so is A12−

The construction in Theorem 1.54 shows that every GNFA is equivalent to a GNFA with only two states. We can show that an opposite phenomenon occurs for DFAs. Prove that for every k>1, a language xAk⊆{0,1}exists that is recognized by a DFA with k states but not by one with onlyk-1 states

Question:

a. Let B={1ky|y∈{0,1}*and ycontainsatleastk1s,fork⩾1}. Show that B is a regular language.

b. Let C={1ky|y∈{0,1}* and ycontainsatmostk1s,fork⩾1}. Show that C isn’t a regular language.

The pumping lemma says that every regular language has a pumping length P , such that every string in the language can be pumped if it has length p or more. If P is a pumping length for language A, so is any length p'⩾pThe minimum pumping length for A is the smallest p that is a pumping length for A . For example, if A=01*, the minimum pumping length is 2.The reason is that the string s=0is in A and has length 1 yet s cannot be pumped; but any string A in of length 2 or more contains a 1 and hence can be pumped by dividing it so that x=0,y=1,andzis the rest. For each of the following languages, give the minimum pumping length and justify your answer.

a).0001*b).0*1*c).001∪0*1*d).0*1+0+1*∪10*1

role="math" localid="1660797009042" e).(01)*f).∈g).1*01*01*h).10(11*0)*

i).1011j).∑*

Let Σ2be the same as in Problem 1.33. Consider each row to be a binary number and let D={w∈Σ*2|the top row of w is a larger number than is the bottom row}. For example, 00101100∈D, but 000111006∈D. How that D is regular.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.