All mock tests are FREE till 31 December — register to save your progress

How can the decision algorithm be constructed L for deciding whether context-free language is finite? CFGG

(a) By constructing redundant in CNF L generating language −−

(b) By constructing non-redundant CFG G in CNF L generating language CFGG

(c) By constructing non-redundant in CNF L − {∧}(∧ generating language stands for null) Which of the following is correct?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. (c) only

Explanation

Build a non-redundant CNF grammar for L − {ε} and check its variable-dependency graph for cycles: finite iff there are none.

More Theory of Computation and Compilers questions