Jump to content

Recommended Posts

Posted (edited)

Hello!

How can I show that this language L={l ε {a,b}*:the word l contains neither the subword aaa nor the subword (bb)} is regular??Is there any theorem,that I can use to prove it??

Edited by taylor 45
Posted

You can write a regular expression that generates the language, or construct a DFA that accepts it. There are several equivalent definitions of regular language, such as the language can be expressed by a regular expression, or the language can be accepted by a DFA. I have also seen that in some textbooks regular language is defined inductively in terms of closure properties.

 

In your case, I think you can easily find a DFA or regex that accepts a string containing either the subword aaa or bb, and then since regular language is closed under complement, the language L is regular.

Posted

You can write a regular expression that generates the language, or construct a DFA that accepts it. There are several equivalent definitions of regular language, such as the language can be expressed by a regular expression, or the language can be accepted by a DFA. I have also seen that in some textbooks regular language is defined inductively in terms of closure properties.

 

In your case, I think you can easily find a DFA or regex that accepts a string containing either the subword aaa or bb, and then since regular language is closed under complement, the language L is regular.

My exercise asks me to prove that the language is regular,without using DFAs.Could you give me a hint how I can do this??I got stuck right now..

Posted (edited)

 I have also seen that in some textbooks regular language is defined inductively in terms of closure properties.

 

 

How could I use the closure properties to show that the language L at this exercise is regular?

Srtting L1={l ε {a,b}*:the word l does not contain the subword aaa} and L2=L={l ε {a,b}*:the word l does not contain the subword (bb)}.

Then? How can I continue?

Edited by taylor 45

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This website uses cookies to ensure you get the best experience on our website. See our Privacy Policy and Terms of Use