regex - Regular Expression for Automata for Strings that do not end in 01 -
regex - Regular Expression for Automata for Strings that do not end in 01 -
automata strings not end 01.
i cannot obtain regular look automata alphabet={0,1} generates strings not end 01.
here state diagram:
state diagram
i state diagram visual automata simulator tool matthew mcclintock, tested strings empty string e, "0","1","00","10","11" , ones not end 01, , seems work.
can help me obtain regular expression?. didn't have formal introduction computer automata theory, barely understand concepts of dfa,nfa , nomenclature kind of unusual me.
i tried obtained regexp, 1 was:
(0+1)*(00+10+11)
but no sure if correct.
then according diagram have tried things like:
1*(00*1+0+0*1)*+1(00*1+0*1)*
or things that. know can test regular expressions?
as said in comments, pretty close in first attempt. should work:
(0+1)*(00+10+11)+0+1+ε
or, in programmer dialect,
^([01]*(00|10|11)|0|1|)$
edit: give thanks nhahtdh, indeed had.
regex automata dfa
Comments
Post a Comment