/*! 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} Q67P Let the rotational closure of la... [FREE SOLUTION] | 91影视

91影视

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

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).*

If A is a set of natural numbers and k is a natural number greater than 1, let

Bk(A)={w|wistherepresentationinbasekofsomenumberinA}.

Here, we do not allow leading 0s in the representation of a number. For example ,B2({3,5})={11,101}and B3({3,5})={10,12}.Give an example of a set A for which B2(A)is regular butB2(A) is not regular. Prove that your example works.

Let D={w|wcontains an even number of a鈥檚 and an odd number of b鈥檚 and does not contain the substring ab}. Give a DFA with five states that recognizes role="math" localid="1663218927815" Dand a regular expression that generatesrole="math" localid="1663218933181" D.(Suggestion: DescribeD more simply.)

Let Cn={x|xis a binary number that is a multiple of n}. Show that for each n1, the language Cnis regular

Let M=(Q,,,q0,F)be a DFA and let be a state of Mcalled its 鈥渉ome鈥. A synchronizing sequence for M and h is a string s鈭埼b垪where(q,s)=hforeveryqQ. (Here we have extended to strings, so that(q,s) equals the state where M ends up when M starts at state q and reads input s .) Say that M is synchronizable if it has a synchronizing sequence for some state h . Prove that if M is a k-state synchronizable DFA, then it has a synchronizing sequence of length at mostk3 . Can you improve upon this bound?

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.