Context-Sensitive
Languages: Questions
-
Consider the following grammar with start symbol S:
S -> FM
F -> FaA
F -> FbB
F -> aA
F -> bB
Aa -> aA
Ab -> bA
Ba -> aB
Bb -> bB
AM -> Ma
BM -> Mb
M -> c
Indicate whether or not the following strings belong to this language:
-
c
-
aca
-
acb
-
bcb
-
abcab
-
abcba
-
bacba
-
bacab
-
aacaa
-
aacbb
-
Consider the linear bounded automaton with start state s and the following
transitions:
((s,<),(t,<,R))
((t,a),(u,x,R))
((t,b),(v,x,R))
((t,x),(t,x,Y))
((t,>),(t,>,Y))
((u,a),(u,a,R))
((u,b),(u,b,R))
((u,x),(w,x,L))
((u,>),(w,>,L))
((v,a),(v,a,R))
((v,b),(v,b,R))
((v,x),(x,x,L))
((v,>),(x,>,L))
((w,a),(y,x,L))
((w,x),(w,x,Y))
((x,b),(y,x,L))
((x,x),(x,x,Y))
((y,a),(y,a,L))
((y,b),(y,b,L))
((y,x),(t,x,R))
Indicate whether or not the following strings belong to this language:
-
aa
-
ab
-
bb
-
aba
-
abba
-
abab
-
aaaa
-
bbbb
-
baab
-
baba