1.

What the following DFA accepts?(a) x is a string such that it ends with ‘101’(b) x is a string such that it ends with ‘01’(c) x is a string such that it has odd 1’s and even 0’s(d) x is a strings such that it has starting and ending character as 1I have been asked this question in homework.This interesting question is from Deterministic Finite Automata-Introduction and Definition in section Finite Automata of Automata Theory

Answer» CORRECT choice is (a) x is a STRING such that it ends with ‘101’

For EXPLANATION I would say: Strings such as {1101,101,10101} are being ACCEPTED while {1001,11001} are not. Thus, this conclusion LEADS to option a.


Discussion

No Comment Found

Related InterviewSolutions