GATE CS 2015, set 2 · Question 60 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the alphabet Σ = {0, 1}, the null/empty string λ and the sets of strings X₀, X₁, and X₂ generated by the corresponding non-terminals of a regular grammar. X₀, X₁, and X₂ are related as follows.
X₀ = 1 X₁ ; X₁ = 0 X₁ + 1 X₂ ; X₂ = 0 X₁ + {λ}
Which one of the following choices precisely represents the strings in X₀?
- (A) 10(0^* + (10)^*)1
- (B) 10(0^* + (10)^*)^*1
- (C) 1(0 + 10)^*1
- (D) 10(0 + 10)^*1 + 110(0 + 10)^*1
Answer
Answer (C)
Answer from the official GATE CS 2015 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes