1
$\begingroup$

Suppose $A = \{0^{n}1^{n} \mid n \ge0\}$, which is not regular, and let $B$ be a finite subset of $\Sigma^* \setminus A$. Is $A \cup B$ regular?

$\endgroup$

1 Answer 1

6
$\begingroup$

Note the closure properties of regular languages. What is $(A \cup B) \setminus B$? What does that imply about $(A \cup B)$ since we know $B$ is regular (due to being finite)?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.