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 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.
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.
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.
Prove that the intersection of a CFL and a Regular language is always context free. I...
Prove that the intersection of a CFL and a Regular language is always context free. I was thinking representing the CFL as a PDA, and the regular language as a DFA, then - if they both accept at the same time, the intersection must be context free?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • determine the combination of alkaline earth cations and test solution anions that produce a precipitate. Predict...
    asked 3 minutes ago
  • Homework of Unit Three 1. Situational Writing Situation: Value Link Co.,Ltd.(Add.:27 Srinakarin street,Bangkok,Thailand, Zip:10250, Fax:66-02-330-9765), deals...
    asked 14 minutes ago
  • Rothamsted Experimental Station (England) has studied wheat production since 1852. Each year, many small plots of...
    asked 23 minutes ago
  • 51. Which of the following type of dementia is the most common among all dementias A.Parkinsons...
    asked 24 minutes ago
  • A mad physicist assembled an EM wave generator. He claims that the generator is able to...
    asked 27 minutes ago
  • Question # 3: Solve the following conversions: a. %01000101 = ? (Decimal) b. 24510 = %____________...
    asked 40 minutes ago
  • 5. The Scientist-Practitioner model A. Focuses on the objective assessment of data only B. Focuses on...
    asked 43 minutes ago
  • 7) A disk is initially spinning about its center at 18 rad/s counter-clockwise and a constant...
    asked 43 minutes ago
  • -Two restaurants, Epicurean Eats and Dino’s Diner, operate in the same neighborhood. Epicurean Eats is a...
    asked 50 minutes ago
  • 1.What is the discount rate assuming the present value of $840 at the end of 1-year...
    asked 1 hour ago
  • Suppose you come home to a small, hot apartment in a well-insulated building on a summer...
    asked 1 hour ago
  • The probability a car is serviced under warranty is known to be 44% and the probability...
    asked 2 hours ago