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

Let 2{[00],[01][10][11]}Here, contains all columns of localid="1663175934749" 0sand1sof height two. A string of symbols in gives two rows of 0sand1s. Consider each row to be a binary number and let C={wΣ*2|thebottomrowofwisthreetimesthetoprow}. For example, [00][01][11][00]cbut [01][01][10]EC. Show that C is regular. (You may assume the result claimed in Problem 1.31.)

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.

Let Σ2be the same as in Problem 1.33. Consider each row to be a binary number and let D={wΣ*2|the top row of w is a larger number than is the bottom row}. For example, 00101100D, but 000111006D. How that D is regular.

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

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