Questions: Two-Way Finite Automata

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A computer scientist claims their 2DFA can recognize the language {aⁿbⁿ | n ≥ 1} — all strings of n a's followed by n b's — because it can reread the input to count. Is this claim correct?

AYes — by scanning back and forth, the 2DFA can match each 'a' with a 'b' and accept the correct strings
BNo — {aⁿbⁿ} is a context-free but non-regular language, which no finite automaton can recognize regardless of head movement
CYes — 2DFAs are strictly more powerful than DFAs, so they can recognize some context-free languages
DNo — 2DFAs cannot scan backwards; only 2NFAs can move the head in both directions
Question 2 Multiple Choice

A 2DFA with 8 states recognizes a certain regular language. What can be said about the minimum number of states a standard 1DFA needs to recognize the same language?

AExactly 8 states — equivalent models always require the same number of states
BAt most 8 states — standard DFAs are always at least as succinct as 2DFAs
CPotentially exponentially more than 8 states — converting a 2DFA to a 1DFA can cause an exponential state blowup
DExactly 2⁸ = 256 states — the crossing-sequence construction always produces 2ⁿ states
Question 3 True / False

A two-way finite automaton is strictly more powerful than a standard DFA because it can re-read its input.

TTrue
FFalse
Question 4 True / False

The reason 2DFAs cannot recognize non-regular languages has nothing to do with head movement direction — it is entirely due to the lack of writable memory.

TTrue
FFalse
Question 5 Short Answer

Explain why a two-way finite automaton cannot recognize a language like {aⁿbⁿ}, even though it can scan back and forth over its input as many times as it likes.

Think about your answer, then reveal below.