AlgoFrames

NFA to DFA

Standard · Predict the result · about 6 min

The NFA below accepts strings that end with 01. State a loops on 0 and 1, a also goes to b on 0, and b goes to c on 1.

In the subset construction, the DFA state {a, b} reads 1. Which set of NFA states does it go to? Write it like {x, y}.

Example 1

Input:

{"from":"{a, b}","symbol":"1"}

Output:

?

Constraints

  • Answer with a set of NFA states, such as {a, b}.

Learn the idea first: Finite automata: DFA and NFA, a visual lesson.

More Finite automata: DFA and NFA problems