1.

Which of the following identity is wrong?(a) R + R = R(b) (R*)* = R*(c) ƐR = Rɛ = R(d) ØR = RØ = RR*I have been asked this question in a job interview.Origin of the question is Right Left Linear Grammar in section Contextfree Grammar and Syntax Analysis of Compiler

Answer»

Right answer is (d) ØR = RØ = RR*

The best explanation: REGULAR GRAMMAR combined with empty does not give R* instead gives empty.



Discussion

No Comment Found

Related InterviewSolutions