Question discussion

What is the minimum number of states in a DFA over {0, 1} that accepts all strings whose third symbol from the right end is 1?

2508Medium DSSSB TGT Computer Science 0 replies 2 views
0

What is the minimum number of states in a DFA over {0, 1} that accepts all strings whose third symbol from the right end is 1?

  • A4
  • B8
  • C6
  • D16
Correct answer: B

Explanation

The DFA must remember the last three symbols read, which gives 2³ = 8 distinguishable situations, whereas an NFA for the same language needs only 4 states.

Discussion 0

Nobody has replied yet. Start the discussion!