1.

Find the pair of regular expressions that are equivalent.(a) (0+1)* and (0*+1*)*(b) (0+1)* and (0+1*)*(c) (0+10)* and (0*+10)*(d) All of the mentionedThis question was addressed to me at a job interview.My doubt is from The NFA with n-moves to the DFA topic in division Finite Automata and Regular Expression of Compiler

Answer» RIGHT OPTION is (d) All of the mentioned

Easy EXPLANATION: All generate all strings of 0’s and 1’s thus are these pairs are EQUIVALENT.


Discussion

No Comment Found

Related InterviewSolutions