$$L=\{\, w \in\{a,b,c\}^* :w=a^ib^jc^k, j=\max\{i,k\}\,\}$$
I think I proved it not context-free using pumping lema for CFL, but I'm not sure I'm doing it right. So, if someone knows grammar that generate this languge let me know =)
$$L=\{\, w \in\{a,b,c\}^* :w=a^ib^jc^k, j=\max\{i,k\}\,\}$$
I think I proved it not context-free using pumping lema for CFL, but I'm not sure I'm doing it right. So, if someone knows grammar that generate this languge let me know =)
The language is not context-free.
Suppose that $\newcommand{\AA}{\mathtt{a}}\newcommand{\BB}{\mathtt{b}}\newcommand{\CC}{\mathtt{c}} p$ is a pumping length for $L$, and consider the string $s = \AA^p \BB^p \CC^p$. Then we may rewrite $s$ as $uvxyz$ where
Hint: Note that the substring $vxy$ is of the form $\AA^q \BB^r \CC^s$ for some $q,r,s \geq 0$ (not all zero). Show that the following cases are impossible:
Now note that there are no cases remaining!