in Theory of Computation
399 views
0 votes
0 votes
A  1*0(0+1)*

B  (0+1)*01*

Both RE are not equivalent right ?
in Theory of Computation
399 views

4 Comments

Both are equivalent
0
0

 How can both be equivalent? The 1st accepts 100, the 2nd one doesn't !

0
0
The second is accepting 100.

(1+0)* = 10, 1*=$\varepsilon$

So, (1+0)*01* = (10)0($\varepsilon$) = 100

If you make the NFA for (1+0)*01* and convert it into a DFA, it will the same DFA as for 1*0(0+1)*
1
1
Yes both are equivalent and their language, $L =\{w | w \in (0+1)^* \text{and w contains atleast one 0} \}$
0
0

1 Answer

0 votes
0 votes

yes both are same

edited by

1 comment

@krmanish043 make it as a comment , not as a answer

0
0