Let A/B={ω|ωχAforsomeχB}.Show that if is regular and is any language, thenA/B is regular.

Short Answer

Expert verified

A/Bis a regular language.

Step by step solution

01

To Regular recognize the language

Given language isA/B={ω|ωχAforsomeχB}

Here, A is a regular language and B is any language.

Since A is a regular language, some DFA will be recognize the language A .

LetM=(Q,,δ,q0F)be that which recognizes.

Here, Q is the set of states.

is set of alphabets = of the alphabets for A and B.

δ is the transition function.

q0is the start state.

F is the set of final states.

02

To Prove regular language and construct

To prove A/B is a regular language, construct a DFA, that recognizes the languageA/B

Let M'=(Q',',δ0',F')be the DFA, that recognizes A/B.

Q'= set of states =role="math" localid="1663154225010" Q

=set of alphabets =

δ'= transition function =δ

q0'=start state=q0

F'={qQ|χB, such that M goes from q to some sate in F on reading χ}

Thus, a DFA, M'to recognize the language A/B has been constructed.

Hence, A/Bis 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 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

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.

Use the pumping lemma to show that the following languages arenot regulara.   A1={0η1η2η|n0}b.   A2={ωωω|ω{a,b}*}c.   A3={a2η|n0}(Here,a2ηmeansastringof2ηa's.)a.   A1={0η1η2η|n0}b.   A2={ωωω|ω{a,b}*}c.   A3={a2η|n0}(Here,a2ηmeansastringof2ηa's.)

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).0010*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Σ={0,1,+,=} and

ADD ={x=y+z|x,y,zarebinaryintegers,andxisthesumofyandz}.

Show that ADD is not regular.

Question: The following are the state diagrams of two DFAs , M1 and M2 . Answer the following questions about each of these machines.

a. What is the start state ?

b. What is the set of accept states ?

c. What sequence of states does the machine go through on input aabb ?

d. Does the machine accept the string aabb ?

e. Does the machine accept the string ε ?

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