1.

The following is/are an approach to process a regexp:(a) Contruction of NFA and subsequently, a DFA.(b) Thompson’s Contruction Algorithm(c) Both (a) and (b)(d) None of the mentionedThe question was posed to me in homework.My question is from Converting Regular Expressions to Automata topic in portion Regular Expressions and Languages of Automata Theory

Answer»

The CORRECT answer is (c) Both (a) and (b)

To elaborate: A regexp processor TRANSLATES the syntax into internal representation which can be executed and matched with a string and that internal representation can have SEVERAL approaches LIKE the ONES mentioned.



Discussion

No Comment Found

Related InterviewSolutions