in Theory of Computation
285 views
0 votes
0 votes
Let $L_1$ be the language $L_1 =$ {$a^nb^mc^k : n = m$ or $m ≤ k$} and $L_2$ the language $L_2 =$ {$a^nb^mc^k : n + 2m = k$}. Show that $L_1 ∪ L_2$ is a context-free language.
in Theory of Computation
285 views

1 Answer

0 votes
0 votes

 

S→ AB | CDE | F

A→aAb |  λ

B→ Bc  |  λ
C→ aC  |  λ

D→bDc | λ
E→ Ec   |  λ

F→aFc | G

G→bGcc | λ

Related questions