1.

Which of the following pairs of regular expression are equivalent?(a) 1(01)* and (10)*1(b) X(xx)* and (xx)*x(c) 1(01)* and (10)*1 & X(xx)* and (xx)*x(d) None of the mentionedThe question was asked in my homework.The query is from Obtaining the regular Expression from the Finite automata topic in section Finite Automata and Regular Expression of Compiler

Answer»

The CORRECT answer is (c) 1(01)* and (10)*1 & X(xx)* and (xx)*x

The best I can explain: R1 and R2 are REVERSE of each other. If ant ONE of them can be generated them the other can be generated as well.



Discussion

No Comment Found

Related InterviewSolutions