Which of the following statements is/are
View worked solution
Answer: B;C;D
Let us analyze each statement individually to determine its truth value:
-
Statement A: Every subset of a recursively enumerable language is recursive. (FALSE)
Let . The language is regular, which means it is also recursively enumerable (RE). However, the power set of is uncountable (), whereas the set of all recursive (decidable) languages is countable (since there are only countably many Turing machines). Therefore, there exist uncountably many subsets of that are not even recursively enumerable, let alone recursive. -
Statement B: If a language and its complement are both recursively enumerable, then must be recursive. (TRUE)
This is a fundamental theorem in computability theory (Post's Theorem). If both and are RE, we can construct a decider for by running the Turing machine for and the Turing machine for in parallel (interleaved fashion) on any input . Since must belong to either or , one of the two machines is guaranteed to halt and accept. This makes decidable (recursive). -
Statement C: Complement of a context-free language must be recursive. (TRUE)
Every context-free language (CFL) is recursive (decidable). Since the class of recursive languages is closed under complementation, the complement of any recursive language (and hence any CFL) is guaranteed to be recursive. -
Statement D: If and are regular, then must be deterministic context-free. (TRUE)
Regular languages are closed under intersection, so is regular. Since every regular language is also a deterministic context-free language (DCFL), is indeed a DCFL.
Free practice · Your answers on this page are not saved.
