Back to the 2022 paper

Module 1: Introduction & Regular Languages

20227m

Give examples of L1L_1 and L2L_2 such that:

(i) L1L_1 is regular, L2L_2 is not regular, and L1L2L_1 - L_2 is regular.
(ii) L1L_1 and L2L_2 are not regular but L1L2L_1 \cup L_2 is regular.

Similar questions