GATE | GATE-IT-2004 | Question 7
Which one of the following regular expressions is NOT equivalent to the regular expression (a + b + c) *?
(A) (a* + b* + c*)*
(B) (a*b*c*)*
(C) ((ab)* + c*)*
(D) (a*b* + c*)*
Answer: (C)
Explanation: C– (ab)* + c*)* will always give strings with “ab” together.Whereas (a+b+c)* would generate language where a,b,c may not be always together.
A,B,D may generate same language as (a+b+c)*
So, Answer is (C)
Quiz of this Question
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...