CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Let L = {ωϵ(0+1)ωhasevennumberof1s}

i.e, L is the set of all bit strings with even number of 1s. Which one of the regular expressions below represents L?

A
01(101)10
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
0(1010)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
(0101)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
0(101)0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 0(1010)
Choice (a) (0101)

will always generate strings ending with 1. But we want an expression for bit strings with even no of 1's, which includes strings like "110" which ends with 0.

So, choice(a) is not correct.

Choice (c) 0(101)0

"1010101" 0(101)0

but "1010101" has even number of 1's. So choice (c) is incorrect.

Choice (d) λ 01(101)10

but "λ" is a bit string with even no of 1's (zero 1's). So choice (d) is incorrect.

Choice (b) can generate all bit strings with even no of 1's. So choice (b) is correct.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Endoplasmic Reticulum and Golgi Apparatus
Watch in App
Join BYJU'S Learning Program
CrossIcon