edited by
1,467 views

2 Answers

5 votes
5 votes
Look we can compare regular expressions by constructing their DFA

If L(M1)=L(M2)

Now for each N input Regular Expression there will be At most 2^n States in it's DFA(may be less, but this is the upper bound)

so simply the complexity will be O(2^n)

correct me,if needed :D
0 votes
0 votes
A) Constant time

Equality of two regular expression is decidable. Decidable means 'yes' and 'no' answer is possible in finite amount of time. Because it will not causing any loop. So, equality of two regular expression can be measured in constant time.

Related questions

2.0k
views
2 answers
1 votes
shekhar chauhan asked Jun 8, 2016
1,997 views
If r1 and r2 are 2 Regular Expression Such thatr1 = (a+b)* r2 = (a*+b*+a*b*+b*a*)What are the different case's in which r1 = r2 ?Please Explain with an example
1.5k
views
3 answers
0 votes
shekhar chauhan asked Jun 6, 2016
1,477 views
Problem 1 : what is the Language associated with this regular expression ? a*b* write it down.Problem 2: Does either a subset or Super-set of a regular language is alway...
899
views
2 answers
3 votes
Sunil8860 asked Sep 4, 2017
899 views
2.3k
views
1 answers
1 votes
gate_forum asked May 29, 2016
2,323 views
prove the identity: (a*ab + ba)* a* = (a + ab + ba)*