0
5.6kviews
Design a DFA for the regular expression (a+b)*aba
1 Answer
written 7.0 years ago by |
$\epsilon$-–NFA for the problem is \ltcenter\gt![enter image description here][1]\lt/center\gt | States\Inputs | a | b | |---------------|---------|--------| | S | {B,C,D} | {B,C} | | A | {B,C} | {B,C} | | B | {D} | $\Phi$ | | C | {D} | $\Phi$ | | D | $\Phi$ | {E} | | E | {F} | $\Phi$ | | F | $\Phi$ | $\Phi$ |
S:
A:
B:
C:
D:
E:
F:
NFA for the problem is
States\Inputs | a | b |
---|---|---|
S | {B,C,D} | {B,C} |
A | {B,C} | {B,C} |
B | {D} | {I} |
C | {D} | {I} |
D | {I} | {E} |
E | {F} | {I} |
F | {I} | {I} |
I | {I} | {I} |
Final DFA is