Consider the grammar generated by $1 \leq i, j \leq n, i \neq j$ using the following template:
$$
\begin{aligned}
& \mathrm{S} \rightarrow \mathrm{X}_i \mathrm{z}_i \\
& \mathrm{X}_i \rightarrow \mathrm{y}_j \mathrm{X}_i \\
& \mid \mathrm{y}_j
\end{aligned}
$$
The resulting grammar has $O\left(n^2\right)$ productions.
(a) Show that the CFSM for this grammar has $O\left(2^n\right)$ states.
(b) Explain why the grammar is, or is not, SLR(1).