wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which one of the following regular expressions is NOT equivalent to the regular expression (a + b + c)∗ ?

A
(a+b+c)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(ab+c)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(abc)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
((ab)+c)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D ((ab)+c)
In chance (a), (b) and (d). inside the parenthesis we can generate "a" , "b" and "c" seprately and hence all three are same as (a+b+c) In choice (c) the strings "a" and "b" cannot be generated seperately since "ab" is always together

So, Choice (c) is not same as (a+b+c)

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Logical Connectives
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon