1
4.2kviews
Construct a DFA that accepts set of all substrings over the alphabet $\sum={a,b}$ containing wither the substring aaa or bbb
1 Answer
1
163views

enter image description here

- 0 1
$\rightarrow$ $q_0$ $q_1$ $q_4$
$q_1$ $q_2$ $q_4$
$q_2$ $q_3$ $q_4$
$*q_3$ $q_3$ $q_3$
$q_4$ $q_1$ $q_5$
$q_5$ $q_1$ $q_6$
$*q_6$ $q_6$ $q_6$
Please log in to add an answer.