/*! 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} Q39P The construction in Theorem 1.54... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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

Short Answer

Expert verified

It can be said that no DFA’s is equivalent to a DFA with lesser states.

Step by step solution

01

Introduction

The GNFA Convert G is equivalent to G. By Induction on k, the number of states of G.

02

To Prove That no DFA are equivalent to a DFA

It is being given that if there are two states GNFA then is correspondingly equal to the GNFA. But here user need to prove that in DFA subsequently opposite phenomenon occurs.

It implies user need to prove that no DFA are equivalent to a DFA with lesser states.

Assume Ak be the set of words of length at least k-1. Therefore, it can be said that role="math" localid="1663228503830" Akhas at least equivalence classes of words length0,1,2,…,k-2andk-1 or more. So, it is clear from this that Akrequires a DFA with states k.

For any DFA fewer than states k, by Pigeon Hole Principle, two of thek strings cause the machine to loop in same state results in a rejection from the DFA.

03

To Consider Ak={0,1}*0k-10*

Consider Ak={0,1}*0k-10*for k>1.

Now a DFA with exactly k states can recognize the language Ak. Starting from the start state there is a state in the DFA for each 0 it had read after the last 1.

After k-1  0'sit arrives at an accepting state whose further transitions are self-loops. Now based on the language let say Akbe the set consisting of the strings 10,100,…,10k-1. If the DFA consist of fewer thank states, then by the Pigeonhole Principle two these strings cause a loop to a single state. Hence the machine fails to accept the strings.

Hence, it can be said that no DFA’s is equivalent to a DFA with lesser number of states.

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

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.    (a∪b+)a+b+

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,n⩾0}b.{0m1n|m≠n}c.{w|w∈{0,1}*isnotapalindrome}d.{wtw|w,t∈{0,1}+

  1. Show that ifis a DFA that recognizes languageB, swapping the accept and non accept states inyields a new DFA recognizing the complement ofB. Conclude that the class of regular languages is closed under complement.
  2. Show by giving an example that ifM is an NFA that recognizes language C swapping the accept and non accept states in Mdoesn’t necessarily yield a new NFA that recognizes the complement of C. Is the class of languages recognized by NFAs closed under complement? Explain your answer.

If A is any language, let A13-13be the set of all strings in A with their middle thirds removed so that

A13-13={xz|forsomey,|x|=|y|=|z|andxyz∈A}.

Show that if A is regular, then A13-13is not necessarily regular

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.