1

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$

$r_1$:
image of r1

$r_2$:
image of r2

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:

table for new z states r1r2

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.

obscurans
  • 3,422
  • Can you clarify:
    1. What does + and - mean? Accepting/final state and starting/initial state?
    2. When you ask for $r_1r_2$, do you mean $\left{xy\mid x\in r_1,y\in r_2\right}$ (concatenation) or $r_1\cup r_2$ (alternation)?
    3. Is this a DFA or NFA, and are you allowed to output a NFA?
    – obscurans May 27 '20 at 23:12
    • denotes starting state and - denotes final state. 2. The new (3rd) FA will accepts the language defined by the regular expression $(r_1 + r_2)$. 3. DFA and I no I'm not allowed to output NFA.
  • – Clint Theron May 27 '20 at 23:44
  • Isn't this backwards? You now have 3 starting states and 1 final state on $r_2$ – obscurans May 27 '20 at 23:48
  • Question. In my table, if I input a b in the starting state $z_1$ then it goes to the new state $z_3$ which is $x_1$ or $y_1$. Is $z_3$ a new starting state or neither starting nor final? – Clint Theron May 27 '20 at 23:53
  • Edited answer: 1. never a starting state 2. final as long as either $r_1$ accepts or $r_2$ accepts – obscurans May 27 '20 at 23:54
  • So the new FA, let's call it $FA_3$, have only 1 starting state ($z_1$)? – Clint Theron May 27 '20 at 23:56
  • That's part of the definition of a DFA. How else do you know where to start? – obscurans May 27 '20 at 23:57
  • Ohhh, so you one can only start at one state? I understand now. Thank you :) – Clint Theron May 27 '20 at 23:58
  • @ obscurans, is $z_1$ a starting and final state in $FA_3$? – Clint Theron May 28 '20 at 00:19
  • Think of the actual algorithm: you're given the empty string $\lambda$. Does it fit in $r_1+r_2$? It fits in $r_2$, because that DFA would have accepted, so yes. – obscurans May 28 '20 at 00:20