/*! 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} Q61P Consider the languages Ckdefine... [FREE SOLUTION] | 91影视

91影视

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 鈥渄eterministic鈥 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 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

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

A homomorphism is a function f:-*from one alphabet to strings over another alphabet. We can extend f to operate on strings by defining:f(w)=f(w1)f(w2)f(wn),wherew=w1w2wnandeachwi.

We further extend fto operate on languages by defining f(A)={f(w)|wA},for any language A.

a. Show, by giving a formal construction, that the class of regular languages is closed under homomorphism. In other words, given a DFA Mthat recognizes Band a homomorphism f, construct a finite automaton role="math" localid="1660800566802" M0that recognizes f(B).Consider the machine role="math" localid="1660800575641" M0that you constructed. Is it a DFA in every case?

b. Show, by giving an example, that the class of non-regular languages is not closed under homomorphism.

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

Question: Prove that the following languages are not regular. You may use the pumping lemma and the closure of the class of regular languages under union, intersection, and complement.

a.{0n1m0n|m,n0}b.{0m1n|mn}c.{w|w{0,1}*isnotapalindrome}d.{wtw|w,t{0,1}+

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.