I was practicing for an exam of CFG and I'm struggling with this CFG:
$L =\{a^ib^jc^k | j \le i+k\}$
I tried this CFG but is ambiguous:
$$S\to AXC$$ $$A\to aA|\lambda$$ $$C\to cC|\lambda$$ $$X\to YZ$$ $$Y\to aYb|\lambda$$ $$Z\to bZc|\lambda$$
If anyone can help me with this expression to make it unambiguous I will really appreciate it.