1

The question is to build a NFA that begins and ends with the same symbol. I came up with two solutions but I was wondering if there is a difference between them.

Solution 1: enter image description here

Solution 2: enter image description here

Nick
  • 1,231

1 Answers1

1

Both solutions are correct, but obviously the second one has less states and hence is a better solution. Note that, contrary to deterministic automata, there is no such notion as the minimal NFA of a language.

J.-E. Pin
  • 40,163