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 (a + b)*abb. Which expression denotes a⁻¹L?
- A. (a + b)*abb
- B. (a + b)*bb
- C. (a + b)*abb + bb
- D. (a + b)*abb + b
Correct answer: C. (a + b)*abb + bb
Reading a either belongs to the (a + b)* prefix (leaving the whole language) or is the a of the final abb (leaving bb). So a⁻¹L = L + bb.
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 (ab + b)a. Which expression…
- 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?