0 votes 0 votes L={an bn n>=0;n is not a multiple of 3} (a) may or may not be a CFL. (b).Is a DCFL and hence CFL (c). is a CFL but not a DCFL. (d). is Recursive but not CFL. Please explain with its solution... gaurav456 asked Jul 10, 2016 gaurav456 1.5k views answer comment Share Follow See 1 comment See all 1 1 comment reply vijaycs commented Jul 10, 2016 reply Follow Share Ans- B.Is a DCFL and hence CFL. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes We want complement of L={a3n b3n} n>0 CFL is not closed under complement So, the language may or may not be CFL Ans A) srestha answered Jul 10, 2016 srestha comment Share Follow See all 3 Comments See all 3 3 Comments reply Jithin Jayan commented Jul 10, 2016 reply Follow Share L={a3n b3n} n>0 is DCFL right. and we need to find complement of this DCFL is closed under Complementation .SO it is DCFL and hence CFL right? We can do it like this for every 3 a's push an "x" into the stack and for every 3 b's pop out "x" and go to final state. This can be done by a DPDA. Hence DCFL. Complement of DCFL is also a DCFL. 2 votes 2 votes vijayp_ commented Nov 2, 2019 reply Follow Share Yes, it is DCFL and hence CFL. [B] Grammar for this is G = ({S}, {a, b}, S, S → ab|aabb|aaaSbbb). 1 votes 1 votes Kumar Adi commented Dec 13, 2019 reply Follow Share @srestha ma'am there is a mistake in the answer, I guess As the complement of a^3nb^3n will also include the string 'aaaa', but according to the question the string 'aaaa' should not belong to the language 0 votes 0 votes Please log in or register to add a comment.