Which of the following regular expression identities is/are TRUE?
View worked solution
Answer: A
To determine which identity is true, let us analyze each option by considering the languages they generate (assuming and represent distinct non-empty alphabets, e.g., and ):
-
Option A:
The Kleene closure operation is idempotent. That is, applying the star operator multiple times does not generate any new strings beyond what is already in . Thus, this identity is TRUE. -
Option B:
The language of the right-hand side, , contains all possible strings over and in any order (e.g., ). However, the left-hand side, , only generates strings where all occurrences of precede all occurrences of . -
Option C:
The right-hand side generates strings consisting of only 's or only 's. It cannot generate mixed strings like . -
Option D:
The left-hand side can generate mixed strings like , whereas the right-hand side cannot.
Free practice · Your answers on this page are not saved.
