Question: 3. Consider the following language: K = {aSy | x and y are in {a, b), and y is not a permutation of z). abs,

3. Consider the following language: K = {aSy | x and y are in {a, b)", and y is not a permutation of z). abs, asaaab and babaSaaab; example strings not in K are abba, abbbaSabbba, and abbbaSbabab (a) Prove that the language K is not regular. (b) Construct a context-free grammar that generates the language K. Briefly and precisely describe the s generated by each variable in the grammar 3. Consider the following language: K = {aSy | x and y are in {a, b)", and y is not a permutation of z). abs, asaaab and babaSaaab; example strings not in K are abba, abbbaSabbba, and abbbaSbabab (a) Prove that the language K is not regular. (b) Construct a context-free grammar that generates the language K. Briefly and precisely describe the s generated by each variable in the grammar
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
