Can anyone give an example of two non-regular languages $A, B \subseteq \{0, 1\}^∗$ for which the language $AB$ is regular?
Asked
Active
Viewed 2,935 times
1 Answers
4
Hint: Let $C$ be the language of words that have the same number of 1's as 0's. Is $C$ regular? Let $A = \{0,1\}^* \setminus C$. Is $A$ regular? Now, can you find a non-regular language $B$ that will make $AB$ regular?
D.W.
- 167,959
- 22
- 232
- 500