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|andxyzA}.

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

Short Answer

Expert verified

A13-13={xzforsomey,x=y=z|andxyzA}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|andxyzA}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*}={0n1nn0}

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{0n1n0}.

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|andxyzA}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 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

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.

For languages AandB, let the shuffle of AandBbe the language

{ω|ω=a1b1...akbk,where  a1...akA  and  b1...bkB,each  ai,bi}.

Show that the class of regular languages is closed under shuffle.

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|andxyA}.

Show that if A is regular, then so is A12

Convert the following regular expressions to NFAs using the procedure given in Theorem 1.54. In all parts,Σ={a,b}.

a.a(abb)*bb.a+(ab)+c.(ab+)a+b+

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

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