Question

Prove that if a language L is regular, the suffix language of L is also regular.

Prove that if a language L is regular, the suffix language of L is also regular.

Homework Answers

Answer #1
  1. It may be easier to see that prefix(L)={y:yx∈L for some x∈Σ∗}prefix⁡(L)={y:yx∈L for some x∈Σ∗} is regular whenever LL is regular, and easier to show it. One way to do it is to take the machine for LL and mark any state as an accepting state if there is any possible transition to an accepting state. Another way is to take the machine for LL and add an ϵϵ-transition between states xx and yy whenever there is a non-ϵϵ-transition between those states.

  2. If you do go that way, it's easy to show that reverse(L)reverse⁡(L) is regular if and only if LL is. Here reverse(L)={w:wR∈L}reverse⁡(L)={w:wR∈L}. Here the easy proof is to take a left-regular grammar for LL and turn it into a right-regular grammar for reverse(L)reverse⁡(L).

  3. Then since suffix(L)=reverse(prefix(reverse(L)))suffix⁡(L)=reverse⁡(prefix⁡(reverse⁡(L))), you win.

You can ask doubt in comments

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
5 A Non-Regular language Prove that the language}L={www∣w∈{0,1}​∗​​} is not regular.
5 A Non-Regular language Prove that the language}L={www∣w∈{0,1}​∗​​} is not regular.
Prove by induction on n that if L is a language and R is a regular...
Prove by induction on n that if L is a language and R is a regular expression such that L = L(R) then there exists a regular expression Rn such that L(Rn) = L n. Be sure to use the fact that if R1 and R2 are regular expressions then L(R1R2) = L(R1) · L(R2).
prove that any regular language L can be represented by a regular expression in DNF(a1Ua2U...Uan), where...
prove that any regular language L can be represented by a regular expression in DNF(a1Ua2U...Uan), where none of ai, 1<=i<=n, contains the operator U.
Prove that the language ?={?^??^??^?:?≤?+?}is not regular
Prove that the language ?={?^??^??^?:?≤?+?}is not regular
Given a language L, etc. Show that the language L is a regular language. To show...
Given a language L, etc. Show that the language L is a regular language. To show that the language L is a regular language - find/design a dfa that recognizes the language L. Given a regular expression r, etc. What is the language L, L = L(r)? L(r) is the set of all strings etc.
Suppose A and B are regular language. Prove that AB is regular.
Suppose A and B are regular language. Prove that AB is regular.
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.
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.
Use the pumping lemma for regular languages to prove that the following language is not regular....
Use the pumping lemma for regular languages to prove that the following language is not regular. { 0n1x0x1n | n >= 0 and x >= 0 }
The chopleft operation of a regular language L is removing the leftmost symbol of every string...
The chopleft operation of a regular language L is removing the leftmost symbol of every string in L: chopleft(L) = { w | vw ∈ L, with |v| = 1}. Prove or disprove that the family of regular languages is closed under the chopleft operation.    Hint: If it’s regular, give an idea of constructing an FA that accepts chopleft(L) using an FA M that accepts L. Otherwise, give a counterexample.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT