I have:

$$A = \{ab,c\}$$

$$B = \{c,ca\}$$

which represent two formal languages for the alphabet

$$\Sigma = \{a,b,c\}$$

How should I write

$$A^2 \cup B^2$$


$$A^2 \setminus B^2$$

I am more confused about squares, not about the operations themselves. It is ok if I will be downvoted, because I only want understand :)


The square denotes concatenation. We define $AB = \{w_1w_2 : w_1 \in A, w_2 \in B \}$, and then $A^2 = AA$.

In your example then, $A^2$ would be $\{abab, abc, cab, cc \}$.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.