Question

Let L be any non-empty language over an alphabet Σ. Show that L^2⊆L^3 if and only...

Let L be any non-empty language over an alphabet Σ. Show that L^2⊆L^3 if and only if λ∈L.

Homework Answers

Answer #1

Solution for the problem is provided below, please comment if any doubts:

Here we need to prove that, “L^2L^3 if and only if λL.”

Proof by contradiction:

  • First assume that λ not belongs to L
  • L^2 is generated by concatenating all the strings of “L” with all strings of “L” itself.
  • If L has “n” strings, then L^2 will have “n2” strings in it.
  • Since the empty string λ not belongs to L, no strings in L will be there in L^2, because the strings will we L^2L^3 concatenated with non empty strings.
  • L^3 is generated by concatenating strings in L^2 by strings I L.
  • Since λ not there in L, the strings in L^3 will be an extended version of L^2 strings by concatenating it with strings in L.
  • That is L^3 will not contain the strings of L^2.
  • That is L^2 is can’t be the sub set of L^3 if λ not belongs to L.
  • That is our assumption is wrong.

That is, “L^2L^3 if and only if λL.”

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
For Automata class: Let L be a regular language over the binary alphabet. Consider the following...
For Automata class: Let L be a regular language over the binary alphabet. Consider the following language over the same alphabet: L' = {w | |w| = |u| for some u ∈ L}. Prove that L' is regular.
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w...
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w ∈ Σ* | w is a palindrome of any length}. Construct a PDA that recognizes L3. Implement that PDA in JFLAP
Let L ⊆ Σ* be a regular language. Suppose a ∈ Σ and define L\a =...
Let L ⊆ Σ* be a regular language. Suppose a ∈ Σ and define L\a = {x : ax ∈ L }. Show that L\a is regular.
Let L be a regular language over {0, 1}. Show how we can use the previous...
Let L be a regular language over {0, 1}. Show how we can use the previous result to show that in order to determine whether or not L is empty, we need only test at most 2n − 1 strings.
Let Σ = {a}, and let L be the language L={an :nisamultipleof3butnisNOTamultipleof5}. Is L a regular...
Let Σ = {a}, and let L be the language L={an :nisamultipleof3butnisNOTamultipleof5}. Is L a regular language? HINT: Maybe instead of an explicit DFA or regular expression, you can find another argument.
Let s and p be two particular strings over an alphabet Σ. Prove that the following...
Let s and p be two particular strings over an alphabet Σ. Prove that the following language M = {w ∈ Σ ∗ | w contains u as a substring but does not contain v as a substring} is regular. plz provide DFA and also simplified the DFA thx !
For any string ,over alphabet Σ,we define the string SHIFT(σ) as follows: if σ=aw,a∈Σ,w∈Σ∗then SHIFT(σ)=wa. For...
For any string ,over alphabet Σ,we define the string SHIFT(σ) as follows: if σ=aw,a∈Σ,w∈Σ∗then SHIFT(σ)=wa. For example, SHIFT(0111)=1110,SHIFT(10110)=01101.Prove that if L is regular, then so is SHIFT(L)={SHIFT(σ):σ∈L}
Show that language B = {〈A〉| A is a DFA and L(A) = Σ* } is...
Show that language B = {〈A〉| A is a DFA and L(A) = Σ* } is decidable.
Please answer True or False on the following: 1. Let L be a set of strings...
Please answer True or False on the following: 1. Let L be a set of strings over the alphabet Σ = { a, b }. If L is infinite, then L* must be infinite (L* is the Kleene closure of L) 2. Let L be a set of strings over the alphabet Σ = { a, b }. Let ! L denote the complement of L. If L is finite, then ! L must be infinite. 3. Let L be...
Let Σ = {a, b, c}. Use the Pumping lemma to show that the language A...
Let Σ = {a, b, c}. Use the Pumping lemma to show that the language A = {arbsct | r + s ≥ t} is not regular.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT