NFA to DFA Converter
Convert Non-Deterministic Finite Automata (NFA) to Deterministic Finite Automata (DFA) using the Powerset Construction algorithm. Visualize state tables and transitions.
Define NFA Transitions
Enter target states separated by commas (e.g. "q0, q1"). Leave empty for no transition.
DFA Result
State Mapping Legend
About
This tool converts a Non-Deterministic Finite Automaton (NFA) into an equivalent Deterministic Finite Automaton (DFA) using the standard Powerset Construction (also known as Subset Construction) algorithm. In Automata Theory, while NFAs are easier to design, DFAs are required for efficient hardware and software implementation.
The converter calculates the transition function δ' for the DFA by tracking the set of all reachable states in the NFA for every input symbol. It automatically handles the Dead State (trap state) and identifies the new set of Final States.
Formulas
The core of the conversion lies in the definition of the DFA transition function δ'. For a subset of NFA states S ⊆ Q and an input symbol a ∈ Σ:
A state S in the DFA is an accepting state if and only if it contains at least one accepting state from the NFA:
Reference Data
| Term | Symbol | Definition |
|---|---|---|
| State Set | Q | A finite set of states in the automaton. |
| Alphabet | Σ | A finite set of input symbols (e.g., {0, 1}). |
| Transition (NFA) | δ | δ: Q × Σ → P(Q) (Maps to a set of states) |
| Transition (DFA) | δ' | δ': Q' × Σ → Q' (Maps to a single state) |
| Start State | q0 | The initial state where computation begins. |
| Final States | F | The set of accepting states. |