edited by
23,953 views
62 votes
62 votes

Let $w$ be any string of length $n$ in $\{0,1\}^*$. Let $L$ be the set of all substrings of $w$. What is the minimum number of states in non-deterministic finite automation that accepts $L$?

  1. $n-1$
  2. $n$
  3. $n+1$
  4. $2^{n-1}$
edited by

9 Answers

0 votes
0 votes

Since its asked ib NFA, remember NFA accepts only set of valid strings. For the given language, the maximum length of sub-string will be the trivial one i.e. the string itself of length N. So to get the trivial string accepted “n+1” states are required and for the rest of strings we can make multiple transitions in single states. Hence option C is correct

Answer:

Related questions

41 votes
41 votes
1 answer
1
68 votes
68 votes
10 answers
2
27 votes
27 votes
3 answers
4
go_editor asked Apr 23, 2016
8,475 views
Consider the following Finite State Automaton:The minimum state automaton equivalent to the above FSA has the following number of states:$1$$2$$3$$4$