38 38 votes For any two languages $L_{1}$ and $L_{2}$ such that $L_{1}$ is context-free and $L_{2}$ is recursively enumerable but not recursive, which of the following is/are necessarily true? $\bar{L}_{1}$ ( Complement of $L_{1}$) is recursive $\bar{L}_{2}$ ( Complement of $L_{2}$) is recursive $\bar{L}_{1}$ is context-free $\bar{L}_{1}$ ∪ $L_{2}$ is recursively enumerable I only III only III and IV only I and IV only Theory of Computation gatecse-2015-set1 theory-of-computation recursive-and-recursively-enumerable-languages normal + – Misbah Ghaya 10.1k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply dm4006 commented Jan 31, 2018 reply Follow flag is recursive enemurable language is close under union 1 1 replyShare Ritik Jain RJ commented Dec 29, 2018 reply Follow flag In options there is no 2nd statement 😂 5 5 replyShare Hira Thakur commented Dec 17, 2022 reply Follow flag dm4006 yes, REL is closed under union. 0 0 replyShare Please log in or register to add a comment.
Best answer 53 53 votes Answer is D. $L_1$ is context-free and hence recursive also. Recursive set being closed under complement, $L_1$' will be recursive. $L_1$' being recursive it is also recursively enumerable and Recursively Enumerable set is closed under Union. So, $L_1' \cup L_2$ is recursively enumerable. Context free languages are not closed under complement, so $III$ is false Recursive set is closed under complement. So, if $L_2$' is recursive, ($L_2$')' $= L_2$ is also recursive which is not the case here. So, $II$ is also false. Arjun answered Feb 11, 2015 • edited Jun 15, 2018 by Milicevic3306 Arjun comment Share Follow See all 4 Comments 4 4 Comments reply Nit9 commented Dec 17, 2015 reply Follow flag descrition for statement II. -> recursively enumerable is not closed under complementation. so given, L2 is recursively enumerable but not recursive, -> complement of L2 is not recursively enumerable hence not recursive also Therefore statement II. is false. 6 6 replyShare iarnav commented Oct 30, 2017 reply Follow flag @Arjun Why can't we use the same explanation for - L1¯ ( Compliment of L1) is recursive Explanation - L1 is context-free and hence recursive also. Recursive set being closed under complement, L1' will be recursive (as given by you) I guess, it's because of the word Necessarily True and in 1) we take L1 = CFL and CFL are not closed under complement and hence L1 may or may not be CFL and L1 can only be REC iff L1' is CFL ,but that's not guaranteed. whereas in 4) because of UNION and L2 being {R.E} it's a sure shot case of always being true? Am I making any sense? 0 0 replyShare roh commented Jul 9, 2020 reply Follow flag I also have same doubt. L1'is actually CSL and therefore REC but some REC are not CSL. Therefore there are some REC which is not included in the L1'. Now, L1' ∪ L2 is actually ∪ of REC(actually CSL) and RE but not REC and how it will be equal to RE as it will still not include REC language completely. I could interpret this using Chomsky hierarchy diagram. Please confirm. 0 0 replyShare thewittywizard commented Nov 27, 2025 reply Follow flag My doubt is that L1 could also be Recursive Enumerable. CFL not being closed under complement means that it could be any of its supersets. 0 0 replyShare Please log in or register to add a comment.
1 1 vote The following statement is necessarily true: L¯1 (Complement of L1) is recursive The complement of a context-free language is recursive, because a context-free language can be recognized by a non-deterministic pushdown automata (PDA), and the complement of a language recognized by a PDA can be recognized by a deterministic finite automata (DFA), which is a simpler machine. The following statement is not necessarily true: L¯2 (Complement of L2) is recursive The complement of a recursively enumerable but not recursive language may or may not be recursive. If L2 is recursive, then L¯2 is recursive. But if L2 is not recursive, then L¯2 is not recursive. The following statement is not necessarily true: L¯1 is context-free The complement of a context-free language is not necessarily context-free. Since context-free languages can be recognized by pushdown automata, and the complement of context-free languages may not be recognizable by any pushdown automata, it may not be context-free. The following statement is not necessarily true: L¯1 ∪ L2 is recursively enumerable The union of two languages may or may not be recursively enumerable. It depends on the specific languages L1 and L2, and whether or not their union is recursively enumerable can only be determined by analyzing the properties of those specific languages. Johnny1001 answered Jan 15, 2023 Johnny1001 comment Share Follow 0 reply Please log in or register to add a comment.