in Theory of Computation recategorized by
856 views
1 vote
1 vote

Let $A$ be an $NFA$ with $n$ states. Which of the following is necessarily true?

  1. The shortest word in $L(A)$ has length at most $n-1.$
  2. The shortest word in $L(A)$ has length at least $n.$
  3. The shortest word not in $L(A)$ has length at most $n-1.$
  4. The shortest word  not in $L(A)$ has length at least $n.$
in Theory of Computation recategorized by
by
856 views

2 Answers

4 votes
4 votes

Let us take an NFA with $3$ states i.e. $n=3$ as shown above. Also let $\Sigma = \{a,b\}$

A. The shortest word accepted is $aa$ and $|aa| =2 = n-1$  so option $A$ is true.

B. The shortest word accepted is $aa$ and $|aa| =2 = n-1$  so option $B$ is false.

D. The shortest word not is $L(A)$ is $\epsilon$ and $|\epsilon| = 0$  so option $C$ is false

Let us slightly update our NFA

C. The shortest word not accepted by this NFA is $aaa$ and $|aaa| = 3 = n $ so option C. is also false.

So option $A$ is the correct answer as it is the only argument that holds true for both cases.

 

 

 

 

1 comment

option a must be true
0
0
0 votes
0 votes

Answer:

Answer:

Related questions