Is there any polynomial procedure to decide if 2 deterministic finite automatas decide the same language?
Asked
Active
Viewed 1,130 times
2 Answers
1
By Myhill-Nerode, the minimal DFA for a regular language is unique. You can minimize both and check that they are equal.
mrk
- 3,748
- 23
- 35
1
Let $D_1,D_2$ be the automata in question, and let $L_1,L_2$ be the corresponding languages. Using standard construction one can construct an automaton $D$ for $L_1 \triangle L_2$ (the symmetric difference of $L_1$ and $L_2$), and then one checks whether this automaton accepts any words.
Yuval Filmus
- 280,205
- 27
- 317
- 514