1.

Which of the following language regular?(a) {a^ib^i|i>=0}(b) {a^ib^i|0

Answer» RIGHT option is (b) {a^ib^i|0
For explanation: Here, i has limits i.e. the language is finite, contains few elements and can be GRAPHED USING a deterministic finite automata. THUS, it is regular. Others can be proved non regular using Pumping LEMMA.


Discussion

No Comment Found

Related InterviewSolutions