Good day,
I was given the below question that relates to Kleene's Theorem (RE to FA):
Question
Consider the following FA's with the corresponding regular expressions $r_1$ and $r_2$
Build an FA for the regular expression $r_1r_2$ by applying Kleene's theorem (do not formulate any regular expression)
Note:
I only need to create a table with the z states. I know how to do this but I get stuck when the new z state is a starting state in one FA but not in the other one. Let me give you an example:
Is z3 also a starting state (-z3), because it circles back to itself, in $r_1$, if the input in -z1 is a b or not? Is there only one starting state in the new FA for $r_1r_2$?
This is the only thing I get stuck on. I need to know this if I want to finish the table and draw the new FA for $r_1r_2$.
Thank you.



I am going to presume the following interpretations:
For the specific special case of two DFA inputs to $r_1|r_2$, you can simulate both paths at once in parallel.
These general constructions work for any input, including NFAs:
To construct the concatenation $r_1r_2$, that is $\left\{xy\mid x\in r_1,y\in r_2\right\}$, simply do the following:
To construct the alternation $r_1|r_2$, that is $r_1\cup r_2$, simply do the following:
You can consider all transitions that lead to state X to be copied (keeping the original) to lead to wherever X goes to under $\epsilon$-transitions.
Nothing will avoid having multiple transitions - this is, after all, a real use of nondeterminism. The $\epsilon$-transitions represent "guessing", either where the end of the first substring part is (for $r_1r_2$) or which type of string to match to begin with (for $r_1|r_2$).
The NFA$\rightarrow$DFA conversion of course can lead to exponential blowup (the new set of states is the powerset, i.e. set of all subsets, of the original states). Typically the number of reachable subset-states is very limited.