in Theory of Computation retagged by
3,203 views
4 votes
4 votes
What is the number of states in the minimal DFA with input symbols {0,1,2} where 2nd last symbol is 1?

A. 8

B. 9

C. 6

D. None
in Theory of Computation retagged by
3.2k views

1 comment

can somebody please explain the answer diagramatically..
0
0

3 Answers

10 votes
10 votes
Best answer

Second last symbol is 1 over {0,1, 2 }

regular expression = (0+1+2)*1(0+1+2).                     Anything Second last Last

For this regular expression NFA is

Convert NFA to DFA

selected by

2 Comments

In such questions where the number of states in minimal DFA is asked, do we have to count the trap state also?
0
0
Yes, for sure in DFA
0
0
1 vote
1 vote
D. None of these
reshown by

2 Comments

What is the number of states?
0
0
Coming as 4
1
1
1 vote
1 vote

B. 
Whenever the question says the nth symbol from the right side is fixed and the input language has m symbols the answer for minimal dfa is m . So 3= 9

2 Comments

Please can you explain how this formula came?
0
0
edited by
but here according to your formula answer coming out to be  8 but answer is 4 how
1
1

Related questions