Regular-Grammar

Question 1

Consider alphabet ∑ = {0, 1}, the null/empty string λ and the sets of strings X0, X1 and X2 generated by the corresponding non-terminals of a regular grammar. X0, X1 and X2 are related as follows:

    X0 = 1 X1
    X1 = 0 X1 + 1 X2
    X2 = 0 X1 + {λ}

Which one of the following choices precisely represents the strings in X0?

A
10(0* + (10*)* 1
B
10(0* + (10)*)* 1
C
1(0 + 10)* 1
D
10(0 + 10)* 1 + 110(0 + 10)* 1
       Theory-of-Computation       Regular-Grammar       GATE 2015 [Set-2]
Question 1 Explanation: 
Convert the given transitions to a state diagram.

From the given diagram we can write,
X0 = 1(0+10)* 1
There is 1 question to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access