/*! 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} Q58P If A is any language, let A13-13... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

If A is any language, let A13-13be the set of all strings in A with their middle thirds removed so that

A13-13={xz|forsomey,|x|=|y|=|z|andxyz∈A}.

Show that if A is regular, then A13-13is not necessarily regular

Short Answer

Expert verified

A13-13={xzforsomey,x=y=z|andxyz∈A}A is regular, thenA13-13 is not necessarily 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

Regular language or not.    

For the given language, A13-13={xzforsomey,x=y=z|andxyz∈A}Let A be any language, define A13-13be the subset of strings of AA whose middle third is removed.

The solution is came across makes the following claim,

which cannot be justify ,

Let A={0*1*}then A13-13∩{0*1*}={0n1n∣n⩾0}

For example consider the string w=0000#1, removing the middle third will yield 00#1and whose intersection with 0*1*is∅which not of the form{0n1n⩾0}.

A string ss belongs toA13-13iff you can form it from a string tt of the form 0p#1qby deleting the middle third t then here the string will be in{0*1*}iff the#was in the middle third of t. The question is asking you to show that if that happens, then t contains an equal number of zeros and ones.

Hence, A13-13={xzforsomey,x=y=z|andxyz∈A}A is regular, then A13-13is not necessarily regular is proved.

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

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

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|xyz∈A  where  x,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.

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 ε ?

Let N be an NFA with k states that recognizes some language A.

a. Show that if Ais nonempty, Acontains some string of length at most k.

b. Show, by giving an example, that part (a) is not necessarily true if you replace both A’s byA .

c. Show that If Ais nonempty, Acontains some string of length at most 2k.

d. Show that the bound given in part (c) is nearly tight; that is, for each k, demonstrate an NFA recognizing a languagerole="math" localid="1660752484682" Ak' where role="math" localid="1660752479553" Ak'is nonempty and where Ak'’s shortest member strings are of length exponential in k. Come as close to the bound in (c) as you can.

Question: Prove that the following languages are not regular. You may use the pumping lemma and the closure of the class of regular languages under union, intersection, and complement.

a.{0n1m0n|m,n⩾0}b.{0m1n|m≠n}c.{w|w∈{0,1}*isnotapalindrome}d.{wtw|w,t∈{0,1}+

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.