Q. 1
Give Context-free Grammars generating the following languages:
- (a)i) The set of strings over the alphabet {a,b} with more a's than b's. ii) The set of strings over the alphabet {a,b} with more a's than b's. {w#x/w is a substring of x for w, x ∈ {0,1}*}
- (b)Give state diagrams of NFAs with the specific number of states recognizing each of the following languages considering alphabet is {0,1}. i) The language {w | w ends with 00} with three states. ii) The language 1 (001+) with three states.
Not yet checked
(20)