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

Let M1andM2 be DFAs that have k1 and k2states, respectively, and then let U=L(M1)L(M2) .

  1. Show that if Uϕ, then U contains some string s, where |s|<max(k1,k2) .
  2. Show that if U*, then Uexcludes some string s , where |s|<k1k2 .

Short Answer

Expert verified
  1. It can be shown that , if Uϕ, then U contains some string s, where |s|<max(k1,k2).
  2. It can be shown that if U*, then Uexcludes some string s , where |s|<k1k2.

Step by step solution

01

Explain DFA

Deterministic Finite Automata is a machine that has a finite number of states. It has the knowledge about which state, the machine moves on getting the input symbol.

02

Show that if  U≠ϕ, then  U  contains some string s , where  |s|<max(k1,k2) .

a.

Given that the M1 and M2 are the DFAs, that have K1 and K2 states respectively. Then consider that, U=L(M1)L(M2) , and the DFAs consists of unequal length strings that are different from each other.

For the given grammar U , the start state q is considered. The production of M1 and M2 is, qsM1|sM2.The strings that has unequal length and different from each other, are initiated for the grammar. The property of Union, add the unmatched longest string of the two strings.

Therefore, the final string is less than any string and thus, it has been shown that if Uϕ, then Ucontains some strings , where|s|<max(k1,k2) .

03

Show that if U≠∑*, then U  excludes some string s  , where |s|<k1k2 .

b.

Given that the M1 and M2 are the DFAs, that have k1 and k2 states respectively. Then consider that, U=L(M1)L(M2) , and the DFAs consist of unequal-length strings that are different from each other.

Consider that U=L(M1)L(M2) , that consists the string of M1 and M2. Apply the concatenation operation between the initial string k1 and k2 , then the length of the string is longer than the original length. In the final concatenated string, some strings have been taken. Hence, these strings are excluded in the final string.

Therefore, from the above discussion it has been concluded that if U*, then Uexcludes some string s , where|s|<k1k2 .

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

Let M=(Q,Σ,δ,q0,F)be a DFA and let be a state of Mcalled its “home”. A synchronizing sequence for M and h is a string s∈Σ∗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?

Let Σ2 be the same as in Problem 1.33. Consider the top and bottom rows to be strings of 0s and 1s, and letE={w*2| the bottom row of w is the reverse of the top row of w}. Show that is E not regular.

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.

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 ={0,1,#}. Let C={x#xR#x|x{0,1}*} . Show that C is a CFL.

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