Professional Documents
Culture Documents
Weak version
Strong version
Applications
Proof
Consider the path associated with x (|x| >
m).
x
uw in L
n
uv w in L
because M is DFA
Case 1. v is a substring of 0 .
uw in L, but uw contains less 0s than 1s. (-><-)
m
Case 2. v is a substring of 1 .
uw in L, but uw contains less 1s than 0s. (-><-)
Proof
Since M is DFA, there is a path from initial
state to a final state, associated with xyz.
y
x
p
z
q
v
x
p
w
q
xuwz in L
xuv wz in L
L={0
Proof.
Puzzle
A {wx | w (0 1)*, x (0 1) and x x R } is regular
because it is equal to (0 1) * . In fact, 0 0 R and 1 1R.
B {wx | w (0 1)*, x (0 1) and x x R with odd | x |}
is regular for the same reason.
C {wx | w (0 1)*, x (0 1) and x x R with even | x |}
is not regular because in this case, x yy R so that
C {wyy R | w (0 1)*, y (0 1) }.
Now, C A B. So, we obtain an example that a regular
language subtracts another language and the result is not
regular. What' s wrong?