GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Consider the strings over {a,b} that start and end with different symbols. How many states does the minimal complete DFA (including a dead state, if one is needed) have?

  1. A. 5
  2. B. 4
  3. C. 6
  4. D. 7

Correct answer: A. 5

Distinguishing prefixes by the suffixes that complete them gives 5 Myhill-Nerode classes. (Dead state included only when some prefix can never be completed.)

More Compiler Design questions

Exams that ask this topic