Let w be any string of length n is {0,1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L?
(A) n-1
(B) n
(C) n+1
(D) 2n-1
Answer: (C)
Explanation: We need minimum n+1 states to build NFA that accepts all substrings of a binary string. For example, following NFA accepts all substrings of “010″ and it has 4 states.
Recommended Posts:
- GATE | GATE CS 2010 | Question 1
- GATE | GATE CS 2010 | Question 2
- GATE | GATE CS 2010 | Question 3
- GATE | GATE CS 2010 | Question 4
- GATE | GATE CS 2010 | Question 5
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 8
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 10
- GATE | GATE CS 2010 | Question 11
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 13
- GATE | GATE CS 2010 | Question 14
- GATE | GATE CS 2010 | Question 15
- GATE | GATE CS 2010 | Question 16
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 18
- GATE | GATE CS 2010 | Question 19
- GATE | GATE CS 2010 | Question 20
- GATE | GATE CS 2010 | Question 21


