Is Not Regular Ex. (0 1 - N 0) NN NO! Can FA Recognize All Computable'' Languages?
Is Not Regular Ex. (0 1 - N 0) NN NO! Can FA Recognize All Computable'' Languages?
Pumping Lemma
Pumping Lemma
If A is a regular language, then there is a no. p
where, if s is any string in A of length
at least p, s may be divided into three pieces x,y,z,
s = xyz, such that all of the following hold:
1. for each i > 0, xy i z is in A
2. |y| > 0
3. |xy| > p
Alternating Quantifers in the Pumping Lemma
1. For each regular language L
y=0 ... 0
Then xyyz will have more 0’s than 1’s,
so it cannot be in L, a contradiction.
Pumping Lemma Example
y=1 ... 1
Then xyyz will have more 1’s than 0’s,
so it cannot be in L, a contradiction.
y = 0 ... 0 1 ... 1
Then xyyz will have 0’s and 1’s out of order,
with some 1’s before 0’s, a contradiction.
Since these are all possible cases, we can
conclude that L is not regular.
n+m
Show { an bamba | n, m > 1} is not regular.