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

If A is a set of natural numbers and k is a natural number greater than 1, let

Bk(A)={w|wistherepresentationinbasekofsomenumberinA}.

Here, we do not allow leading 0s in the representation of a number. For example ,B2({3,5})={11,101}and B3({3,5})={10,12}.Give an example of a set A for which B2(A)is regular butB2(A) is not regular. Prove that your example works.

Short Answer

Expert verified

BkA=w|wistherepresentationinbasekofsomenumberinAis not regular is proved.

Step by step solution

01

Regular language.

A language is regular if it can be expressed in terms of regular expression.A regular expression can also be described as a sequence of pattern that defines a string. Regular expressions are used to match character combinations in strings.

02

Step 2:

BkA=w|wistherepresentationinbasekofsomenumberinA.Here from the question the examples are given as,,B2{3,5}=11,101,B3{3,5}=10,12.not allow leading zeros and representation of number.

Let [z]3be the number represented by the base-three numeral z. Since the set of numbers,

A={2n-1โˆฃnโˆˆN}is represented in binary by the regular expression 1*1*if we prove that,

L=B3(A)={zโˆˆ{0,1,2}*โˆฃnโˆˆN.[z]3=2n-1}โˆฉ{1,2}ร—{0,1,2}*

is not regular.

Use the pumping lemma for regular languages. Suppose L is regular and is a word in L longer than the pumping length L . As such,

ay>0bxyโฉฝp,andcโˆ€i>0,xyizโˆˆL.

L={anbncn|nโฉพ0}z=uvwxy,z=anbncn{n=1,z=abc}|z|=3n>n

By applying pumping lemma to this grammar this grammar does not follow the property of pumping lemma and it is proved that this given language and its stringBkA=w|wistherepresentationinbasekofsomenumberinAis not 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 Vaia!

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

For any string w=w1,w2,ยทยทยท,wn, the reverse of w, written wR , is the string w in reverse order,wnยทยทยทw2w1. For any language A,letAR=wR|wA.Show that if A is regular, so is AR.

Let โˆ‘={0,1}. Let WWk={ww|wโˆˆโˆ‘*โ€‰andโ€‰wโ€‰isโ€‰ofโ€‰lengthโ€‰k}.

  1. Show that for eachk , no DFA can recognizeWWk with fewer than2k states.
  2. Describe a much smaller NFA for WWkยฏ, the complement of WWk.

Question:Read the informal definition of the finite state transducer given in Exercise 1.24. Prove that no FST can output WR for every input if the input and output alphabets are {0,1}

Give regular expressions generating the languages of Exercise 1.6.

a. {begins with a 1 and ends with a 0}

b. { w|wcontains at least three 1s}

c. { w|wcontains the substring 0101 (i.e., w = x0101y for some x and y)}

d. { w|whas length at least 3 and its third symbol is a 0}

e. { w|wstarts with 0 and has odd length, or starts with 1 and has even length}

f. { w|wdoesnโ€™t contain the substring 110}

g. { w|the length of wis at most 5}

h. { w|wis any string except 11 and 111}

i. { w|every odd position of w is a 1 }

j. { contains at least two 0s and at most one 1}

k. {ฮต,0}

l. { w|wcontains an even number of 0 s, or contains exactly two 1s}

m. The empty set

n. All strings except the empty string

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).โˆ‘*

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.

Sign-up for free