Given languages $L_1,L_2$, defines $X(L_1,L_2)$ by
$\qquad X(L_1,L_2) = \{w \mid w \not\in L_1 \cup L_2 \}$
If $L_1$ and $L_2$ are regular, how can we show that $X(L_1,L2)$ is also regular?
|
Given languages $L_1,L_2$, defines $X(L_1,L_2)$ by $\qquad X(L_1,L_2) = \{w \mid w \not\in L_1 \cup L_2 \}$ If $L_1$ and $L_2$ are regular, how can we show that $X(L_1,L2)$ is also regular? |
|||||||||
|
|
There are several ways to show that a language is regular (check the question How to prove a language is regular?) Specifically for the language in your question, start with DFAs for $L_1$ and $L_2$ and try to construct an NFA for $X(L_1,L_2)$ using them. More details below:
|
||||
|
|
|
Expanding on Zach's comment, you (should) know the following things:
Now you should be able to pick a few of these that combined make up your $X$ language function/operator/whatever you call something like that (well, it's just a language defined in terms of others). Just for some background, proofs for these properties can be found (IN A REALLY LARGE FONT) here. Give this a go, if you're really stuck, I'll put a bit more in the spoilers below (but with little explanation).
|
|||
|
|