Question: Consider the language over = {a,b,c} that is the concatenation of arbitrary palindromes of length at least 3 and occurrences of the substring abc:
Consider the language over = {a,b,c} that is the concatenation of arbitrary palindromes of length at least 3 and occurrences of the substring abc: L = {xx...xk|k 0, x = abc or x = x, x 3 for i = 1,..., k} . a) Give a CFG for L. b) Give a PDA for L. Although the generic CFG-PDA conversion will give you a correct answer, for full credit you should design a PDA directly using no more than 12 states.
Step by Step Solution
There are 3 Steps involved in it
21xxxx0 xabc ox 2 x 1x123 for 121 a CFG for L S AS A obcB 25 abc BaBabB... View full answer
Get step-by-step solutions from verified subject matter experts
