Let be a language and be its complement. Which one of the following is NOT a viable possibility?
View worked solution
Answer: C
To determine which option is NOT a viable possibility, we use a fundamental theorem in the theory of computation:
Theorem: A language is recursive (decidable) if and only if both and its complement are recursively enumerable (r.e.).
Let's analyze each option based on this theorem:
- Option A: Neither nor is r.e.
This is a viable possibility. For example, if we take a language that is highly undecidable (beyond the class of r.e. and co-r.e. languages), neither the language nor its complement will be recursively enumerable. - Option B: One of and is r.e. but not recursive; the other is not r.e.
This is a viable possibility. For example, the Halting Problem language is r.e. but not recursive, whereas its complement is not r.e. - Option C: Both and are r.e. but not recursive.
According to the theorem, if both and are r.e., then (and consequently ) must be recursive. Therefore, they cannot be "r.e. but not recursive". This is not a viable possibility. - Option D: Both and are recursive.
This is a viable possibility. The class of recursive languages is closed under complementation. For example, any regular or context-free language is recursive, and its complement is also recursive.
Thus, Option C is the only non-viable scenario.
Free practice · Your answers on this page are not saved.
