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

Consider the languages Ckdefined in Problem 1.60. Prove that for eachk , no DFA can recognizeCk with fewer than2K states.

Short Answer

Expert verified

No DFA can recognizeCk with fewer than 2kstates is proved by Myhill-Nerode.

Step by step solution

01

Deterministic finite automata.

Deterministic finite automata (or DFA) are finite state machines that accept or reject strings of characters by parsing them through a sequence that is uniquely determined by each string. The term “deterministic” refers to the fact that each string, and thus each state sequence, is unique.

02

Myhill-Nerode for recognize Ck with fewer than 2k states.

There are clearly 2kpossible length-k input strings over {0,1}Assume for the sake of argument that there is a DFA Deterministic finite automata, kthat accepts the k from the end is 1 language and that k has m<2n. We don't have enough states to assign a unique one to every possible length- kinput, so there must be some state where we wind up after reading two different strings b1b2.........bn.

Since a1a2........anb1b2...........bn they must differ in at least one place. Suppose without loss of generality that bi=0.

If i=2 , we're in state after reading a strings and also after reading its b strings. Suppose that from state on input zeroand then pass to state p, then in state p after reading a strings and also after reading b strings. In the former case, a strings has its to the last state, character from the end equal to one so p must be an accept state, but b strings does not so pp must not be an accepting state, again a contradiction.

Continuing, to see that no matter where the two inputs differ, by appending i=2zeros (or anything else) to the two strings we'll find ourselves in a state which must be both accepting and non-accepting, so our original assertion, that khas fewer than 2kstates, must have been false.

Hence, no DFA can recognizeCk with fewer than2K states is proved by Myhill-Nerode

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

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.

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.

We define the avoids operation for languages A and B to be

AavoidsB={w|wAandwdoesntcontainanystringinBasasubstring}.

Prove that the class of regular languages is closed under the avoids operation.

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

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

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