1,678 views
1 votes
1 votes
1(01)* and (10)*1,  are both regular expressions are equal?

i think not, as 10 can be accepted by first regular expression, but it cannot be accepted by the second RE i.e (10)*1 in which strings always ends with 1.

Is it correct? Please correct me if iam wrong. Thank You.

2 Answers

Best answer
6 votes
6 votes

1(01)* = { 1 , 101, 10101, 1010101 ,....................... }

(10)*1 = { 1 , 101 ,10101 , 1010101,,,,,,,,,,,}

ur doubt is "10 can be accepted by first regular expression" ???? but First Regular says it is definitely ends with 1.

I think Both regular expressions are equal.....

lemme me know if i m wrong........

selected by
2 votes
2 votes
Using property :

(PQ)*P =P(QP)*

we can say that both the expressions are equal

Related questions

1 votes
1 votes
1 answer
1
prabhath challa asked 6 days ago
53 views
what will be the regular expression of this DFA using Arden's theorem
0 votes
0 votes
1 answer
2
hasina ali asked Mar 21
89 views
Set of binary strings starting with 11 and ending with 00. E.g., 1100,1110100 ,1100100
0 votes
0 votes
1 answer
3
utsav22222 asked Mar 15
131 views
Write regular expression for the set of strings of 0's and 1's with at most one pair of consecutive 1's.