Is the language $=\{^.^.^j.^i:,≥0\}$ context free language?

49 Views Asked by At

Is the language $=\{^.^.^j.^i:,≥0\}$ context free language? If yes, what is the context-free grammar?

1

There are 1 best solutions below

0
On BEST ANSWER

I think, this is a context free language. The Context Free Grammar for this would be: $$ S \rightarrow aSd\ |\ B\\ B \rightarrow bBc\ |\ e $$ Where $e$ is the empty charachter. You can arrive at this by looking at a similar Language which has an easier to guess grammar, $L^{'}=\{a^{n}b^{n}:n\ge0\}$, which has the grammar $S^{'}\rightarrow\ aSb\ |\ e$.