2 2 votes Consider R1 and R2 are two regular expression then equality of two regular expression compute in A) polynomial time B) Exponential time C) logarithmic Polynomial time D) Constant Time Theory of Computation regular-expression + – Ankit Chourasiya 2.6k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Convert to NFA Convert to DFA Minimize DFA - minimal DFA is unique So, must be exponential as there is no other way to do this AFAIK. gatecse answered Sep 15, 2015 gatecse comment Share Follow See all 5 Comments 5 5 Comments reply Show 2 previous comments Praveen Saini commented Sep 16, 2015 reply Follow flag For equivalence of DFA , we need to find cross product of both DFA's, and finals should come together. But we can find the crossproduct by NFA's itself. 1 1 replyShare gatecse commented Sep 16, 2015 reply Follow flag How's that done? I'm not getting even for DFA.. 0 0 replyShare Mohit Kumar 6 commented Mar 16, 2018 reply Follow flag Exponential time becouse check two reguler expression equal is nothing but check two FA equalencnce. 0 0 replyShare Please log in or register to add a comment.
1 1 vote The problem of deciding whether two regular expressions are equivalent is PSPACE-complete .as PSPACE is in EXP TIME.ans is EXP TIME varunraj answered Mar 16, 2018 varunraj comment Share Follow See all 2 Comments 2 2 Comments reply ankitgupta.1729 commented Mar 16, 2018 reply Follow flag @Varun ,what is BPP ? 1 1 replyShare varunraj commented Mar 16, 2018 reply Follow flag i dont know about BPP. 0 0 replyShare Please log in or register to add a comment.
0 0 votes I think its D) Constant time . Pranay Datta 1 answered Sep 13, 2015 Pranay Datta 1 comment Share Follow See all 4 Comments 4 4 Comments reply goku commented Sep 14, 2015 reply Follow flag please explain 0 0 replyShare Pranay Datta 1 commented Sep 15, 2015 reply Follow flag Regular language can be finite or infinite . If infinite then there must be a pattern on it . To check it we need O(1) time . But in case of its finite then we need not to check . cause every finite set is regular . this is my understanding, correct me if anything wrong :D. 0 0 replyShare focus _GATE commented Oct 4, 2015 reply Follow flag u r correct my thinking matches ur thining :) –1 –1 replyShare Arjun commented Oct 4, 2015 reply Follow flag This is not exam time- if confused you can try google than going with intuition. This requires exponential time. 2 2 replyShare Please log in or register to add a comment.
0 0 votes it should be polynomial time Saurav answered Sep 13, 2015 Saurav comment Share Follow See 1 comment 1 1 comment reply Tendua commented Sep 14, 2015 reply Follow flag how can u say polnomial time for that . 0 0 replyShare Please log in or register to add a comment.
0 0 votes www.win.tue.nl/mdseminar/pres/ploeger-19-10-06.pdf Polynomial Time. Abhinav Rana answered Jan 11, 2016 Abhinav Rana comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Exponential time. Mohit Kumar 6 answered Mar 16, 2018 Mohit Kumar 6 comment Share Follow 0 reply Please log in or register to add a comment.