1.

Which of the following steps are wrong with respect to infiniteness problem?(a) Remove useless variables(b) Remove unit and epsilon production(c) Create dependency graph for variables(d) If there is a loop in the dependency graph the the language is finite else infiniteI have been asked this question in examination.My question is based upon Intersection with Regular Languages topic in division Properties of Context Free Languages of Automata Theory

Answer»

Right option is (d) If there is a LOOP in the dependency graph the the language is finite else INFINITE

To explain I would SAY: If we are able to DETECT a loop in the FORMED dependency graph, then the language in infinite.



Discussion

No Comment Found

Related InterviewSolutions