2,127 views
1 votes
1 votes
Given two Regular expressions are equal or not ?

1) (1+01*0)*        2) 1*(01*0)* 1*

Give proper explanation also.

2 Answers

Best answer
1 votes
1 votes
The two regular expressions are not equivalent. The first regular expressions denotes the set of strings having any combination of 1's and 01*0's.  Whereas the second regular expression denotes the set of all strings where any number of 1's are followed by any number of 01*0's followed by any number of 1's. So strings of the form 10101010 are generated by the first regular expression but it isn't generated by the second regular expression.
selected by
0 votes
0 votes
According to me these two regular expressions are not equivalent. As, on simplifying expression 1, we get 1*(01*0)* which is not equivalent to expression 2

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
0 answers
2
1 votes
1 votes
0 answers
3
Dharmesh Gusai asked Mar 4, 2018
365 views
What is the regular expression of$L = \{ s \in L$ $i$ = no of $1$ in string $s$$j$ = no of $0$ in string $s$$i+j$ is odd $\}$ ???
0 votes
0 votes
1 answer
4
Shashi Shekhar 1 asked Sep 2, 2017
444 views
What type of grammar is this most accurately described as?S->b/ aDD->a/ aDDA. A regular grammar B. CFG C. CSG D. Type-0