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*)*
(C) ((ab)* + c*)*
(D) (a*b* + 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
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.