in Theory of Computation retagged by
647 views
8 votes
8 votes

Let $\text{D}$ be a DFA with $n$ states $\& \;\text{N}$ be an NFA with $n$ states. Which of the following is/are true?

  1. If $\text{D}$ accepts some string of length $n$, then the language of $\text{D}$ is infinite.
  2. If $\text{D}$ accepts some string of length $n-1$, then the language of $\text{D}$ is infinite.
  3. If $\mathrm{N}$ accepts some string of length $n$, then the language of $\mathrm{N}$ is infinite.
  4. If $\mathrm{N}$ accepts some string of length $n-1$, then the language of $\mathrm{N}$ is infinite.
in Theory of Computation retagged by
647 views

2 Comments

$ \large{\colorbox{yellow}{Detailed video solution of this question with direct time stamp}}$
All India Mock Test 3 - Solutions Part 1

0
0
edited by
great explanation
0
0

1 Answer

7 votes
7 votes
If the DFA has $n$ states, and the language contains any string of length $n-1$ or more, then the language is infinite.

If the NFA has $n$ states, and the language contains any string of length $n$ or more, then the language is infinite.
edited by

4 Comments

@Sachin Mittal 1 how b is true.

1
1
In n states and n-1 strings the language may be finite and may be infinite both cases are possible. But the option B says Language is always infinite which is Wrong.
1
1

see for DFA we need to have transition for each symbol... so try to make DFA for 

L={a+b}2

We Need 


3 + 1 (one final and one reject) states 

Now here n = 4 

then n-1 = 3

But our DFA can only accept 2 length string  

So according to option B our DFA is supposed to accept 3 length string 

therefore we need a Loop to accept n-1 length string.

0
0
Answer:

Related questions