1.

The given NFA represents which of the following NFA(a) (ab U a) *(b) (a*b* U a*)(c) (ab U a*)(d) (ab)* U a*I got this question in an online interview.The question is from Building Regular Expressions topic in portion Regular Expressions and Languages of Automata Theory

Answer»

Correct answer is (a) (ab U a) *

To EXPLAIN: The Regular expression (ab U a) * is converted to NFA in a SEQUENCE of stages as it can be CLEARLY SEEN in the diagram. This NFA consist of 8 stated while its minimized form only contains 2 states.



Discussion

No Comment Found

Related InterviewSolutions