GATE Computer ScienceHardGATE CS (PYQ pattern)
For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (ab + b)*a. Which expression denotes b⁻¹L?
- A. b(ab + b)*a
- B. (ab + b)*a + ε
- C. (ab + b)*a
- D. (b + ab)*
Correct answer: C. (ab + b)*a
A string of L beginning with b must start with the factor b (ab starts with a, and the final a is not b). Removing that factor leaves any string of (ab + b)*a, so b⁻¹L = L itself. ε ∉ b⁻¹L since b ∉ L, and (b + ab)* lacks the final a.
More Theory of Computation questions
- For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (a + b)a(a + b)(a + b). Which…
- For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (a + ba)b. Which expression…
- For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (aa + b). Which expression…
- How many strings of length 20 over {a, b} do not contain aaa as a substring?
- How many binary strings of length exactly 16 (leading zeros allowed) represent a number divisible by 5?
- How many binary strings of length 12 contain no two consecutive 1s and, read as a binary number (leading zeros allowed), are divisible by 3?