3 3 votes L = {w | no of 0's in w != no of 1's in w and w Ɛ(0+1)*} What is the Language L? a. Regular b. CFL C. CSL Theory of Computation theory-of-computation regular-language + – Arnab Bhadra 1.6k views answer comment Share Follow Print See all 14 Comments 14 14 Comments reply Red_devil commented Nov 22, 2017 reply Follow flag B. CFL 0 0 replyShare Ashwin Kulkarni commented Nov 22, 2017 reply Follow flag B. CFL (because we need to count number of 0's and then need to compare it with no. of 1's using stack) 0 0 replyShare akash.dinkar12 commented Nov 22, 2017 reply Follow flag Its B... 0 0 replyShare Diksha Aswal commented Nov 22, 2017 reply Follow flag B option is correct 0 0 replyShare Shubhanshu commented Nov 22, 2017 reply Follow flag infact it is DCFL. 1 1 replyShare just_bhavana commented Nov 22, 2017 i edited by just_bhavana Nov 22, 2017 reply Follow flag Yes, because DCFLs are closed under complementation and $\overline{L}$ is nothing but language of strings having equal number of 0's and 1's 2 2 replyShare Hemant Parihar commented Nov 22, 2017 reply Follow flag @just_bhavana, you are correct Language will be DCFL, but $\bar{L}$ is not {$0^n$$1^n$ | n >= 0}. Here there is no specific order like all the 1's are followed by all the 0's. OR all the 0's is followed by all the 1's. 1 and 0 can occur in any order. 2 2 replyShare Diksha Aswal commented Nov 22, 2017 reply Follow flag Yes, { 0n1n|n≥0 } it is not able to accept 010101.... or any order of 0 and 1 with equal number of 0's and 1's 1 1 replyShare Anu007 commented Nov 22, 2017 reply Follow flag what about {1n0n | n>=1} 0 0 replyShare Diksha Aswal commented Nov 22, 2017 reply Follow flag It means there must be atleast one string forming 10 but it still not able to from any order f 0 and 1 it will form 10,1100,111000, .. 0 0 replyShare Anu007 commented Nov 22, 2017 reply Follow flag Diksha m not sying this is language but i was saying she miss these strings atleast since 0 and 1 are equal. 0 0 replyShare Diksha Aswal commented Nov 22, 2017 reply Follow flag yes, right 0 0 replyShare just_bhavana commented Nov 22, 2017 reply Follow flag yes @hemant, thanks for the correction. It will simply accept all strings over {0,1} having equal number of 0's and 1's 0 0 replyShare Shubhanshu commented Nov 22, 2017 reply Follow flag Complement will n0 = n1. 0 0 replyShare Please log in or register to add a comment.