Consider the following types of languages: : Regular, : Context-free, : Recursive, : Recursively enumerable. Which of the following is/are TRUE ?
- is recursively enumerable.
- is recursive.
- is context-free.
- is context-free.
View worked solution
Answer: D
To determine which statements are true, let us analyze the closure properties of the given language classes:
- : Regular
- : Context-free (CFL)
- : Recursive (Decidable)
- : Recursively Enumerable (RE / Turing-recognizable)
Statement I: is recursively enumerable.
- Since is recursive, its complement is also recursive.
- Every recursive language is also recursively enumerable (RE), so is RE.
- Since is RE and the class of RE languages is closed under union, the union is recursively enumerable.
- Therefore, Statement I is TRUE.
Statement II: is recursive.
- Every context-free language is recursive (). Thus, is recursive.
- Since recursive languages are closed under complementation, is recursive.
- Since both and are recursive, and recursive languages are closed under union, is recursive.
- Therefore, Statement II is TRUE.
Statement III: is context-free.
- Since is regular, its Kleene closure is also regular.
- is context-free.
- The intersection of a regular language and a context-free language is always context-free ().
- Therefore, Statement III is TRUE.
Statement IV: is context-free.
- is context-free, but context-free languages are not closed under complementation. Thus, is not necessarily context-free.
- If we choose (which is regular), then , which may not be context-free.
- Therefore, Statement IV is FALSE.
Since statements I, II, and III are true, the correct option is D.
Free practice · Your answers on this page are not saved.
