Write a minimal DFA for the language $L = \{(ab)^n \mid n \geq 0\}$
My attempt:
I currently haven't completed the solution, but my main problem is to find a simpler solution for this as the procedure I have followed so far doesn't seem to add up. What I did was:
1) I created a DFA that you can see here
2) Now I was following the procedure to minimize the DFA using the Systematic Reduction Method as shown here. (It isn't complete)
There has to be some way to make a DFA without going through all of this, but I simply can't think of it.
I assume that you are tring to draw minimal DFA for the language $L = \{(ab)^n \mid n \geq 0\}$.
Non - deterministic finite automata (NFA) will be:
Add all missing transitions, so it will became deterministic finite automata (DFA):
Note that it is minimal DFA because minimization algorithm for DFA will give $3$ states only:
$$ \begin{array}{c|cc} & a& b\\\hline q_0 & q_1 & \text{dead}\\ q_1 & \text{dead} & q_0\\ \text{dead} & \text{dead} & \text{dead}\\ \end{array} $$ Now, $\pi_0 = \{(q_0, \text{dead}), (q_1)\}$
$\pi_1 = \{(q_0), (\text{dead}), (q_1)\}$
$\pi_2 = \{(q_0), (q_1), (\text{dead})\}$
Therefore, $\pi_1 = \pi_2$. So, given DFA is minimal which has only $3$ states: $q_0, q_1,$ and, $\text{dead}$.