I know that it is decidable problem to check whether given context free grammar represents empty language -- for instance, AFAIR one could convert it to Chomsky normal form, and then check if any word of length $\leq 2^n$ (or maybe $\leq 2^{n+1}$, I'm not sure) belongs to the language, where $n$ is IIRC the number of nonterminals in CNF. If not, then no longer words belong either and the grammar is empty.
The above algorithm has the unpleasant property of having exponential complexity. The questions that interest me are:
- Is there a polynomial algorithm to check whether given CFG represents empty language?
- What's the (asymptotically) best known algorithm for that?
- What's the simplest polynomial algorithm for that (not necessarily having best known complexity)?