If is a regular language over , which one of the following languages is NOT regular?
View worked solution
Answer: B
To determine which language is NOT guaranteed to be regular, let us analyze each option given that is a regular language over :
- Option A:
Since regular languages are closed under reversal, is regular. Regular languages are also closed under concatenation, so the concatenation is guaranteed to be regular. - Option B:
This language requires a matching of the string with its reverse , which generally requires a stack (memory) to keep track of the symbols in .
For example, if we choose the regular language , then the language becomes , which is the classic non-regular (but context-free) language of even-length palindromes. Thus, this language is not regular in general. - Option C:
Regular languages are closed under the prefix operation. If is recognized by a DFA , we can construct a DFA for by making any state in from which a final state is reachable an accepting state. - Option D:
Regular languages are closed under the suffix operation. If is recognized by a DFA , we can construct an NFA for by making the start state of the NFA have -transitions to all states of that are reachable from the original start state.
Therefore, the language in Option B is NOT regular.
Free practice · Your answers on this page are not saved.
