Hi I'm learning about finite state automata. I understand what a language is but I don't understand what this syntax is telling me about it.
$L = {\{a,b\}}^{*}{\{aa,bb\}}{\{a,b\}}^{*} $
Could you help me understand why the strings {aa, bb, aaa, aab, baa, bba, bbb, baaa, baab, abba} belong to the language?
Thanks
The operation $*$ is known as the Kleene star. Given a set $S$ of strings, then $S^*$ is the set of all strings over characters in $S$, including the empty string $\epsilon$.
Given $S=\{a,b\}$, then $S^*$ contains all possible strings that can be constructed using the characters $a$ and $b$ including $\epsilon$. For example $\{\epsilon, a, b, aa, aaa, b, bb, bbb, ab, abb\}$ is a subset of $S^*$ as well as $\{ababa, abbba ,baaa, baba\}$ and so on.
Thus, $L=\{a,b\}^*\{aa,bb\}\{a,b\}^*$ contains all possible strings that can be constructed by the following algorithm:
Example:
Concatenating 1, 2, 3 yields $\epsilon aa \epsilon=aa$. We can generate all strings from $L$ this way.