Question

In: Computer Science

Q5. [10] The left quotient of a regular language L1 with respect to L2 is defined...

Q5. [10] The left quotient of a regular language L1 with respect to L2 is defined as:
               L2/L1 = { y | x L2 , xy L1 }
Show that the family of regular languages is closed under the left quotient with a regular language.
Hint: Do NOT construct a DFA that accepts L2/L1 but use the definition of L2/L1 and the closure
properties of regular language.

Solutions

Expert Solution

The left quotient of a regular language L1 with respect to L2 is defined as

                  L2/L1 = {y| x ∈ L2, xy ∈ L1}

We need to show that the family of regular languages is closed under the left quotient with a regular language.

Proof:

We can take the reverse of the given language as

(L2/L1)ᴿ = {yᴿ | yᴿxᴿ ∈ L1ᴿ, xᴿ∈ L2ᴿ} = L1ᴿ / L2ᴿ -----------------(1)

But, if a language is regular then the reverse of that language is also regular (according to the closure property of regular language (Lᴿ = wᴿ : w ∈ L))

i.e., the regular languages are closed under reverse   

And , it is given that both L1 and L2 are regular so that L1ᴿ and L2ᴿ are also regular.   ------ (2)

One of the Theorem in Properties of Regular Language states that the family of regular languages is closed under right quotient with regular language.

i.e., If L1 and L2 are regular then L1/L2 is also regular   given L1/L2 = {y| xy ∈ L1, x ∈ L2}

And we have both L1ᴿ and L2ᴿ are regular. (by (2))

So according to the theorem of Regular Language

                       L1ᴿ / L2ᴿ          is also regular(right quotient) ---------------------(3)

Putting the (3) in (1) we get

(L2/L1)ᴿ is also regular ( Because, (L2/L1)ᴿ = L1ᴿ / L2ᴿ)

But, the reverse of a language is regular according to the closure property

Hence, ((L2/L1)ᴿ)ᴿ is also regular.

i.e., L2/L1 is regular.

So, the family of regular languages is closed under the left quotient.

Hence proved.


Related Solutions

The intersection of two lists L1 and L2, L1 ∩ L2, is defined as the list...
The intersection of two lists L1 and L2, L1 ∩ L2, is defined as the list containing elements in both L1 and L2 only. Given two sorted lists L1 and L2, write a function, called intersection, to compute L1 ∩ L2 using only the basic list operations. The intersection function is defined as follows template list intersection( const list & L1, const list & L2); C++
What are some similiarities and differences between the development of L1 (native language) and L2 (target...
What are some similiarities and differences between the development of L1 (native language) and L2 (target language)?
Given a regular language A, define L2 = { xz | there exists y Σ*, xyz...
Given a regular language A, define L2 = { xz | there exists y Σ*, xyz A, |x|=|z|, |y| = 2 }. Decide with a formal proof if L2 is (a) regular; or (b) not regular but context-free; or (c) not context-free.
First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3...
First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 P0 P1 P2 E0 E1 E2 FI ATT ------------------------------------------------------------------------------------------------------------------------------------------ Kevin Smith 90 100 100 100 98 97 87 100 85 87 89 100 100 100 100 90 100 98 90 100 98 98 98 90 90 98 88 0.00 Morgan Kelly 80 100 65 67 69 71 100 100 100 67 95 85 87 89 100 65 67...
First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3...
First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 P0 P1 P2 E0 E1 E2 FI ATT ------------------------------------------------------------------------------------------------------------------------------------------ Kevin Smith 90 100 100 100 98 97 87 100 85 87 89 100 100 100 100 90 100 98 90 100 98 98 98 90 90 98 88 0.00 Morgan Kelly 80 100 65 67 69 71 100 100 100 67 95 85 87 89 100 65 67...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). (a) If you know that an individual is an expected utility maximizer (who likes money), but you do not know more about this person, what can you say about how this individual ranks the lotteries? (You should conclude that one/some comparison(s) are unclear, but one/some can...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). Refer to the list of lotteries in the question above. Draw two coordinate diagrams where one could draw some of those two-outcome lotteries when we consider fixed probabilities and varying prizes. In one diagram you can draw all but one of the lotteries, in the other...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). Refer to the list of lotteries in the question above. Draw two coordinate diagrams where one could draw some of those two-outcome lotteries when we consider fixed probabilities and varying prizes. In one diagram you can draw all but one of the lotteries, in the other...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT