Here are the steps to construct an NFA-ε equivalent to the given regular expressions:
1. ε + a b (a+b)*
- States: q0, q1, q2
- Transitions: q0 -> q1 on ε, q0 -> q2 on a, q1 -> q1 on a/b, q1 -> q2 on b
- Start state: q0
- Final states: q2
2. (0+1)* (00+11)
- States: q0, q1, q2, q3
- Transitions: q0 -> q0 on 0/1, q0 -> q1 on 0/1
Related topics: