The problem involves comparisons between the number of occurrences of the two strings. Whenever such kind of problem occurs one should look whether we need extra storage or not for comparing.If extra storage(Stack) is required then the language is definitely not regular.
In this problem,
- first we have to count the occurrence of the string '011' and save the count
- after that we can count the occurrence of string '111'.
- compare both the counts.
It requires a storage to save the count of string '011' for comparing later with '111' , hence it is not a regular language.
Another approach :
If a Finite Automata could be created for a given language then the language is said to be Regular.
We cannot create a finite automata for the given language hence the language is not regular.