February 24, 2026
regex we can associate a \lambda-NFA. How?
A=(\Sigma,Q,\delta,q_0,F) DFA to find the minimum DFA for \mathcal L(A), first remove all unreachable states from q_0 Exercici 8 (part a and c)
Idea
For a minimum DFA recognizing the same language as A, we need to identify states that are equivalent w.r.t. accepting words.
p,q\in Q
p\sim q means
\forall w\in \Sigma^*,
\delta(q,w)\in F \iff \delta(p,w)\in F.
[p] := \{q\in Q \mid p\sim q\}
A/_\sim=(\Sigma, \{[p] \mid q\in Q\}, \delta', [q_0], \{[q] \mid q\in F\}) where \delta'([q],a) := [\delta(q,a)] is the minimum DFA equivalent to A.
How do we compute A/_\sim?
p\sim_i q means
\forall w\in \Sigma^*,
if |w| \leq i, then
\delta(q,w)\in F \iff \delta(p,w)\in F.
Properties
Moore’s algorithm:
Compute A/_\sim via a partition refinemenet algorithm that iteratively computes \sim_i until it stabilizes, i.e., until \sim_i and \sim_{i+1} are the same.
What is the worst-case cost of Moore’s algorithm? An example when this happens?
Given two arbitrary languages L_1,L_2 let L_1\Delta L_2 = (L_1\cup L_2)\setminus (L_1\cap L_2)\ .
Which of the following statements is false?
Which of the following is a minimum DFA over the alfabeth \Sigma=\{a,b\}?
\begin{array}{r|ll} & a & b \\ \hline \to A & B & A \\ B & B & C\\ C & D & A \\ D & D & E\ \text{+}\\ E & D & F\ \text{+}\\ F & F & D\ \text{+} \end{array}
\begin{array}{r|ll} & a & b \\ \hline \to A & B & A \\ B & B & C\\ C & D & A \\ D & B & C\ \text{+} \end{array}
\begin{array}{r|ll} & a & b \\ \hline \to A & B & B \\ B & C & C \ \text{+}\\ C & D & D \\ D & E & E\\ E & F & F\ \text{+}\\ F & A & A \end{array}