GATE Computer ScienceHardGATE CS (PYQ pattern)
Which of the following statements are correct? I. Recursively enumerable languages are closed under union and intersection. II. Recursively enumerable languages are closed under complement. III. Recursive (decidable) languages are closed under arbitrary homomorphism. IV. Recursively enumerable languages are closed under arbitrary homomorphism.
- A. I, III and IV only
- B. I and II only
- C. I and IV only
- D. III and IV only
Correct answer: C. I and IV only
I: run both recognisers in parallel. II fails: the complement of HALT is not RE. III fails: an erasing homomorphism can project away a step-count from a decidable set { w#1ᵗ : M halts on w within t steps }, giving HALT. IV: guess the preimage and run the recogniser (nondeterminism/dovetailing).
More Theory of Computation questions
- L₁ and L₂ are context-free languages. Which statement about L₁ ∩ L₂ is always correct?
- The grammar S → aSb | SS | ab generates 14 strings of length 8. How many of these strings have MORE than one parse tree?
- How many strings of length 6 over {a, b} match the regular expression (a + ab)(b + ba)?
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {2,3}. Transitions: δ(0): a→{2}, b→{0,2,3}; δ(1): a→{0,1,2}…
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {1}. Transitions: δ(0): a→{0,1}, b→{1}; δ(1): a→{0,1,2,3}, b→∅…
- An ε-NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {0,3}. Transitions: δ(0): a→{1,2}, b→{3}, ε→∅; δ(1): a→{2}…