Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can you identify whether the language is regular or context-free language

For example, is this language regular or context-free language?
On the one hand n can’t be smaller than m but on the other hand you can’t count n and m.

{(ab)^n (ab)^m | n>=m>=0}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

That’s a trick question, as that’s just {(ab)^n | n>=0} written in a obscure way. Which is clearly regular.

In general, you prove that a language is or isn’t of a certain type with a grammar, automaton, pumping lemma, the Myhill–Nerode theorem, etc.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading