Match List I with List II, where L1 is regular, L2 context-free, L3 recursive and L4 recursively enumerable. List I: (a) complement(L3) ∪ L4, (b) complement(L2) ∪ L3, (c) L1* ∩ L2. List II: (i) Context-free language, (ii) Recursively enumerable language, (iii) Recursive language.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. (a)-(ii); (b)-(iii); (c)-(i)
Explanation
Complement of a recursive set is recursive, and union with an RE set is RE. Complement of a CFL is recursive, and union with a recursive set is recursive. A regular set intersected with a CFL is context-free.
More Theory of Computation and Compilers questions
- How can the decision algorithm be constructed L for deciding whether context-free language is finite? CFGG (a) By constructing redundant in…
- Consider the following grammar : S → XY X → Y aY ∣ a and Y → bbX Which of the following statements is/are true about the above grammar? (a)…
- Which of the following problems is/are decidable problem(s) (recursively enumerable) on turing M machine ? G L(G) = ϕ (a) is a CFG with M M…
- For a statement L ⊆ Σ∗ A language is recursive if there exists M some turing machine . Which of the following conditions is satisfied for ω…
- Let r = a(a + b)*, s = aa*b and t = a*b be three regular expressions. Consider: (i) L(s) ⊆ L(r) and L(s) ⊆ L(t) (ii) L(r) ⊆ L(s) and L(s) ⊆…
- Consider the language L = {a^(nk) | k > 0}, where n is a fixed non-negative integer. The minimum number of states of a finite automaton acc…