InterviewSolution
Saved Bookmarks
| 1. |
Here is a context-free grammar G: S → AB A → 0A1 | 2 B → 1B | 3A which of the following strings are in L (G)?(a) 021300211(b) 022111300211(c) None of the mentioned(d) 021300211 & 022111300211This question was addressed to me during an internship interview.My question is based upon The NFA with n-moves to the DFA in portion Finite Automata and Regular Expression of Compiler |
|
Answer» Correct option is (d) 021300211 & 022111300211 |
|