Question
Let denote the transition function and denote the extended transition function of the -NFA whose transition table is given below:
Then is
Official answer and solution
- Official answer
- C
- From
- Official GATE 2017 answer key
Solution
Compute the extended transition function by computing -closures at each step.
First, compute of the starting state :
Thus, .
Now trace the string symbol by symbol:
- Read first symbol '':
Union of transitions: .
Now compute :
So .
- Read second symbol '' from :
Union of transitions: .
Now compute :
So current states after '' are .
- Read third symbol '' from :
Union of transitions: .
Now compute .
Therefore, , matching option C.
C
Forgetting the initial -closure of state before reading the first input symbol ''.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 2
- Question
- 39 of 65, printed as CS Q.39
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.