in Theory of Computation retagged by
810 views
0 votes
0 votes
Design a DFA corresponding to regular expression 1*(10)*
in Theory of Computation retagged by
810 views

1 Answer

3 votes
3 votes

the language accepted by the regular expression $1^*(10)^*$ is :$(\epsilon,1,11,111,1111,….10,1010,101010,….110,1110,111010,1111010… \infty)$

invalid strings are: $(0,00,000...01,010,0011..\infty)$

edited by

4 Comments

edited by

@Hira Thakur  @prajjwal_191 anyone please???

Can you accept the string 1100, 100, 1000 to the above DFA. I just want to know that Is it necessary there is a path in a dfa for every symbol?? because in the above dfa there is no path for 0 symbol after q2

0
0

@techexplore In DFA always for every state for every input symbol there is exactly one transition.In above finite state machine there must be one transition from state q2 to q4 on input symbol 0 to make it DFA for accepting given regular expression. if you do not make that transition then also it is accepting the given regular expression but then it is not DFA it is NFA. 

0
0

  thanks for pointing it out. DFA is a complete system in which is defined for each input at each state.

$1100,100..$ all are invalid strings. so it is not accepted by DFA.

there is a path from $q_2\xrightarrow{0} q_4$

0
0