( (Ab) C D - N 0, M 1) : Find Context-Free Grammars To Generate The Following Languages: I)
( (Ab) C D - N 0, M 1) : Find Context-Free Grammars To Generate The Following Languages: I)
Q1(18 pnts.):
Find context-free grammars to generate the following languages:
{ w | w{0, 1}* , |w| >= 4; w starts with 1 and ends with 10 or 01}.
0
E
B
0,1 1 0
S 1
D
1 0
0
C
F
S → 0S | 1B | 1C | 1
C → 0B | 0
B → 1B | 1C | 0S | 1
0 1
A
0 B
S 0 1
Q6(12 pnts.):
Remove the λ moves from the following state diagram:
1 1
λ 0
S A C
0
λ
0 1
D 0
E
1
S → 0C | 1B | 0 | λ
A → 1B | 0C | 0
B → 0C | 1A | 0
C → 0C | 1C | 0 | 1
Q8(12 pnts.):
Find a Turing machine for the language anbnc2ndn: