Let the rotational closure of language A be.

RC(A)={yx|xyA}

a. Show that for any language A, we have RC(A)=RC(RC(A)).

b. Show that the class of regular languages is closed under rotational closure.

Short Answer

Expert verified

a)For any languageA,RC(A)=RC(RC(A)) is proved.

b)The rotational closure of languageA to be RC(A)={yx|xyA}is closed under rotational closure.

Step by step solution

01

Step 1: Rotational closure.

The cyclic shift also called rotation or conjugation and a language is defined as {yx|xyA}. The context-free languages are closed under this operation. The rotation closure, conjugation, and cyclic shift contains a language which rotates and seems same which is belongs to A.

02

Step 2: Rotational closure of language.

a).

RC(A)=RC(RC(A))

To decide non deterministically at the beginning the word is cycled, and have a copy of the automaton for every case. In terms of the automaton, that means that in which stateD would have been after consuming a word's prefix (which is a suffix of our input), and start in that state.

Now the construction for every state, separateD into two parts A2 contains the states from which q is reachable and A2the states that are reachable from q.

We get |Q| automata of this form; create a new initial state which has ε transitions to all their starting states. The resulting automaton acceptscycle(L) Altogether, here, most |Q|=(2|Q|+1)+1states, only|Q| more states than the reference claims are possible.

Here the achieved state is act as|Q|=(2|Q|+1)+1 states by modifying the component automata a little bit; eliminate all q0q0 by replacing the incoming ε-transitions with copies of its outgoing transitions. That is, for every pair of transitions (q1,ε,q0),(q0,a,q2)introduces a transition (q1,a,q2).HenceRC(A)=RC(RC(A)) is proved.

03

Proving the class of regular language is closed under rotational closure.b).

By using deterministic finite automata, a finite automata for the original language, construct one for the cyclic shift. The new automaton operates in two stages, corresponding to the y and the xpart of the word yxwhere yxis in the original language.

In the first stage, whenever the automaton would like to pop a non-terminal Ait can instead push a non-terminal A', the idea is that at the end of the first stage, the stack would contain, in reverse order, the symbols that are found in the stack after reading xby the original automaton. In the second stage (the switch is non-deterministic), instead of pushing a non-terminal AA, are allowed to pop a non-terminal A'.

If the original automaton can indeed generate the stack upon readingx, then the new one would be able to exactly pop the entire stack.

Here suppose we are given a deterministic finite automaton with alphabet , set of states, set of accepting states, non-terminals, initial state, and a set of allowable transitions. Each allowable transition is of the form(q,a,A,q',α) meaning that when in state, upon and the new deterministic finite automata has a new non-terminal A'for each.

Hence, the rotational closure of language A to beRC(A)={yx|xyA}is closed under rotational closure for 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

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

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

Show that ADD is not regular.

In the traditional method for cutting a deck of playing cards, the deck is arbitrarily split two parts, which are exchanged before reassembling the deck. In a more complex cut, called Scarne’s cut, the deck is broken into three parts and the middle part in placed first in the reassembly. We’ll take Scarne’s cut as the inspiration for an operation on languages. For a language A, let CUT(A)={yxz|xyzA}.

a. Exhibit a languageB for whichCUT(B)CUT(CUT(B)).

b. Show that the class of regular languages is closed under CUT.

a. Let Abe an infinite regular language. Prove thatA can be split into two infinite disjoint regular subsets.

b. LetBandD be two languages. Write BDifBDand Dcontains infinitely many strings that are not in B. Show that if BandD are two regular languages whereBD , then we can find a regular languageC where BCD.

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.

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