edited by
291 views
0 votes
0 votes
If $A$ and $B$ are languages, define $A \diamond B = \{xy \mid x \in A\: \text{and}\: y \in B \;\text{and}  \mid x \mid = \mid y \mid \}$. Show that if $A$ and $B$ are regular languages, then $A \diamond B$ is a CFL.
edited by

1 Answer

0 votes
0 votes

Suppose,  A = { 0^n | n > 0 }    and

                 B = { 1^n | n > 0 }

     By def. of a and b having  any no of 0s and 1s repectively

 both are regular languages

BUT,   A ∘ B = { 0^n.1^n  | n >0 }

         which is a renowned  cfl .

same applies for →  B∘A

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
admin asked Oct 12, 2019
244 views
Let $A = \{wtw^{R}\mid w,t\in\{0,1\}^{\ast}\:\text{and} \mid w \mid = \mid t \mid \}$. Prove that $A$ is not a CFL.
0 votes
0 votes
0 answers
4