InterviewSolution
Saved Bookmarks
| 1. |
Which of the following pairs of regular expressions are equivalent?(a) 1(01)* and (10)*1(b) x (xx)* and (xx)*x(c) x^+ and x^+ x^(*+)(d) All of the mentionedThe question was asked in semester exam.Enquiry is from Finite Automata and Regular Expressions in division Compiler Introduction of Compiler |
|
Answer» CORRECT OPTION is (d) All of the mentioned For explanation: Rule (pq)*p=p (QP)* Therefore–(xx*) (x*x**) (xx*)(x*x*)[USING x**=x] (xx*)(x*)[Using x*x*=x*] (xx*)[Using x*xx*=x*) x+ |
|