879 views

1 Answer

0 votes
0 votes
  1. Make variables vertices of the graph. 
  2. An edge from $V_{i}$ to $V_{j}$ iff there exists a production having $V_{i}$ at the left & $V_{j}$ at the right for the grammar of $L(M)$.
  3. If there is a cycle in the graph $L(M)$ is infinite, otherwise not. 

Hence, IMO given language is decidable.

Related questions