Let . Let . Which one of the following is TRUE?
View worked solution
Answer: A
To determine the regularity of and , we analyze the relationship between their respective substrings.
1. Analysis of :
The substrings are and . Notice that:
- An occurrence of represents a transition from a block of s (of length ) to a .
- An occurrence of represents a transition from a to a block of s (of length ).
2. Analysis of :
The substrings are and . Let us intersect with the regular language :This is a well-known non-regular language because it requires comparing two arbitrary independent counts. Since regular languages are closed under intersection, and is non-regular, cannot be regular.
Free practice · Your answers on this page are not saved.
