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

Let A be any language. Define DROP-OUT(A)to be the language containing all strings that can be obtained by removing one symbol from a string in A. Thus,DROP-OUT(A)={xz|xyzAwherex,z*,y} . Show that the class of regular languages is closed under the DROP-OUT operation. Give both a proof by picture and a more formal proof by construction as in Theorem 1.47.

Short Answer

Expert verified

The class of regular languages is closed under DROP_OUToperation.

Step by step solution

01

To Operation the DROP_ OUT

A is any language and DROP-OUT(A)={xz|xyzAwherex,z*,y}.

We have to prove that the class of the regular languages closed under the DROP_OUT operation.

If A is a regular language, then DROP-OUT(A)is also regular language.

We have to take that A is regular and we have to prove that the DROP-OUT(A)is regular.

Since A is a regular language, it must be recognized by a DFA.

Let M=Q,,δ,q0,Fbe the DFA that recognizes A.

02

To Construct the NFA

Now we will construct the NFA N=Q',{},δ',q0',F'that recognizes DROP-OUT(A).

There are two copies of Machine M.

Copy 1:Copy 1 corresponds to the state of having ‘not yet skipped a symbol’

Copy 2:Copy 2 corresponds to the state of having “already skipped a symbol”.

(i) Proof by picture: -

N=Q',{},δ',q0',F'

Q={q,b|qQ,b{0,1}}= set of states

q0'=start state

=q0,0

F'=set of final states

={(q,1|qF}.

δ'is gives as follows:

localid="1663243041084" δ'((a,b),a)={(δ(q,a),b)}qQ,b{0,1},a

This means that both the copy1 and copy2 of the machineMdo exactly as the original machine does on every symbol a of the alphabet

localid="1663243051646" δ'((q,0),)={(q^,1)a,δ(q,a)=q^}

Also at every stage, the machine has the option to skip a character. The only accepting sates are in copy 2. This means, the machine cannot accept a string without skipping a character.

03

To Proof the given length of the string

The formal proof is given by induction on the length of the string.

An appropriate inductive hypothesis is to assume that, for any string w of length k,

The machine M stays in the copy -1 if it has not yet skipped a symbol.

i.e. δ'*((q0,0),ω)=(q1,0)iffδ(q0,ω)=q1

The machine M jumps to the copy-2 if there is some symbol a that is skipped.

i.e. δ'*((q0,0),ω)=(q1,1)ifδ(q0,ω1aω2)=q1 .

So, in both (i) and (ii) we constructed and NFAN that recognizes the language role="math" localid="1663242954164" DROP-OUT(A).

Thus DROP-OUT(A)is regular.

Hence class of regular languages is closed under DROP-OUT(A)operation.

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

A finite state transducer (FST) is a type of deterministic finite automaton whose output is a string and not just accept or reject. The following are state diagrams of finite state transducers T1andT2.

Each transition of an FST is labeled with two symbols, one designating the input symbol for that transition and the other designating the output symbol. The two symbols are written with a slash, I, separating them. In T1, the transition from q1toq2has input symbol 2 and output symbol 1. Some transitions may have multiple input–output pairs, such as the transition in T1from q1to itself. When an FST computes on an input string w, it takes the input symbols w1···wnone by one and, starting at the start state, follows the transitions by matching the input labels with the sequence of symbols w1···wn=w. Every time it goes along a transition, it outputs the corresponding output symbol. For example, on input 2212011, machine T1enters the sequence of states q1,q2,q2,q2,q2,q1,q1,q1and produces output 1111000. On input abbb, T2outputs 1011. Give the sequence of states entered and the output produced in each of the following parts.

a. T1on input011

b. T1on input211

c. T1on input121

d. T1on input0202

e. T2on input b

f. T2on input bbab

g. T2on input bbbbbb

h. T2on input localid="1663158267545" ε

Question: Let Σ={0,1}and let

D={w|wcontainsanequalnumberofoccurrencesofthesubstrings01and10}.

Thus101D because 101 contains a single 01 and a single 10, but 1010Dbecause 1010 contains two 10 s and one .01 Show that D is a regular language.

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

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

Let M1andM2 be DFAs that have k1 and k2states, respectively, and then let U=L(M1)L(M2) .

  1. Show that if Uϕ, then U contains some string s, where |s|<max(k1,k2) .
  2. Show that if U*, then Uexcludes some string s , where |s|<k1k2 .
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