Give algorithms to decide the following$:$
- Is $L(G)$ fi nite, for a given CFG $G?$ Hint$:$ Use the pumping lemma.
- Does $L(G)$ contain at least $100$ strings, for a given CFG $G?$
- Given a CFG $G$ and one of its variables $A,$ is there any sentential form in which $A$ is the rst symbol. Note$:$ Remember that it is possible for $A$ to appear first in the middle of some sentential form but then for all the symbols to its left to derive $\in.$