Which of the following is true?
View worked solution
Answer: A
Let's analyze each option based on the closure properties of language families:
- The complement of a recursive language is recursive:
True. Recursive languages (decidable languages) are closed under complementation. If a language is decided by a Turing Machine (which halts on all inputs), we can construct a Turing Machine to decide the complement by swapping the accepting and non-accepting halting states of . Since always halts, also always halts. Thus, is recursive. - The complement of a recursively enumerable language is recursively enumerable:
False. Recursively enumerable (RE) languages are not closed under complementation. If a language and its complement are both RE, then must be recursive. Since there exist languages that are RE but not recursive (such as the Halting Problem), their complements are not RE. - The complement of a recursive language is either recursive or recursively enumerable:
Since the complement of a recursive language is strictly recursive, Option A is the standard and precise statement of the closure property. - The complement of a context-free language is context-free:
False. Context-free languages are not closed under complementation. For example, the languages and are context-free, but their intersection is not context-free. Since intersection can be expressed using union and complementation () and CFLs are closed under union, they cannot be closed under complementation.
Therefore, the correct option is A.
Free practice · Your answers on this page are not saved.
