2 2 votes L={a^n b^n a^n |n=1,2,3.........} is an example of a language that is a)context free b)not context free c)not context free but whose complement is CF d)context free but whose complement is not CF Theory of Computation theory-of-computation + – aaru14 2.4k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply joshi_nitish commented Nov 13, 2017 reply Follow flag it is not CFL but its complement is CFL $\bar{L}$ = b(a+b)* ∪ {ambna*|m$\neq$n, m,n>=0} ∪ {a*bman|m≠n, m,n>=0} ∪ {amb*an|m$\neq$n, m,n>=0} ∪ {ambna(a+b)*|m$\neq$n,m,n>=1} + eps above language is union of CFL's and regular, therefore it is CFL 4 4 replyShare aaru14 commented Nov 13, 2017 reply Follow flag what u did am not getting. how to find the complement of {a^n b^n a^n } 0 0 replyShare Sumit Rana 1 commented Aug 22, 2018 reply Follow flag just put opposite conditions of (a^n b^n a^n) like first-: starting with 'b' = b(a+b)* then-: first a's not equal to first b's = (a^m b^n a*; m,n > 0; m != n) then-: first b's and second a's not equal = (a* b^n a^m; n,m > 0; m != n) then-: first a's and second a's not equal = (a^n b* a^m; n,m >0; m != n) then-: epsilon this will result in Union of Regular and CFL's which is CFL only 0 0 replyShare Please log in or register to add a comment.