Show using the pumping lemma that
{(01)m2n | 0 <= m < =n } is not a regular language.
For the DFAs M and N whose tables are given below, show using the decision algorithm given in class (or the text) that L(M) is a subset of L(N).
M
0
1
2
*p0
p0
p1
p2
p1
p1
p1
p1
*p2
p1
p1
p2
N
0
1
2
*q0
q0
q1
q2
*q1
q3
q1
q2
*q2
q3
q3
q2
q3
q3
q3
q3
Find a context-free grammar for the language {ajbk | k is not equal to j}.
(hint: consider the cases k<j and k>j separately).
The unambiguous grammar given below accepts the set of algebraic
expressions over the alphabet {(,),-,*,x} that have no unnecessary
parentheses. The start symbol is E.
Show that the grammar has no parses for the expressions
(x-x), (x-x)-x, and x-(x*x).
Show that the expression (x-x)*(x*x) has exactly one parse.
E -> E-A | T
A -> (E-A) | T
T -> A*B | F
B -> (E-A) | (A*B) | F
F -> x