Questions: Nondeterministic Finite Automata

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An NFA has 5 states. After applying the subset construction to convert it to an equivalent DFA, the resulting DFA has at most how many states?

A5 states — the DFA must have the same number of states as the NFA
B10 states — the construction doubles the states because each NFA transition becomes two DFA transitions
C25 states — the DFA has n² states where n is the number of NFA states
D32 states — the DFA may need one state for each subset of the NFA's 5 states
Question 2 Multiple Choice

A designer builds a 6-state NFA to recognize binary strings whose fifth-from-last character is 1. Her colleague claims this language requires a DFA with many more states and that the NFA is therefore more expressive. Which statement best corrects this claim?

AThe colleague is right — NFAs can recognize some languages that no DFA can recognize
BThe NFA and DFA recognize exactly the same language; the subset construction always produces an equivalent DFA, though it may have up to 2^n states
CThe DFA is actually more expressive — it can recognize more strings because it never gets stuck in undefined transitions
DNFAs and DFAs have equal power only for finite languages; for infinite languages like this one, NFAs are more expressive
Question 3 True / False

An NFA accepts an input string if there exists at least one computation path — including any epsilon-transitions taken — that leads from the start state to an accepting state after consuming all input symbols.

TTrue
FFalse
Question 4 True / False

Because NFAs can take epsilon-transitions and have multiple transitions on the same symbol, they can recognize languages that no DFA can recognize — making NFAs strictly more expressive than DFAs.

TTrue
FFalse
Question 5 Short Answer

Explain why NFAs and DFAs recognize exactly the same class of languages, despite NFAs appearing to have more flexibility.

Think about your answer, then reveal below.