in Theory of Computation
1,122 views
0 votes
0 votes
What will be the number of final and non-final states for the minimal DFA accepting the language which contains all the strings that either begin or end (or both) with 01?

Can anyone provide the DFA diagram for this?
in Theory of Computation
by
1.1k views

1 comment

Is this also correct? It has only 1 final state.

0
0

2 Answers

2 votes
2 votes
Best answer

There will total 6 states,

final states 2, non-final states 4

The upper part is for starting with 01,

lower part is for ending with 01

selected by

2 Comments

Thank you so much 

Ashwin Kulkarni 

1
1

Ashwin Kulkarni  Sir, same as contain substring 01

0
0
0 votes
0 votes

dfa can contain 3 states because in question both is mentioned. Please correct me if I amwrong

 

1 comment

bro string 000111010 can be made from ur DFA which is invalid string for above language....
0
0