Question
Consider the alphabet , the null/empty string and the sets of strings , and generated by the corresponding non-terminals of a regular grammar. , and are related as follows:
Which one of the following choices precisely represents the strings in ?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2015 answer key
Solution
Solve the system of regular grammar equations using Arden's Theorem.
The system of equations is:
Substitute equation (3) into equation (2):
Applying Arden's Theorem ( since ):
Now substitute into equation (1):
This matches option C.
C
Incorrectly distributing into , which is not equivalent to
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 2
- Question
- 45 of 65, printed as CS Q.35
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.