1.

Which of the given regular expressions correspond to the automata shown?(a) (110+1)*0(b) (11+110)*1(c) (110+11)*0(d) (1+110)*1The question was posed to me in unit test.This interesting question is from DFA to Regular Expressions topic in portion Regular Expressions and Languages of Automata Theory

Answer»

Right answer is (c) (110+11)*0

To explain I would say: There is no STATE change for union operation, but has two different paths while for concatenation or dot operation, we have a state change for EVERY element of the STRING.



Discussion

No Comment Found

Related InterviewSolutions