InterviewSolution
Saved Bookmarks
| 1. |
Consider a CFG with the following productions.S → AA | BA → 0A | A0 | 1B → 0B00 | 1S is the start symbol, A and B are non-terminals and 0 and 1 are the terminals. The language generated by this grammar is(A) {0n 102n | n ≥ 1}(B) {0i 10j 10k | i, j, k ≥ 0} ∪ {0n 102n | n ≥ l}(C) {0i 10j | i, j ≥ 0} ∪ {0n 102n | n ≥ l}(D) The set of all strings over {0, 1} containing at least two 0’s(E) None of the above |
| Answer» | |