retagged by
830 views
1 votes
1 votes

Let $A$ be a regular language. Consider the following operations on $A$:

$2A:=\{xy \mid x, \: y \in A \text{ and } x=y\}$

$A^2 :=\{xy \mid x, \: y \in A\}$

One of these operations necessarily leads to a regular language and the other may not. Identify which is which. For the regular operation, give a proof that it is regular. For the non-regular operation, give an example of an $A$ such that applying the operation on it results in a non-regular language.

retagged by

2 Answers

0 votes
0 votes

2A is CSL . Because 2A={xx | x,y∈A and x=y}

But Ais regular , here A2  could takes any value whose multiplication is a square (1,4),(3,27) . So, A is regular means any power of A is also regular

Related questions

3 votes
3 votes
2 answers
2
go_editor asked May 27, 2016
636 views
Consider the code below, defining the function $A$:A(m, n, p) { if (p == 0) return m+n; else if (n == 0 && p == 1) return 0; else if (n == 0 && p == 2) return 1; else if ...
3 votes
3 votes
2 answers
3
3 votes
3 votes
2 answers
4