1 votes 1 votes L = ( {a^mb^n: m ≤ n ≤ 2m}). Is the CFL or not??? atul_21 asked Nov 27, 2017 atul_21 856 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments rahul sharma 5 commented Nov 27, 2017 reply Follow Share https://gateoverflow.in/169022/toc-identify-class-of-language 1 votes 1 votes Rupendra Choudhary commented Nov 27, 2017 reply Follow Share Rahul , it's CFL. i'll rectify my answer there. 0 votes 0 votes reboot commented Dec 26, 2020 reply Follow Share yes CFL but not DCFL. We can re-write this question as L = ( {$a^{m}b^{n}$: m =n or m=2n}). 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes S-->aSb/aSbb/NULL Above is cfg for given language. jatin saini answered Nov 27, 2017 jatin saini comment Share Follow See all 2 Comments See all 2 2 Comments reply atul_21 commented Nov 28, 2017 reply Follow Share If CFG is possible then it is CFL? But I'm unable to think PDA for this. How will I accept the string. aaabbbbb ? 0 votes 0 votes jatin saini commented Nov 28, 2017 reply Follow Share Here we can have NPDA. The below NPDA is for language ={a^n b^m:n<=m<=3n} Similarly we can also have npda for given language. All transitions are same except for third transition on a. In npda we can have multiple copies of stack. So for your i/p aaabbbbb for first two a we push 2b and for last a we push one b into the stack,and string will be accepted. 0 votes 0 votes Please log in or register to add a comment.