S → AB | C
A → aAb | ab
B → cBd | cd
C → aCd | aDd
D → bDc | bc
How can I prove that this language is regular or not? I need your help. It also has two leftmost derivations. Does this help me to prove it?
S → AB | C
A → aAb | ab
B → cBd | cd
C → aCd | aDd
D → bDc | bc
How can I prove that this language is regular or not? I need your help. It also has two leftmost derivations. Does this help me to prove it?
The language denoted by your grammar is:
$L=\{a^nb^nc^md^m | n\geq 1,m \geq 1\}\cup \{a^nb^mc^md^n | n\geq 1,m \geq 1\}$
Hint: You can prove that this language is not regular using the pumping lemma.
Spoiler alert:
Use the word $\sigma= a^Nb^Mc^Md^N$ with $N\neq M$ and $K=N+M$ your pumping lemma constant.